This function performs doublet-calling using the scrublet(python) package on a Seurat object.
Usage
db_Scrublet(srt, assay = "RNA", db_rate = ncol(srt)/1000 * 0.01, ...)
Examples
if (FALSE) { # \dontrun{
data("pancreas_sub")
pancreas_sub <- db_Scrublet(pancreas_sub)
CellDimPlot(
srt = pancreas_sub,
reduction = "umap",
group.by = "db.Scrublet_class"
)
FeatureDimPlot(
srt = pancreas_sub,
reduction = "umap",
features = "db.Scrublet_score"
)
} # }