[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFJAB0H5CTWW4WYFYY1X5Q":3,"skill-same:01M7EFJAB0H5CTWW4WYFYY1X5Q":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EFJAB0H5CTWW4WYFYY1X5Q","bio-single-cell-doublet-detection",null,"Detect and remove doublets (two or more cells in one droplet) from single-cell RNA-seq using scDblFinder (R), Scrublet (Python), and DoubletFinder (R). Use when flagging artificial intermediate populations before clustering, setting the expected doublet rate from recovered-cell counts, running detection per sample before integration, choosing between simulate-and-score methods, or interpreting a non-bimodal score histogram.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-doublet-detection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-single-cell-doublet-detection\ndescription: Detect and remove doublets (two or more cells in one droplet) from single-cell RNA-seq using scDblFinder (R), Scrublet (Python), and DoubletFinder (R). Use when flagging artificial intermediate populations before clustering, setting the expected doublet rate from recovered-cell counts, running detection per sample before integration, choosing between simulate-and-score methods, or interpreting a non-bimodal score histogram.\ntool_type: mixed\nprimary_tool: scDblFinder\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"single-cell\u002Fdoublet-detection\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: scanpy 1.10+, scDblFinder 1.16+, Seurat 5.0+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Doublet Detection\n\n**\"Remove doublets from my data\"** -> Flag droplets that captured two or more cells, which masquerade as fake intermediate cell states.\n- Python: `sc.pp.scrublet()` per sample on raw counts\n- R: `scDblFinder(sce, samples=...)` per sample on raw counts\n\n## Governing Principle\n\nDoublets fabricate fake biology, so the goal is not a \"doublet-free\" dataset but avoiding false conclusions. Three facts govern every decision.\n\nDoublets create fake intermediate populations. A heterotypic doublet (two distinct types, e.g. T cell + monocyte) sums to a profile that lands between clusters and reads as a novel \"transitional\" state - the most damaging failure mode, because it corrupts trajectory inference and RNA velocity by building false bridges between lineages. Treat any small cluster co-expressing two lineage programs (CD3+LYZ, EPCAM+PTPRC) as doublet-suspect until proven otherwise.\n\nDetect per sample, before integration or clustering. A doublet is a physical event within one droplet in one capture, so two cells from different samples can never share one - any cross-sample doublet called on a merged object is meaningless. Merging also corrupts the kNN\u002FPCA neighborhood that scoring depends on. scDblFinder's `samples=` handles this internally; Scrublet and DoubletFinder must be looped per sample. All three want raw counts after basic QC.\n\nRemoval is never complete, and over-removal deletes real cells. Homotypic doublets (two cells of the same type) sum to a profile that looks like one bigger cell of that type and are nearly invisible to any expression-based method, so reported \"doublet rates\" only cover the heterotypic-detectable fraction. Conversely, doublet scores correlate with total counts, the same axis as count-based QC, so aggressive filtering on both double-penalizes and strips genuine high-RNA populations (megakaryocytes, plasma cells, large neurons). Coordinate the two filters and prefer flag-and-inspect over blind deletion.\n\n## Expected Doublet Rate\n\n10X Chromium loading is near-Poisson, so the multiplet rate scales roughly linearly with recovered cells: ~0.8% per 1,000 cells recovered (`dbr.per1k = 0.008`).\n\n| Cells recovered (~) | Expected rate (~) |\n|---------------------|-------------------|\n| 1,000 | 0.8% |\n| 2,000 | 1.6% |\n| 5,000 | 3.9% |\n| 10,000 | 7.6-8% |\n\nRule: rate ~= 0.008 x recovered\u002F1000. Always set the expected rate from the actual recovered-cell count of that lane; Scrublet's flat `expected_doublet_rate=0.05` is a placeholder, not a recommendation. High-throughput chips have lower per-cell rates. For multiplexed pools (genotype\u002FHTO-demultiplexed), the physical doublet rate is set by TOTAL lane loading, not the demultiplexed subset: deriving the rate from one sample's cells underestimates it (four 5k samples in one 20k lane is ~15% real, not the ~3.9% implied by 5k), so set the rate from the total lane cell count.\n\n## Heterotypic, Homotypic, Neotypic\n\n| Type | Composition | Detectability |\n|------|-------------|---------------|\n| Heterotypic | Two transcriptionally distinct types | Detectable; lands between clusters; the dangerous \"fake transitional\" ones |\n| Homotypic | Two cells of the same type | Nearly undetectable by expression; persists after removal |\n| Neotypic | Heterotypic blend occupying a region no singlet occupies | Most detectable; most misleading if missed (looks like a rare new type) |\n\n`modelHomotypic`-style adjustments only change the number expected to be detectable; they cannot recover undetectable homotypic doublets.\n\n## Choosing a Method\n\n| Method | Model | Use when | Fails \u002F weak when |\n|--------|-------|----------|-------------------|\n| scDblFinder (R) | xgboost on kNN features vs simulated doublets | Default; best accuracy-speed balance; built-in per-sample via `samples=` | R\u002FBioconductor only |\n| Scrublet (Python) | kNN density of simulated doublets | scanpy-native pipelines | Auto-threshold fails on unimodal histograms; loop per sample manually |\n| DoubletFinder (R) | pANN from PC neighborhood | Legacy Seurat workflows | Brittle; `pK` needs per-dataset sweep; `*_v3` names removed; Seurat-version-coupled |\n| solo (Python) | scVI VAE + classifier | Have a trained scVI model; GPU available | Heavier setup |\n| scds cxds\u002Fbcds\u002Fhybrid (R) | Co-expression \u002F boosted tree | Fast first pass on very large data | Lower accuracy than scDblFinder\u002FDoubletFinder |\n\nscDblFinder is the 2024-2026 best-balance default and is recommended by sc-best-practices. The older Xi and Li 2021 ranking (\"DoubletFinder is most accurate\") predates major scDblFinder improvements and is superseded - do not cite it against current scDblFinder. Methods compete and drift; verify current standing against the installed tool's docs before committing.\n\n## scDblFinder (R, recommended)\n\n**Goal:** Call doublets with a fast gradient-boosted classifier, per sample, with the rate inferred from cell count.\n\n**Approach:** Convert to SingleCellExperiment, pass the per-sample key so each capture is processed independently, then read the class\u002Fscore back.\n\n```r\nlibrary(scDblFinder)\nlibrary(SingleCellExperiment)\n\nsce \u003C- as.SingleCellExperiment(seurat_obj)                 # or build directly from a counts matrix\nsce \u003C- scDblFinder(sce, samples = 'sample_id')             # per-capture; dbr defaults from cell count via dbr.per1k=0.008\ntable(sce$scDblFinder.class)                               # adds scDblFinder.class ('singlet'\u002F'doublet') and .score\nseurat_obj$scDblFinder_class \u003C- sce$scDblFinder.class\nseurat_obj$scDblFinder_score \u003C- sce$scDblFinder.score\n```\n\n`clusters=NULL` (default) generates purely random artificial doublets and is generally recommended; pass a vector for cluster-based generation. `dbr=NULL` computes the rate from cell count; set `dbr`\u002F`dbr.sd` explicitly to encode a known loading.\n\n## Scrublet (Python)\n\n**Goal:** Score doublets in a scanpy pipeline, per sample, with the rate set from recovered cells.\n\n**Approach:** Use the maintained `sc.pp.scrublet` path on raw counts; set `expected_doublet_rate` per lane; inspect the histogram when the auto-threshold looks wrong.\n\n```python\nimport scanpy as sc\n\nn_cells = adata.n_obs\nexpected_rate = 0.008 * n_cells \u002F 1000                     # from recovered cells, not the 0.05 placeholder\nsc.pp.scrublet(adata, expected_doublet_rate=expected_rate)  # adds obs['doublet_score'], obs['predicted_doublet']\n# auto-threshold needs a bimodal histogram; if unimodal, inspect uns['scrublet'] and set threshold manually\nadata_singlets = adata[~adata.obs['predicted_doublet']].copy()\n```\n\nFor pooled samples, loop `sc.pp.scrublet(adata[adata.obs.sample == s], ...)` per sample (or pass `batch_key`), never on the merged object.\n\n## DoubletFinder (R, legacy Seurat)\n\n**Goal:** Run DoubletFinder on a fully preprocessed Seurat object, tuning `pK` and homotypic-adjusting the expected count.\n\n**Approach:** Sweep `pK`, pick the BCmvn maximum, then set `nExp` from the rate adjusted for the homotypic fraction.\n\n```r\nlibrary(DoubletFinder)                                     # *_v3 function names were removed in Nov 2023; verify installed API\n\nsweep.res \u003C- paramSweep(seurat_obj, PCs = 1:20, sct = FALSE)\nbcmvn \u003C- find.pK(summarizeSweep(sweep.res, GT = FALSE))\npK \u003C- as.numeric(as.character(bcmvn$pK[which.max(bcmvn$BCmetric)]))   # no default pK; tune per dataset\n\nrate \u003C- 0.008 * ncol(seurat_obj) \u002F 1000\nnExp \u003C- round(rate * ncol(seurat_obj))\nnExp \u003C- round(nExp * (1 - modelHomotypic(seurat_obj$seurat_clusters)))  # discount undetectable homotypic doublets\nseurat_obj \u003C- doubletFinder(seurat_obj, PCs = 1:20, pN = 0.25, pK = pK, nExp = nExp, sct = FALSE)\n```\n\n`pN` (artificial-doublet proportion) defaults to 0.25 and performance is largely insensitive to it. DoubletFinder requires a normalized, PCA'd, clustered object and is the most version-sensitive of the three.\n\n## Deeper Cautions\n\nSimulated doublets are a model, not the real thing: real doublets share one RT\u002FPCR reaction (capture competition, barcode effects), so simulated-doublet density only approximates where real doublets sit, and even the best method has a low ceiling (max mean AUPRC ~0.537 in Xi and Li 2021 - every method misses a lot). Over-removal culls proliferating (S\u002FG2M) and genuine transitional cells that legitimately score high, so cross-check removed cells against cell-cycle and activation signatures. When available, experimental ground truth beats inference: cell hashing (CITE-seq HTOs) and MULTI-seq call inter-sample doublets directly regardless of expression similarity (catching even cross-sample homotypic doublets), and serve as a complementary filter. Heavy ambient RNA can mimic co-expression and nudge scores, so handle empty droplets and ambient RNA first (see single-cell\u002Fpreprocessing).\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Doublet calls look random \u002F too many | Run on merged multi-sample data | Run per sample before integration (`samples=` or loop) |\n| Auto-threshold splits the histogram badly | Scrublet histogram is unimodal | Inspect the histogram and set `threshold` manually |\n| A high-RNA cell type was wiped out | Count-based QC and doublet removal double-penalized the same axis | Coordinate the filters; do not stack aggressive cutoffs |\n| \"Novel transitional state\" co-expresses two lineages | Heterotypic doublets masquerading as a cluster | Confirm per-sample detection; check marker co-expression \u002F hashing before claiming a new type |\n| Trajectory has an implausible bridge between lineages | Doublets forming a false intermediate | Remove\u002Fflag doublets before trajectory inference |\n| Reported \"0% doublets\" | Homotypic doublets are invisible | Do not claim doublet-free; report only the detectable fraction |\n| DoubletFinder call errors after a Seurat upgrade | `*_v3` names removed; API drift | Use current function names; re-tune `pK` |\n| Expected rate clearly wrong | Used a package default | Set rate from recovered cells (~0.008 x cells\u002F1000) |\n| Multiplexed pool underestimates doublets | Rate derived from one demultiplexed sample, not total lane | Set the expected rate from total capture-lane cells |\n\n## Related Skills\n\n- single-cell\u002Fpreprocessing - QC and ambient-RNA handling before doublet detection\n- single-cell\u002Fhashing-demultiplexing - Hashtag-based cross-sample doublet calling (complements expression-based detection)\n- single-cell\u002Fdata-io - load raw per-sample matrices before processing\n- single-cell\u002Fclustering - run clustering after doublet removal\n- single-cell\u002Fbatch-integration - integrate samples only after per-sample doublet calling\n- single-cell\u002Ftrajectory-inference - doublets create false bridges; remove them first\n\n## References\n\n- Wolock SL, Lopez R, Klein AM (2019) Scrublet: computational identification of cell doublets in single-cell transcriptomic data. Cell Systems 8(4):281-291.e9. DOI 10.1016\u002Fj.cels.2018.11.005\n- McGinnis CS, Murrow LM, Gartner ZJ (2019) DoubletFinder: doublet detection in single-cell RNA sequencing data using artificial nearest neighbors. Cell Systems 8(4):329-337.e4. DOI 10.1016\u002Fj.cels.2019.03.003\n- Germain P-L, Lun A, Macnair W, Robinson MD (2021) Doublet identification in single-cell sequencing data using scDblFinder. F1000Research 10:979. DOI 10.12688\u002Ff1000research.73600\n- Xi NM, Li JJ (2021) Benchmarking computational doublet-detection methods for single-cell RNA sequencing data. Cell Systems 12(2):176-194.e6. DOI 10.1016\u002Fj.cels.2020.11.008\n- Bernstein NJ, Fong NL, Lam I, et al. (2020) Solo: doublet identification in single-cell RNA-seq via semi-supervised deep learning. Cell Systems 11(1):95-101.e5. DOI 10.1016\u002Fj.cels.2020.05.010\n- Bais AS, Kostka D (2020) scds: computational annotation of doublets in single-cell RNA sequencing data. Bioinformatics 36(4):1150-1158. DOI 10.1093\u002Fbioinformatics\u002Fbtz698\n- McGinnis CS, Patterson DM, Winkler J, et al. (2019) MULTI-seq: sample multiplexing for single-cell RNA sequencing using lipid-tagged indices. Nature Methods 16(7):619-626. DOI 10.1038\u002Fs41592-019-0433-8\n- Heumos L, Schaar AC, Lance C, et al. (2023) Best practices for single-cell analysis across modalities. Nature Reviews Genetics 24:550-572. DOI 10.1038\u002Fs41576-023-00586-w\n","## Version Compatibility\n\nReference examples tested with: scanpy 1.10+, scDblFinder 1.16+, Seurat 5.0+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Doublet Detection\n\n**\"Remove doublets from my data\"** -> Flag droplets that captured two or more cells, which masquerade as fake intermediate cell states.\n- Python: `sc.pp.scrublet()` per sample on raw counts\n- R: `scDblFinder(sce, samples=...)` per sample on raw counts\n\n## Governing Principle\n\nDoublets fabricate fake biology, so the goal is not a \"doublet-free\" dataset but avoiding false conclusions. Three facts govern every decision.\n\nDoublets create fake intermediate populations. A heterotypic doublet (two distinct types, e.g. T cell + monocyte) sums to a profile that lands between clusters and reads as a novel \"transitional\" state - the most damaging failure mode, because it corrupts trajectory inference and RNA velocity by building false bridges between lineages. Treat any small cluster co-expressing two lineage programs (CD3+LYZ, EPCAM+PTPRC) as doublet-suspect until proven otherwise.\n\nDetect per sample, before integration or clustering. A doublet is a physical event within one droplet in one capture, so two cells from different samples can never share one - any cross-sample doublet called on a merged object is meaningless. Merging also corrupts the kNN\u002FPCA neighborhood that scoring depends on. scDblFinder's `samples=` handles this internally; Scrublet and DoubletFinder must be looped per sample. All three want raw counts after basic QC.\n\nRemoval is never complete, and over-removal deletes real cells. Homotypic doublets (two cells of the same type) sum to a profile that looks like one bigger cell of that type and are nearly invisible to any expression-based method, so reported \"doublet rates\" only cover the heterotypic-detectable fraction. Conversely, doublet scores correlate with total counts, the same axis as count-based QC, so aggressive filtering on both double-penalizes and strips genuine high-RNA populations (megakaryocytes, plasma cells, large neurons). Coordinate the two filters and prefer flag-and-inspect over blind deletion.\n\n## Expected Doublet Rate\n\n10X Chromium loading is near-Poisson, so the multiplet rate scales roughly linearly with recovered cells: ~0.8% per 1,000 cells recovered (`dbr.per1k = 0.008`).\n\n| Cells recovered (~) | Expected rate (~) |\n|---------------------|-------------------|\n| 1,000 | 0.8% |\n| 2,000 | 1.6% |\n| 5,000 | 3.9% |\n| 10,000 | 7.6-8% |\n\nRule: rate ~= 0.008 x recovered\u002F1000. Always set the expected rate from the actual recovered-cell count of that lane; Scrublet's flat `expected_doublet_rate=0.05` is a placeholder, not a recommendation. High-throughput chips have lower per-cell rates. For multiplexed pools (genotype\u002FHTO-demultiplexed), the physical doublet rate is set by TOTAL lane loading, not the demultiplexed subset: deriving the rate from one sample's cells underestimates it (four 5k samples in one 20k lane is ~15% real, not the ~3.9% implied by 5k), so set the rate from the total lane cell count.\n\n## Heterotypic, Homotypic, Neotypic\n\n| Type | Composition | Detectability |\n|------|-------------|---------------|\n| Heterotypic | Two transcriptionally distinct types | Detectable; lands between clusters; the dangerous \"fake transitional\" ones |\n| Homotypic | Two cells of the same type | Nearly undetectable by expression; persists after removal |\n| Neotypic | Heterotypic blend occupying a region no singlet occupies | Most detectable; most misleading if missed (looks like a rare new type) |\n\n`modelHomotypic`-style adjustments only change the number expected to be detectable; they cannot recover undetectable homotypic doublets.\n\n## Choosing a Method\n\n| Method | Model | Use when | Fails \u002F weak when |\n|--------|-------|----------|-------------------|\n| scDblFinder (R) | xgboost on kNN features vs simulated doublets | Default; best accuracy-speed balance; built-in per-sample via `samples=` | R\u002FBioconductor only |\n| Scrublet (Python) | kNN density of simulated doublets | scanpy-native pipelines | Auto-threshold fails on unimodal histograms; loop per sample manually |\n| DoubletFinder (R) | pANN from PC neighborhood | Legacy Seurat workflows | Brittle; `pK` needs per-dataset sweep; `*_v3` names removed; Seurat-version-coupled |\n| solo (Python) | scVI VAE + classifier | Have a trained scVI model; GPU available | Heavier setup |\n| scds cxds\u002Fbcds\u002Fhybrid (R) | Co-expression \u002F boosted tree | Fast first pass on very large data | Lower accuracy than scDblFinder\u002FDoubletFinder |\n\nscDblFinder is the 2024-2026 best-balance default and is recommended by sc-best-practices. The older Xi and Li 2021 ranking (\"DoubletFinder is most accurate\") predates major scDblFinder improvements and is superseded - do not cite it against current scDblFinder. Methods compete and drift; verify current standing against the installed tool's docs before committing.\n\n## scDblFinder (R, recommended)\n\n**Goal:** Call doublets with a fast gradient-boosted classifier, per sample, with the rate inferred from cell count.\n\n**Approach:** Convert to SingleCellExperiment, pass the per-sample key so each capture is processed independently, then read the class\u002Fscore back.\n\n```r\nlibrary(scDblFinder)\nlibrary(SingleCellExperiment)\n\nsce \u003C- as.SingleCellExperiment(seurat_obj)                 # or build directly from a counts matrix\nsce \u003C- scDblFinder(sce, samples = 'sample_id')             # per-capture; dbr defaults from cell count via dbr.per1k=0.008\ntable(sce$scDblFinder.class)                               # adds scDblFinder.class ('singlet'\u002F'doublet') and .score\nseurat_obj$scDblFinder_class \u003C- sce$scDblFinder.class\nseurat_obj$scDblFinder_score \u003C- sce$scDblFinder.score\n```\n\n`clusters=NULL` (default) generates purely random artificial doublets and is generally recommended; pass a vector for cluster-based generation. `dbr=NULL` computes the rate from cell count; set `dbr`\u002F`dbr.sd` explicitly to encode a known loading.\n\n## Scrublet (Python)\n\n**Goal:** Score doublets in a scanpy pipeline, per sample, with the rate set from recovered cells.\n\n**Approach:** Use the maintained `sc.pp.scrublet` path on raw counts; set `expected_doublet_rate` per lane; inspect the histogram when the auto-threshold looks wrong.\n\n```python\nimport scanpy as sc\n\nn_cells = adata.n_obs\nexpected_rate = 0.008 * n_cells \u002F 1000                     # from recovered cells, not the 0.05 placeholder\nsc.pp.scrublet(adata, expected_doublet_rate=expected_rate)  # adds obs['doublet_score'], obs['predicted_doublet']\n# auto-threshold needs a bimodal histogram; if unimodal, inspect uns['scrublet'] and set threshold manually\nadata_singlets = adata[~adata.obs['predicted_doublet']].copy()\n```\n\nFor pooled samples, loop `sc.pp.scrublet(adata[adata.obs.sample == s], ...)` per sample (or pass `batch_key`), never on the merged object.\n\n## DoubletFinder (R, legacy Seurat)\n\n**Goal:** Run DoubletFinder on a fully preprocessed Seurat object, tuning `pK` and homotypic-adjusting the expected count.\n\n**Approach:** Sweep `pK`, pick the BCmvn maximum, then set `nExp` from the rate adjusted for the homotypic fraction.\n\n```r\nlibrary(DoubletFinder)                                     # *_v3 function names were removed in Nov 2023; verify installed API\n\nsweep.res \u003C- paramSweep(seurat_obj, PCs = 1:20, sct = FALSE)\nbcmvn \u003C- find.pK(summarizeSweep(sweep.res, GT = FALSE))\npK \u003C- as.numeric(as.character(bcmvn$pK[which.max(bcmvn$BCmetric)]))   # no default pK; tune per dataset\n\nrate \u003C- 0.008 * ncol(seurat_obj) \u002F 1000\nnExp \u003C- round(rate * ncol(seurat_obj))\nnExp \u003C- round(nExp * (1 - modelHomotypic(seurat_obj$seurat_clusters)))  # discount undetectable homotypic doublets\nseurat_obj \u003C- doubletFinder(seurat_obj, PCs = 1:20, pN = 0.25, pK = pK, nExp = nExp, sct = FALSE)\n```\n\n`pN` (artificial-doublet proportion) defaults to 0.25 and performance is largely insensitive to it. DoubletFinder requires a normalized, PCA'd, clustered object and is the most version-sensitive of the three.\n\n## Deeper Cautions\n\nSimulated doublets are a model, not the real thing: real doublets share one RT\u002FPCR reaction (capture competition, barcode effects), so simulated-doublet density only approximates where real doublets sit, and even the best method has a low ceiling (max mean AUPRC ~0.537 in Xi and Li 2021 - every method misses a lot). Over-removal culls proliferating (S\u002FG2M) and genuine transitional cells that legitimately score high, so cross-check removed cells against cell-cycle and activation signatures. When available, experimental ground truth beats inference: cell hashing (CITE-seq HTOs) and MULTI-seq call inter-sample doublets directly regardless of expression similarity (catching even cross-sample homotypic doublets), and serve as a complementary filter. Heavy ambient RNA can mimic co-expression and nudge scores, so handle empty droplets and ambient RNA first (see single-cell\u002Fpreprocessing).\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Doublet calls look random \u002F too many | Run on merged multi-sample data | Run per sample before integration (`samples=` or loop) |\n| Auto-threshold splits the histogram badly | Scrublet histogram is unimodal | Inspect the histogram and set `threshold` manually |\n| A high-RNA cell type was wiped out | Count-based QC and doublet removal double-penalized the same axis | Coordinate the filters; do not stack aggressive cutoffs |\n| \"Novel transitional state\" co-expresses two lineages | Heterotypic doublets masquerading as a cluster | Confirm per-sample detection; check marker co-expression \u002F hashing before claiming a new type |\n| Trajectory has an implausible bridge between lineages | Doublets forming a false intermediate | Remove\u002Fflag doublets before trajectory inference |\n| Reported \"0% doublets\" | Homotypic doublets are invisible | Do not claim doublet-free; report only the detectable fraction |\n| DoubletFinder call errors after a Seurat upgrade | `*_v3` names removed; API drift | Use current function names; re-tune `pK` |\n| Expected rate clearly wrong | Used a package default | Set rate from recovered cells (~0.008 x cells\u002F1000) |\n| Multiplexed pool underestimates doublets | Rate derived from one demultiplexed sample, not total lane | Set the expected rate from total capture-lane cells |\n\n## Related Skills\n\n- single-cell\u002Fpreprocessing - QC and ambient-RNA handling before doublet detection\n- single-cell\u002Fhashing-demultiplexing - Hashtag-based cross-sample doublet calling (complements expression-based detection)\n- single-cell\u002Fdata-io - load raw per-sample matrices before processing\n- single-cell\u002Fclustering - run clustering after doublet removal\n- single-cell\u002Fbatch-integration - integrate samples only after per-sample doublet calling\n- single-cell\u002Ftrajectory-inference - doublets create false bridges; remove them first\n\n## References\n\n- Wolock SL, Lopez R, Klein AM (2019) Scrublet: computational identification of cell doublets in single-cell transcriptomic data. Cell Systems 8(4):281-291.e9. DOI 10.1016\u002Fj.cels.2018.11.005\n- McGinnis CS, Murrow LM, Gartner ZJ (2019) DoubletFinder: doublet detection in single-cell RNA sequencing data using artificial nearest neighbors. Cell Systems 8(4):329-337.e4. DOI 10.1016\u002Fj.cels.2019.03.003\n- Germain P-L, Lun A, Macnair W, Robinson MD (2021) Doublet identification in single-cell sequencing data using scDblFinder. F1000Research 10:979. DOI 10.12688\u002Ff1000research.73600\n- Xi NM, Li JJ (2021) Benchmarking computational doublet-detection methods for single-cell RNA sequencing data. Cell Systems 12(2):176-194.e6. DOI 10.1016\u002Fj.cels.2020.11.008\n- Bernstein NJ, Fong NL, Lam I, et al. (2020) Solo: doublet identification in single-cell RNA-seq via semi-supervised deep learning. Cell Systems 11(1):95-101.e5. DOI 10.1016\u002Fj.cels.2020.05.010\n- Bais AS, Kostka D (2020) scds: computational annotation of doublets in single-cell RNA sequencing data. Bioinformatics 36(4):1150-1158. DOI 10.1093\u002Fbioinformatics\u002Fbtz698\n- McGinnis CS, Patterson DM, Winkler J, et al. (2019) MULTI-seq: sample multiplexing for single-cell RNA sequencing using lipid-tagged indices. Nature Methods 16(7):619-626. DOI 10.1038\u002Fs41592-019-0433-8\n- Heumos L, Schaar AC, Lance C, et al. (2023) Best practices for single-cell analysis across modalities. Nature Reviews Genetics 24:550-572. DOI 10.1038\u002Fs41576-023-00586-w\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","single-cell\u002Fdoublet-detection\u002FSKILL.md","scDblFinder","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-single-cell-doublet-detection","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-single-cell-doublet-detection",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-single-cell-doublet-detection",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-single-cell-doublet-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-doublet-detection\u002FSKILL.md",true,[50,56,62],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fdoubletfinder.R","OTHER","其他",2013,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-doublet-detection\u002Fexamples\u002Fdoubletfinder.R",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"examples\u002Fscrublet_detection.py","SCRIPT","脚本",1111,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-doublet-detection\u002Fexamples\u002Fscrublet_detection.py",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"usage-guide.md","REFERENCE","参考文档",4227,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-doublet-detection\u002Fusage-guide.md",[69,77,84,91,98,105],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":76},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":76},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":76},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":76},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":76},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]