MAFfilter {GGBase} | R Documentation |
restrict SNP in an smlSet to range of minor allele frequencies (MAF)
MAFfilter(x, lower = 0, upper = 1)
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 |
uses snp.matrix-class
summary method from snpMatrix
revised instance of smlSet-class
VJ Carey <stvjc@channing.harvard.edu>
library(GGtools) if (!exists("hmceuB36.2021")) data(hmceuB36.2021) sapply(smList(MAFfilter(hmceuB36.2021, lower=.1)), dim)