View source: R/bsseq_to_edger.R
methy_to_edger | R Documentation |
Convert NanoMethResult object to edgeR methylation matrix
methy_to_edger(methy, regions = NULL, out_folder = tempdir(), verbose = TRUE)
methy |
the NanoMethResult object or path to the methylation tabix file. |
regions |
the regions to calculate log-methylation ratios over. If left NULL, ratios will be calculated per site. |
out_folder |
the folder to store intermediate files. One file is created for each sample and contains columns "chr", "pos", "total" and "methylated". |
verbose |
TRUE if progress messages are to be printed |
a matrix compatible with the edgeR differential methylation pipeline
nmr <- load_example_nanomethresult()
edger_mat <- methy_to_edger(nmr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.