View source: R/binom-scaling.R
snp_MAF | R Documentation |
Minor Allele Frequency.
snp_MAF(
G,
ind.row = rows_along(G),
ind.col = cols_along(G),
nploidy = 2,
ncores = 1
)
G |
A FBM.code256
(typically |
ind.row |
An optional vector of the row indices (individuals) that
are used. If not specified, all rows are used. |
ind.col |
An optional vector of the column indices (SNPs) that are used.
If not specified, all columns are used. |
nploidy |
Number of trials, parameter of the binomial distribution.
Default is |
ncores |
Number of cores used. Default doesn't use parallelism.
You may use |
A vector of MAFs, corresponding to ind.col
.
obj.bigsnp <- snp_attachExtdata()
str(maf <- snp_MAF(obj.bigsnp$genotypes))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.