Description Usage Arguments Value See Also Examples
Convert a vcf file to a SNPs input file for dadi
1 2 |
vcf |
The vcf dataframe (from parse.vcf) or the name of the vcf file |
filename |
The name fo the file you want the data written to. If not provided, no file is written |
pop.list |
Optional list of population names. If this is provided, individuals should have the population names in their IDs. If neither pop.map or pop.list are provided, all individuals are placed in one population. |
pop.map |
Optional map of individual IDs in column 1 and their population names in column 2 (same as a Stacks population map). Can either be a file or an R object. If neither pop.map or pop.list are provided, all individuals are placed in one population. |
whitelist |
Optional list of SNPs to include in the output file. If not provided, all SNPs in the vcf will be output. |
outgroup |
Optional 2-column dataframe containing ingroup (column 1) and outgroup (column 2) sequences. If not provided, both will be "—". |
a dataframe containing the contents of the vcf file, including headers.
Gutenkunst et al. 2013
1 2 | vcf.file<-system.file("extdata", "example.vcf.txt",package = "gwscaR")
dadi<-vcf2dadiSNPs(vcf.file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.