scmet_plot_ma | R Documentation |
Function showing MA plots for differential analysis. The y-axis shows difference between measurements across two groups and the x-axis shows the average measurements across the two groups.
scmet_plot_ma(
diff_obj,
task = "diff_epsilon",
x = "mu",
xlab = NULL,
ylab = NULL,
title = NULL,
nfeatures = NULL
)
diff_obj |
The differential scMET object after calling the
|
task |
The differential test to plot. For differential mean methylation:
|
x |
The average parameter across the two populations to plot on the
x-axis. Can be either |
xlab |
Optional x-axis label. |
ylab |
Optional y-axis label. |
title |
Optional title, default NULL. |
nfeatures |
Optional parameter, denoting a subset of number of features to plot (only for non-differential features). Mostly to reduce over-plotting. |
A ggplot2 object.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
scmet
, scmet_differential
,
scmet_hvf_lvf
, scmet_plot_mean_var
,
scmet_plot_vf_tail_prob
,
scmet_plot_efdr_efnr_grid
, scmet_plot_volcano
## Not run:
# Fit scMET for each group
fit_A <- scmet(Y = scmet_diff_dt$scmet_dt_A$Y,
X = scmet_diff_dt$scmet_dt_A$X, L = 4, iter = 100, seed = 12)
fit_B <- scmet(Y = scmet_diff_dt$scmet_dt_B$Y,
X = scmet_diff_dt$scmet_dt_B$X, L = 4, iter = 100, seed = 12)
# Run differential test
diff_obj <- scmet_differential(obj_A = fit_A, obj_B = fit_B)
# Create volcano plot
scmet_plot_ma(diff_obj, task = "diff_epsilon")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.