eigenstrat_to_afs | R Documentation |
Read allele frequencies from EIGENSTRAT files
eigenstrat_to_afs(
pref,
inds = NULL,
pops = NULL,
numparts = 100,
adjust_pseudohaploid = TRUE,
verbose = TRUE
)
pref |
Prefix of EIGENSTRAT files (files have to end in |
inds |
Individuals from which to compute allele frequencies |
pops |
Populations from which to compute allele frequencies. If |
numparts |
Number of parts into which the genotype file is split. Lowering this number can speed things up, but will take more memory. |
adjust_pseudohaploid |
Genotypes of pseudohaploid samples are usually coded as |
verbose |
Print progress updates |
A list with three data frames: allele frequency data, allele counts, and SNP metadata
## Not run:
afdat = eigenstrat_to_afs(prefix, pops = pops)
afs = afdat$afs
counts = afdat$counts
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.