Scds Tutorial

scds is a transcription-based doublet detection software that uses two different methods to detect doublets - cxds and bcds. The cxds method uses marker genes that are not co-expressed to identify droplets that are likely doublets. bcds simulates doublet by adding droplet transcriptomes together and then uses variable genes to identify the probability a droplet is a doublet with a binary classification algorithm. We typically use the combined score of these two methods but they can be use separately as well. We have provided a wrapper script that takes common arguments for scds and we alsp provide an example script that you can run manually in R if you prefer.

Data

This is the data that you will need to have preparede to run scds:

Required

  • A counts matrix ($MATRIX)

    • Scds expects counts to be in the cellranger output format (directory containing barcodes.tsv, genes.tsv and matrix.mtx or barcodes.tsv.gz, features.tsv.gz and matrix.mtx.gz)

      • If you don’t have your data in this format, you can run scds manually in R and load the data in using a method of your choosing.

  • Output directory ($SCDS_OUTDIR)

    • If you don’t provide an $SCDS_OUTDIR, the results will be written to the present working directory.

Run scds

You can either run scds with the wrapper script we have provided or you can run it manually if you would prefer to alter more parameters.

singularity exec Demuxafy.sif scds.R -o $SCDS_OUTDIR -t $MATRIX

scds Results and Interpretation

After running the scds with the wrapper script or manually you should have two files in the $SCDS_OUTDIR:

.
├── scds_doublets_singlets.tsv
└── scds_doublet_summary.tsv
  • scds_doublet_summary.tsv

    • A sumamry of the number of singlets and doublets predicted by scds.

      Classification

      Droplet N

      doublet

      2771

      singlet

      18211

      • To check whether the numbe of doublets identified by scds is consistent with the expected doublet rate expected based on the number of droplets that you captured, you can use our Expected Doublet Estimation Calculator.

  • scds_doublets_singlets.tsv

    • The per-barcode singlet and doublet classification from scds.

      Barcode

      scds_score

      scds_DropletType

      AAACCTGAGATAGCAT-1

      0.116344358493288

      singlet

      AAACCTGAGCAGCGTA-1

      0.539856378453988

      singlet

      AAACCTGAGCGATGAC-1

      0.0237184380134577

      singlet

      AAACCTGAGCGTAGTG-1

      0.163695865366576

      singlet

      AAACCTGAGGAGTTTA-1

      0.11591462421927

      singlet

      AAACCTGAGGCTCATT-1

      0.0479944175570073

      singlet

      AAACCTGAGGGCACTA-1

      0.374426050641161

      singlet

      AAACCTGAGTAATCCC-1

      0.247842972104563

      singlet

Merging Results with Other Software Restults

We have provided a script that will help merge and summarize the results from multiple softwares together. See Combine Results.

Citation

If you used this workflow for analysis, please reference our paper (REFERENCE) as well as scds.