tile_by_regions {methylSig} | R Documentation |
An optional function to aggregate cytosine / CpG level data into regions based on a GRanges
set of genomic regions.
tile_by_regions(bs, gr)
bs |
a |
gr |
a |
A BSseq
object with loci of regions matching gr
. Coverage and methylation read count matrices are aggregated by the sums of the cytosines / CpGs in the regions per sample.
data(bsseq_stranded, package = 'methylSig') regions = GenomicRanges::GRanges( seqnames = c('chr1','chr1','chr1'), ranges = IRanges::IRanges( start = c(5,35,75), end = c(30,70,80) ) ) tiled = tile_by_regions(bs = bsseq_stranded, gr = regions)