Skip to contents

Plots doublet enrichment, score, or simulated-doublet density. Must be run after add_doublet_scores() and before filter_doublets().

Usage

plot_doublet_scores(x, ...)

# S3 method for class 'MarchRDataset'
plot_doublet_scores(
  x,
  plot = c("enrichment", "score", "density"),
  legend_labels = c("quantile", "value"),
  verbose = getOption("MarchR.verbose", FALSE),
  ...
)

# S3 method for class 'MarchRProject'
plot_doublet_scores(
  x,
  dataset_name = character(0),
  plot = c("enrichment", "score", "density"),
  legend_labels = c("quantile", "value"),
  verbose = getOption("MarchR.verbose", FALSE),
  ...
)

Arguments

x

(MarchRDataset or MarchRProject)

...

Passed to plot_embedding for enrichment/score panels.

plot

(character) One or more of "enrichment", "score", "density". Default plots all.

legend_labels

(character) "quantile" or "value". "value" labels the color bar in the units of the filter_doublets() cutoffs. Default "quantile".

verbose

(logical) Print progress messages. Default getOption("MarchR.verbose", FALSE).

dataset_name

(character) For MarchRProject only.

Value

ggplot object or patchwork composition.

Details

ArchR correspondence: the doublet summary plots of addDoubletScores(), which clip enrichment and score at the 95th percentile and label the color bar in data units (legend_labels = "value").