Description Usage Arguments Value
View source: R/scMethrix_plot.R
Format scMethrix
matrix to long form data for plotting
1 2 3 4 5 6 7 8 9 | prepare_plot_data(
scm = NULL,
assay = "score",
regions = NULL,
n_cpgs = 25000,
pheno = NULL,
verbose = TRUE,
na.rm = T
)
|
scm |
|
assay |
string; name of an existing assay. Default = "score" |
regions |
Granges; genomic regions to be summarized. Could be a data.table with 3 columns (chr, start, end) or a |
n_cpgs |
integer; Use these many random CpGs for plotting. Default 25000. Set it to |
pheno |
string; Col name of colData(m). Will be used as a factor to color different groups |
verbose |
boolean; Flag for outputting function status messages. Default = TRUE |
na.rm |
boolean; remove NA values from the output |
'Long' matrix for methylation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.