View source: R/bsseq_to_edger.R
bsseq_to_log_methy_ratio | R Documentation |
Creates a log-methylation-ratio matrix from a BSseq object that is useful for dimensionality reduction plots.
bsseq_to_log_methy_ratio(
bsseq,
regions = NULL,
prior_count = 2,
drop_na = TRUE
)
bsseq |
the BSseq object. |
regions |
the regions to calculate log-methylation ratios over. If left NULL, ratios will be calculated per site. |
prior_count |
the prior count added to avoid taking log of 0. |
drop_na |
whether to drop rows with all NA values. |
a matrix containing log-methylation-ratios.
nmr <- load_example_nanomethresult()
bsseq <- methy_to_bsseq(nmr)
regions <- exons_to_genes(NanoMethViz::exons(nmr))
log_m_ratio <- bsseq_to_log_methy_ratio(bsseq, regions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.