View source: R/binom-scaling.R
bed_MAF | R Documentation |
Allele frequencies of a bed object.
bed_MAF(
obj.bed,
ind.row = rows_along(obj.bed),
ind.col = cols_along(obj.bed),
ncores = 1
)
obj.bed |
Object of type bed, which is the mapping of some bed file.
Use |
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. |
ncores |
Number of cores used. Default doesn't use parallelism.
You may use |
A data.frame with
$ac
: allele counts,
$mac
: minor allele counts,
$af
: allele frequencies,
$maf
: minor allele frequencies,
$N
: numbers of non-missing values.
bedfile <- system.file("extdata", "example-missing.bed", package = "bigsnpr")
obj.bed <- bed(bedfile)
bed_MAF(obj.bed, ind.col = 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.