Flags cells whose size or DNA content is far above the population median, which in microscopy typically indicates segmented doublets. The cells are removed and recorded in the QC log.
Usage
cr_qc_doublets(
experiment,
channel = NULL,
threshold_method = c("area", "channel"),
k = 2.5
)Arguments
- experiment
A
cr_experiment.- channel
Name of the channel column used when
threshold_method = "channel"(for example a nuclear stain whose integrated intensity scales with DNA content). Ignored forthreshold_method = "area".- threshold_method
"area"(default) thresholds the segmentation area;"channel"thresholdschannel.- k
Multiplicative threshold: cells whose value exceeds
k * medianare removed. Default2.5.
Examples
exp <- cr_example_experiment(seed = 1, n_cells_per_well = 30)
cr_qc_doublets(exp, threshold_method = "area")
#> ── cr_experiment ───────────────────────────────────────────────────────────────
#> • Cells: 2910 across 96 wells
#> • Channels: "DAPI", "marker_1", "marker_2", and "marker_3"
#> • Design: 6 treatment groups
#> • QC steps applied: 1
#> ℹ Metadata fields: project and sop
cr_qc_doublets(exp, channel = "DAPI", threshold_method = "channel")
#> ── cr_experiment ───────────────────────────────────────────────────────────────
#> • Cells: 2893 across 96 wells
#> • Channels: "DAPI", "marker_1", "marker_2", and "marker_3"
#> • Design: 6 treatment groups
#> • QC steps applied: 1
#> ℹ Metadata fields: project and sop