bsseq_to_log_methy_ratio: Convert BSseq object to log-methylation-ratio matrix

Description Usage Arguments Value Examples

View source: R/bsseq_to_edger.R

Description

Creates a log-methylation-ratio matrix from a BSseq object that is useful for dimensionality reduction plots.

Usage

1
bsseq_to_log_methy_ratio(bsseq, prior_count = 2)

Arguments

bsseq

the BSseq object.

prior_count

the prior count added to avoid taking log of 0.

Value

a matrix containing log-methylation-ratios.

Examples

1
2
3
methy <- system.file("methy_subset.tsv.bgz", package = "NanoMethViz")
bsseq <- methy_to_bsseq(methy)
log_m_ratio <- bsseq_to_log_methy_ratio(bsseq)

NanoMethViz documentation built on Nov. 8, 2020, 4:51 p.m.