vcf2migrate
vcf2migrate.Rd
converts vcfR format data to MigrateN infile
adapted vcfR2migrate function (vcfR package) to allow for inclusion of missing data in Migrate output
converts vcfR format data to MigrateN infile
adapted vcfR2migrate function (vcfR package) to allow for inclusion of missing data in Migrate output
Usage
vcf2migrate(
vcf,
ind_pop,
keep_pop,
inc_missing = TRUE,
out_file = "migrateN_infile.txt",
method = "N"
)
vcf2migrate(
vcf,
ind_pop,
keep_pop,
inc_missing = TRUE,
out_file = "migrateN_infile.txt",
method = "N"
)
Details
This function converts the vcfR object to a MigrateN formatted input file The function will remove indels, and multiallelic loci, and optionally loci with missing data
This function converts the vcfR object to a MigrateN formatted input file The function will remove indels, and multiallelic loci, and optionally loci with missing data
Examples
vcf2migrate(vcf = my_vcf, ind_pop = ind_pop, keep_pop = keepers, inc_missing = TRUE, out_file = "MigrateN_infile.txt", method = "N")
#> Error: object 'my_vcf' not found
vcf2migrate(my_vcf, ind_pop, keepers, out_file = "MigrateN_infile.txt")
#> Error: object 'my_vcf' not found
vcf2migrate(my_vcf, ind_pop, keepers)
#> Error: object 'my_vcf' not found
vcf2migrate(vcf = my_vcf, ind_pop = ind_pop, keep_pop = keepers, inc_missing = TRUE, out_file = "MigrateN_infile.txt")
#> Error: object 'my_vcf' not found
vcf2migrate(my_vcf, ind_pop, keepers, out_file = "MigrateN_infile.txt")
#> Error: object 'my_vcf' not found
vcf2migrate(my_vcf, ind_pop, keepers)
#> Error: object 'my_vcf' not found