tile_by_windows: Group cytosine / CpG level data into regions based on genomic...

Description Usage Arguments Value Examples

View source: R/tile_by_windows.R

Description

An optional function to aggregate cytosine / CpG level data into regions based on a tiling of the genome by win_size.

Usage

1
tile_by_windows(bs, win_size = 200)

Arguments

bs

a BSseq object.

win_size

an integer indicating the size of the tiles. Default is 200bp.

Value

A BSseq object with loci consisting of a tiling of the genome by win_size bp tiles. Coverage and methylation read count matrices are aggregated by the sums of the cytosines / CpGs in the regions per sample.

Examples

1
2
3
data(bsseq_stranded, package = 'methylSig')

tiled = tile_by_windows(bs = bsseq_stranded, win_size = 50)

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