powered by
Allele frequencies of a bed object.
bed_MAF( obj.bed, ind.row = rows_along(obj.bed), ind.col = cols_along(obj.bed), ncores = 1 )
A data.frame with
$ac: allele counts,
$ac
$mac: minor allele counts,
$mac
$af: allele frequencies,
$af
$maf: minor allele frequencies,
$maf
$N: numbers of non-missing values.
$N
Object of type bed, which is the mapping of some bed file. Use obj.bed <- bed(bedfile) to get this object.
obj.bed <- bed(bedfile)
An optional vector of the row indices (individuals) that are used. If not specified, all rows are used. Don't use negative indices.
An optional vector of the column indices (SNPs) that are used. If not specified, all columns are used. Don't use negative indices.
Number of cores used. Default doesn't use parallelism. You may use nb_cores.
bedfile <- system.file("extdata", "example-missing.bed", package = "bigsnpr") obj.bed <- bed(bedfile) bed_MAF(obj.bed, ind.col = 1:5)
Run the code above in your browser using DataLab