Understanding Quality Control in Single-Cell RNA Sequencing: Part III – Detecting Doublets

July 11, 2024

In the previous parts of our series on single-cell RNA sequencing (scRNA-seq) quality control (QC), we discussed detecting low UMI cells and empty droplets. In this third part, we will focus on detecting doublets. Doublets occur when two or more cells are captured in the same droplet, leading to mixed gene expression profiles that can confound downstream analyses. We’ll use the πšœπš’πš—πšπš•πšŽπ™²πšŽπš•πš•πšƒπ™Ί toolkit to illustrate how to detect and manage doublets in scRNA-seq data.

What Are Doublets?

Doublets arise when multiple cells are encapsulated in the same droplet (see our last article for more info on droplets) during droplet-based scRNA-seq. These events can result in hybrid gene expression profiles that do not represent any single cell, leading to potential misinterpretations in analyses such as cell type identification or trajectory inference.

Why Detect Doublets?

Identifying and filtering doublets is crucial because they can significantly impact the accuracy of your data analysis. Doublets can falsely appear as rare cell types or lead to incorrect clustering and differential expression results.

Step-by-Step Guide to Detecting Doublets with πšœπš’πš—πšπš•πšŽπ™²πšŽπš•πš•πšƒπ™Ί

πšœπš’πš—πšπš•πšŽπ™²πšŽπš•πš•πšƒπ™Ί provides a method called πš›πšžπš—π™³πš˜πšžπš‹πš•πšŽπšπ™΅πš’πš—πšπšŽπš›() to identify potential doublets in your scRNA-seq data, and another, more general QC function – πš›πšžπš—π™²πšŽπš•πš•πš€π™²() – which allows to specify multiple different algorithms at the same time. Here’s how to use it:

Step 1: Load the Data

First, load your scRNA-seq data into R. πšœπš’πš—πšπš•πšŽπ™²πšŽπš•πš•πšƒπ™Ί supports various data formats, including πš‚πš’πš—πšπš•πšŽπ™²πšŽπš•πš•π™΄πš‘πš™πšŽπš›πš’πš–πšŽπš—πš objects and πš‚πšŽπšžπš›πšŠπš objects.

Step 2: Run Doublet Detection

Use the πšœπš’πš—πšπš•πšŽπ™²πšŽπš•πš•πšƒπ™Ί::πš›πšžπš—π™²πšŽπš•πš•πš€π™²() function to identify potential doublets. This function allows to specify QC algorithms, including a machine learning approach to detect doublets based on gene expression profiles. We choose πšœπšŒπ™³πš‹πš•π™΅πš’πš—πšπšŽπš› (Germain et al. 2012) and πšπš˜πšžπš‹πš•πšŽπšπ™΅πš’πš—πšπšŽπš› (McGinnis et al. 2019) in our example.

Step 3: Examine the Results

The πš›πšžπš—π™²πšŽπš•πš•πš€π™²() function has added columns to the cell metadata, including an indication of the doublet scores and a binary classification of whether a cell is a doublet.

We can visualise how many doublets are identified per method:

Step 4: Filter Out Doublets

For πšπš˜πšžπš‹πš•πšŽπšπ™΅πš’πš—πšπšŽπš›(), we can set a threshold for the doublet score to filter out potential doublets. This threshold can be adjusted based on the distribution of scores in your dataset.

Practical Example

Let’s apply this to the pbmc3k dataset, which contains peripheral blood mononuclear cells (PBMCs). We use the simplified function πš›πšžπš—π™³πš˜πšžπš‹πš•πšŽπšπ™΅πš’πš—πšπšŽπš›(), to only identify doublets with one method.

In this example, cells with doublet scores above 0.25 are identified as doublets and removed, ensuring that only high-quality single-cell data is used in further analyses.

Conclusion

Detecting and filtering doublets is a critical step in scRNA-seq quality control. By using πšœπš’πš—πšπš•πšŽπ™²πšŽπš•πš•πšƒπ™Ί, researchers can effectively identify doublets, reducing noise and improving the accuracy of their analyses. In the next part of this series, we will explore methods to detect ambient RNA, another common source of contamination in scRNA-seq data. Stay tuned!


By following these steps, you can enhance the reliability of your scRNA-seq data and gain deeper insights into the biology of single cells.

References

Germain PL, Lun A, Meixide CG, Macnair W, Robinson MD. Doublet identification in single-cell sequencing data using scDblFinder. F1000Research. 2021;10.

Hong R, Koga Y, Bandyadka S, Leshchyk A, Wang Y, Akavoor V, Cao X, Sarfraz I, Wang Z, Alabdullatif S, Jansen F. Comprehensive generation, visualization, and reporting of quality control metrics for single-cell RNA sequencing data. Nature communications. 2022 Mar 30;13(1):1688.

McGinnis CS, Murrow LM, Gartner ZJ. DoubletFinder: doublet detection in single-cell RNA sequencing data using artificial nearest neighbors. Cell systems. 2019 Apr 24;8(4):329-37.

Schedule your free discovery call here

Contact us atΒ info@insigene.com

Β© INSiGENe Ltd. Site maintained by NFIC ServicesΒ  |Β  Privacy Policy.