Marker MA / Volcano plots
plot_markers.RdVisualizes differential accessibility/expression results for a single cell group as an MA plot, a Volcano plot, or a mean-difference Volcano.
Usage
plot_markers(x, ...)
# S3 method for class 'MarkerResult'
plot_markers(
x,
group = NULL,
plot_as = c("volcano", "ma", "volcano_diff"),
fdr_cutoff = 0.01,
log2_fc_cutoff = 0.5,
size = 1,
...
)
# S3 method for class 'MarchRProject'
plot_markers(
x,
assay_name = character(0),
group = NULL,
plot_as = c("volcano", "ma", "volcano_diff"),
fdr_cutoff = 0.01,
log2_fc_cutoff = 0.5,
size = 1,
...
)Arguments
- x
(MarkerResult | MarchRProject) Marker results, or a project holding stored results.
- ...
Additional arguments passed to methods.
- group
(character|NULL) Foreground group to plot. NULL uses the first group in the results. Default NULL.
- plot_as
(character) One of
"volcano","ma","volcano_diff". Default"volcano".- fdr_cutoff
(numeric) Adjusted p-value threshold for significance. Default 0.01.
- log2_fc_cutoff
(numeric) Absolute log2 fold-change threshold for significance. Default 0.5.
- size
(numeric) Point size. Default 1.
- assay_name
(character) Name of the stored marker result to plot. Uses smart selection when only one result exists. (MarchRProject method only.)
Details
Corresponds to ArchR's plotMarkers().
The MA x-axis is log2((foreground_mean + background_mean)/2 + 1) and
both the MA y-axis and the Volcano x-axis are clipped to a symmetric,
outlier-robust range +/- max(quantile(abs(log2_fc), 0.999), 4) * 1.05.
Points are colored Up-Regulated / Down-Regulated / Not-Differential.