vcfR2AF | R Documentation |
Takes as input a population map (popmap) and a VCF (vcfR object) and returns an m x n matrix, where m = the number of SNPs and n = the number of populations
vcfR2AF(vcf, popmap, n_cores = 1, allele = "REF")
vcf |
a vcf stored as a vcfR object |
popmap |
a two column data.frame, column 1 lists individuals and column 2 population assignment |
n_cores |
number of cores to run with mclapply. If n_cores=1, runs with lapply instead. |
allele |
character vector of either "REF" or "ALT" for which allele frequency to return |
A matrix of population-specific allele frequencies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.