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

View source: R/tile_by_windows.R

tile_by_windowsR Documentation

Group cytosine / CpG level data into regions based on genomic windows

Description

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

Usage

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

data(bsseq_stranded, package = 'methylSig')

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


sartorlab/methylSig documentation built on Aug. 22, 2024, 5:58 p.m.