Zubair Khalid

Virologist/Molecular Biologist | Veterinarian | Bioinformatician

Conventional & Molecular Virology • Vaccine Development • Computational Biology

Dr. Zubair Khalid is a veterinarian and virologist specializing in conventional and molecular virology, vaccine development, and computational biology. Dedicated to advancing animal health through innovative research and multi-omics approaches.

Dr. Zubair Khalid - Veterinarian, Virologist, and Vaccine Development Researcher specializing in Computational Biology, Multi-omics, Animal Health, and Infectious Disease Research

Category: Guides

Single Cell Rna Sequencing Analysis Pipeline

Single cell RNA sequencing (scRNA seq) analysis pipelines convert raw sequencing reads into interpretable snapshots of gene expression at the resolution of individual cells. This guide is for bench scientists, bioinformatics beginners, and researchers transitioning from bulk RNA seq who need a practical, source bounded framework to plan, execute, and troubleshoot scRNA seq analyses. It covers core concepts, key decision points, a step by step workflow, quality checks, common mistakes, and limits of interpretation. Throughout, references are drawn from authoritative resources such as the NCBI Bookshelf and training materials from the EMBL EBI Training portal and the Galaxy Training Network.

At a Glance

Pipeline Phase Key Steps Typical Tools Critical Quality Checks
Raw data processing Demultiplexing, read alignment or quantification, UMI counting Cell Ranger, STARsolo, kallisto bustools, alevin Mapping rate over 70%, high fraction of reads with valid barcodes
Count matrix generation Filtering empty droplets, generating gene cell matrix DropletUtils (EmptyDrops), Cell Ranger, BUStools Barcode rank plot inflection point, number of cells detected
Quality control Filter low quality cells, detect doublets scater, Seurat, scran, DoubletFinder Library size, mitochondrial proportion, gene count distributions
Normalization Scaling to remove technical effects scran (deconvolution), Seurat (LogNormalize, SCTransform), SCnorm Stability compared to raw counts, preservation of biological variation
Batch correction Integrate samples or experiments Harmony, Seurat (CCA + MNN), fastMNN, ComBat Batch mixing in PCA, no overcorrection of known biological groups
Dimensionality reduction PCA, UMAP, t SNE irlba, uwot, Rtsne Elbow plot for PC selection, cluster separation in UMAP
Clustering Graph based community detection Louvain, Leiden (Seurat, scanpy) Cluster stability (bootstrap), cluster size distribution
Marker identification Differential expression between clusters Seurat FindMarkers, scran findMarkers, pseudobulk DESeq2 Fold change, adjusted p value, fraction of cells expressing
Cell type annotation Assign cell type labels based on markers SingleR, manual curation, reference mapping Consistency with known biology, cross validation across references

Decision Points Before You Start

Not every pipeline suits every experiment. The choice of alignment method, normalization, and batch correction depends on your data structure and biological question.

Choice of quantification engine. If you used 10x Genomics chemistry, Cell Ranger or STARsolo are straightforward. For plate based protocols like Smart seq2, you will need a splice aware aligner (STAR, HISAT2) and a feature quantification tool (featureCounts, htseq count). The Bioconductor project provides extensive R packages for each step. For rapid processing of droplet data, pseudoalignment with kallisto bustools reduces run time without sacrificing accuracy. Check whether your protocol includes unique molecular identifiers (UMIs), as they require counting strategies that collapse PCR duplicates.

Normalization strategy. scRNA seq data contains many zeros and variable library sizes. Simple global scaling (as in Seurats LogNormalize) works well for many datasets but can be biased by highly expressed genes. scrans deconvolution method pools cells to estimate size factors more robustly. SCTransform (Seurat v4+) uses regularized negative binomial regression and often outperforms log normalization. Test a normalization approach on a subset of your data and inspect whether housekeeping genes become constant across cells.

Batch correction or integration. If your dataset includes multiple samples, runs, or sequencing batches, you must correct for technical effects without erasing biological differences. Methods such as Harmony and Seurat`s CCA + MNN are popular. The Galaxy Training Network offers workflows that walk through integration steps. Be cautious: overcorrection can merge distinct cell types, while undercorrection leaves batch specific clusters. Always verify by coloring UMAP by batch before and after correction.

Practical Workflow and Implementation Steps

1. Data Acquisition from Raw Sequencing Files

Download FASTQ files from a public repository such as the NCBI Sequence Read Archive or generate them directly from your core facility. If you have BCL files from Illumina sequencing, use bcl2fastq to demultiplex. For 10x data, ensure you have the correct chemistry version to choose the right reference genome index.

2. Read Quantification and Count Matrix Construction

Run a quantification tool that matches your protocol. For 10x data with Cell Ranger, provide FASTQs and a reference transcriptome. The output is a filtered feature barcode matrix. Validate the barcode rank plot: look for a steep drop between true cells and empty droplets. Use DropletUtils or EmptyDrops to recover cells with low RNA content that still pass a robust threshold.

3. Quality Control of Individual Cells

Load the count matrix into Seurat or an SCE object (SingleCellExperiment). Compute per cell metrics: number of genes detected, total UMI counts, and percentage of mitochondrial reads. Typical thresholds: remove cells with fewer than 200 genes, more than 20% mitochondrial reads, or extremely high library sizes (indicating doublets). Use DoubletFinder or scds to computationally predict doublets. Remove cells flagged as doublets. Visualize QC metrics before and after filtering.

4. Normalization and Variance Stabilization

For Seurat users, NormalizeData is a quick start. For more robust normalization, run SCTransform. For data from multiple batches, consider SCTransform with vars.to.regress set to batch or percent.mito. Check that normalization does not drastically alter the relative expression of known cell type markers. For example, if T cells from a separate dataset (as analyzed in Single cell RNA sequencing and cross species analysis of aortic dissection) show consistent CD3D expression before and after normalization, the procedure is acceptable.

5. Feature Selection and Dimensionality Reduction

Select the top 2000 highly variable genes. Run PCA and examine the elbow plot to decide the number of principal components to retain (usually between 15 and 50). Compute UMAP or t SNE for visualization. For integration, use Harmony or FindIntegrationAnchors before PCA.

6. Clustering and Marker Identification

Perform graph based clustering using Louvain or Leiden algorithms. Choose a resolution that yields biologically coherent clusters (not too many subdivisions). Find markers for each cluster using differential expression tests. Prioritize markers that are expressed in at least 25% of cells in the cluster and show at least 2 fold change over the rest. Validate with literature, for example, the application of scRNA seq to identify succinylation associated genes in AMI (see Succinylation annotated genes in AMI), where clusters were confirmed by known markers.

7. Cell Type Annotation

Map cluster markers to canonical cell type signatures. Use automated tools like SingleR with reference datasets (Human Primary Cell Atlas, Immunological Genome Project). For a custom annotation, build a heatmap of top markers and match them to known biology. Cross check with publications on the same tissue. For pancreatic studies, refer to findings from Multi omic single nuclei profiling of murine pancreas showing epigenetic heterogeneity. Manual annotation should always be validated by at least two independent markers per cell type.

8. Downstream Analysis

Once clusters have cell type labels, you can perform differential expression between conditions, pathway enrichment (GSVA, GSEA), or trajectory inference (Monocle, Slingshot). Integrate with other modalities such as spatial data using STGBench (see STGBench sequencing level spatial DNA RNA simulation). For disease focused studies like Shared Genetic Risk Between Acute Pancreatitis and Metabolic Syndrome, confirm that the target cell population (e.g., BCAT1 positive fibroblasts) is captured and expresses the expected markers.

Common Mistakes to Avoid

Aggressive filtering of cells with low gene counts. Many real cells, especially from tissue dissociations, express few genes. If you set a threshold too high (e.g., removing all cells with fewer than 1000 genes), you may lose immune cells or stressed cells. Use mitochondrial percentage as a more informative filter.

Ignoring ambient RNA. Droplet based methods capture free floating RNA from dead cells. Remove ambient RNA with SoupX or CellBender. Otherwise your clustering may show spurious expression of hepatocyte genes in non hepatocyte clusters.

Assuming clustering results are final. Cluster numbers and composition depend on resolution and initialization. Run clustering with multiple resolutions and test sensitivity. Do not interpret each cluster as a distinct cell type without marker validation and reference comparison.

Misinterpreting dropout as absent expression. scRNA seq has high dropout rates. A gene measured in 10% of cells does not mean it is expressed in only 10% of the population. It may reflect low expression or technical loss. Use imputation methods cautiously and only after clustering.

Limits of Interpretation

Single cell data are sparse, noisy, and compositional. You cannot directly infer absolute RNA molecules per cell, counts are relative and depend on capture efficiency. Do not claim that a gene is “not expressed” in a cell type unless you have orthogonal validation (e.g., FISH, qPCR). Batch effects can persist even after correction. Conclusions about rare populations (<0.5% of cells) require extreme caution because doublets or environmental contamination can mimic rare cell types.

Furthermore, scRNA seq captures only RNA, not protein or function. As shown in Cell type targeted CRISPR/Cas9 Clock knockdown studies, integration of perturbation and transcriptomics can reveal causal relationships, but correlation alone is insufficient. Always state confidence intervals or reproducibility metrics when reporting marker lists.

Frequently Asked Questions

1. What sequencing depth do I need for scRNA seq? For droplet based methods (10x), aim for 20,000 to 50,000 reads per cell for human transcriptome coverage. Higher depth improves detection of lowly expressed genes but does not greatly increase the number of genes detected per cell. Plate based methods typically use deeper sequencing per cell (1 5 million reads).

2. How do I handle doublets in my data? Use computational doublet detection tools (DoubletFinder, scds, DoubletDetection) before clustering. Some tools simulate doublets from existing data. Expect a doublet rate of 1 5% per 1000 cells loaded. After identification, remove all predicted doublets, especially if you plan to study rare populations.

3. Can I integrate scRNA seq data from different platforms (e.g., 10x and Smart seq2)? Yes, but you must use dedicated integration methods (Seurat, Harmony, scVI). The differences in capture efficiency and gene coverage require scaling and normalization adjustments. Validate integration by checking that known cell type markers appear in the same cluster regardless of origin.

4. Why are so many genes detected as zero in my count matrix? This is a hallmark of scRNA seq due to low RNA input and stochastic expression (dropout). It does not necessarily indicate that those genes are off. Many zeros are biologically real for genes expressed in only a subset of cells. Use zero inflated models carefully and avoid interpreting absence of expression as confirmed silence.

References and Further Reading

Related Articles