bsseq_to_edger: Convert BSseq object to edgeR methylation matrix

View source: R/bsseq_to_edger.R

bsseq_to_edgerR Documentation

Convert BSseq object to edgeR methylation matrix

Description

Convert BSseq object to edgeR methylation matrix

Usage

bsseq_to_edger(bsseq, regions = NULL)

Arguments

bsseq

the BSseq object.

regions

the regions to calculate log-methylation ratios over. If left NULL, ratios will be calculated per site.

Value

a matrix compatible with the edgeR differential methylation pipeline

Examples

methy <- system.file("methy_subset.tsv.bgz", package = "NanoMethViz", mustWork = FALSE)
bsseq <- methy_to_bsseq(methy)
edger_mat <- bsseq_to_edger(bsseq)

Shians/NanoMethViz documentation built on Oct. 11, 2024, 7:17 a.m.