filter_loci_by_location {methylSig} | R Documentation |
GRanges
objectA function to remove loci from a BSseq
object based on intersection with loci in a GRanges
object.
filter_loci_by_location(bs, gr)
bs |
a |
gr |
a |
A BSseq
object with loci intersecting gr
removed.
data(bsseq_stranded, package = 'methylSig') regions = GenomicRanges::GRanges( seqnames = c('chr1','chr1','chr1','chr1'), ranges = IRanges::IRanges( start = c(5,25,45,70), end = c(15,40,55,80) ) ) filtered = filter_loci_by_location(bs = bsseq_stranded, gr = regions)