Skip to contents

Run doublet-calling with scds

Usage

Runscds(
  object,
  assay = "RNA",
  db_rate = ncol(srt)/1000 * 0.01,
  method = c("hybrid", "cxds", "bcds"),
  data_type = NULL,
  verbose = TRUE,
  srt = NULL,
  ...
)

Arguments

object

A Seurat object.

assay

Assay used for doublet calling.

db_rate

Expected doublet rate.

method

The method to be used for doublet-calling. Options are "hybrid", "cxds", or "bcds".

data_type

Optional CheckDataType result, used internally to avoid rescanning the count matrix.

verbose

Whether to print messages.

srt

Deprecated alias for object; supply exactly one of the two. It will be removed in scop 1.0.0.

...

Arguments passed to other functions.

Examples

data(pancreas_sub)
pancreas_sub <- RunStandardWorkflow(pancreas_sub)
#> ℹ [2026-11-12 06:08:58] Start standard processing workflow...
#> ℹ [2026-11-12 06:08:58] Checking a list of <Seurat>...
#> ! [2026-11-12 06:08:58] Data 1/1 of the `srt_list` is "unknown"
#> ℹ [2026-11-12 06:08:58] Perform `NormalizeData()` with `normalization.method = 'LogNormalize'` on 1/1 of `srt_list`...
#> ℹ [2026-11-12 06:08:59] Perform `FindVariableFeatures()` on 1/1 of `srt_list`...
#> ℹ [2026-11-12 06:08:59] Use the separate HVF from `srt_list`
#> ℹ [2026-11-12 06:08:59] Number of available HVF: 2000
#> ℹ [2026-11-12 06:08:59] Finished check
#> ℹ [2026-11-12 06:08:59] Perform `ScaleData()`
#> ℹ [2026-11-12 06:08:59] Perform pca linear dimension reduction
#> ℹ [2026-11-12 06:08:59] Use stored estimated dimensions 1:23 for Standardpca
#> ℹ [2026-11-12 06:09:00] Perform `Seurat::FindClusters()` with `cluster_algorithm = 'louvain'` and `cluster_resolution = 0.6`
#> ℹ [2026-11-12 06:09:00] Reorder clusters...
#> ℹ [2026-11-12 06:09:00] Skip `log1p()` because `layer = data` is not "counts"
#> ℹ [2026-11-12 06:09:00] Perform umap nonlinear dimension reduction
#> ✔ [2026-11-12 06:09:09] Standard processing workflow completed
pancreas_sub <- Runscds(pancreas_sub, method = "hybrid")
#> ℹ [2026-11-12 06:09:09] Running scds with method "hybrid"
#> ℹ [2026-11-12 06:09:10] Data type is raw counts
CellDimPlot(
  pancreas_sub,
  reduction = "umap",
  group.by = "db.scds_hybrid_class"
)


FeatureDimPlot(
  pancreas_sub,
  reduction = "umap",
  features = "db.scds_hybrid_score"
)