bsseq_to_edger {NanoMethViz} | R Documentation |
Convert BSseq object to edgeR methylation matrix
bsseq_to_edger(bsseq, regions = NULL)
bsseq |
the BSseq object. |
regions |
the regions to calculate log-methylation ratios over. If left NULL, ratios will be calculated per site. |
a matrix compatible with the edgeR differential methylation pipeline
methy <- system.file("methy_subset.tsv.bgz", package = "NanoMethViz") bsseq <- methy_to_bsseq(methy) edger_mat <- bsseq_to_edger(bsseq)