vcfR2migrate: Convert vcfR object to MigrateN format

View source: R/vcfR2migrate.R

vcfR2migrateR Documentation

Convert vcfR object to MigrateN format

Description

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

Usage

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 May 16, 2024, 8:14 a.m.