Description Usage Arguments Value Examples
View source: R/gwscaR_utility.R
Convert a vcf df to a genepop file
1 |
vcf |
A data.frame in vcf format |
pop.list |
A list of population names (the individuals must have names containing the population names) |
pop.map |
A data frame with col 1 = ID names and col 2 = pop names |
gpop.name |
A name for the output genepop file |
gpop A dataframe in genepop format
1 2 3 4 5 | vcf.file<-system.file("extdata", "example.vcf.txt",package = "gwscaR")
vcf<-parse.vcf(vcf.file)
gpop<-vcf2gpop(vcf,
pop.list=c("FEM","PRM","OFF"),
gpop.name="out.genepop")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.