plink_to_afs | R Documentation |
PLINK
filesRead allele frequencies from PLINK
files
plink_to_afs(
pref,
inds = NULL,
pops = NULL,
adjust_pseudohaploid = TRUE,
first = 1,
last = NULL,
numblocks = 1,
poly_only = FALSE,
verbose = TRUE
)
pref |
prefix of |
inds |
Individuals from which to compute allele frequencies |
pops |
Populations from which to compute allele frequencies. If |
adjust_pseudohaploid |
Genotypes of pseudohaploid samples are usually coded as |
numblocks |
Number of blocks in which to read genotype file. Setting this to a number greater than one is more memory efficient, but slower. |
poly_only |
Only keep SNPs with mean allele frequency not equal to 0 or 1 (default |
verbose |
Print progress updates |
A list with three items: Allele frequency matrix, allele count matrix, and SNP meta data.
## Not run:
afdat = plink_to_afs(prefix, 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.