filter_loci_by_location: Remove loci by overlap with a 'GRanges' object

Description Usage Arguments Value Examples

View source: R/filter_loci_by_location.R

Description

A function to remove loci from a BSseq object based on intersection with loci in a GRanges object.

Usage

1

Arguments

bs

a BSseq object.

gr

a GRanges object.

Value

A BSseq object with loci intersecting gr removed.

Examples

1
2
3
4
5
6
7
8
9
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)

methylSig documentation built on Nov. 8, 2020, 8:25 p.m.