methylationDist {scmeth}R Documentation

Provide graphics for methylation distribution

Description

Plot the methylation distribution for the cells in bsseq object

Usage

methylationDist(bs, subSample = 1e+06, offset = 50000, coverageVec = NULL)

Arguments

bs

bsseq object

subSample

number of CpGs to subsample Default value is 1000000.

offset

how many CpGs to offset when subsampling Default value is set to be 50000, i.e. first 50000 CpGs will be ignored in subsampling.

coverageVec

If coverage vector is already calculated provide it to speed up the process

Value

plot of the methylation distribution

Examples

directory <- system.file("extdata/bismark_data",package='scmeth')
bs <- HDF5Array::loadHDF5SummarizedExperiment(directory)
methylationDist(bs)

[Package scmeth version 1.0.1 Index]