vcfR2migrate: Convert vcfR object to MigrateN format

Description Usage Arguments Details Value

View source: R/vcfR2migrate.R

Description

The function converts vcfR format data to text format that can be used as infile for MigrateN.

Usage

1
vcfR2migrate(vcf, pop, in_pop, out_file)

Arguments

vcf

a vcfR object.

pop

factor of population.

in_pop

population of interest to report in output file.

outfile

name of output file.

Details

This function converts the vcfR object to a text file which can be used downstream for MigrateN. The function will remove loci with missing data, indels, and multiallelic loci. Thus, only SNPs data are analysed where length of each locus is 1.

Value

a text file that can be used as an input for MigrateN software (SNP format).


shankarkshakya/mypackage documentation built on March 12, 2021, 5:54 p.m.