MAFfilter {GGBase}R Documentation

restrict SNP in an smlSet to range of minor allele frequencies (MAF)

Description

restrict SNP in an smlSet to range of minor allele frequencies (MAF)

Usage

MAFfilter(x, lower = 0, upper = 1)

Arguments

x smlSet instance
lower numeric lower bound on minor allele frequency for keeping a SNP
upper numeric upper bound on minor allele frequency for keeping a SNP

Details

uses snp.matrix-class summary method from snpMatrix

Value

revised instance of smlSet-class

Author(s)

VJ Carey <stvjc@channing.harvard.edu>

Examples

library(GGtools)
if (!exists("hmceuB36.2021")) data(hmceuB36.2021)
sapply(smList(MAFfilter(hmceuB36.2021, lower=.1)), dim)

[Package GGBase version 3.4.0 Index]