Quiz: single-cell RNA-seq data & QC
Short questions to test your understanding of single-cell RNA-seq data and quality control. Try each on paper first, then open the answer. These are conceptual.
Q1. What does a single entry \(X_{cg}\) of a single-cell count matrix represent, and what shape is the matrix (what are the rows and columns)?
Think “sample × feature”, but the samples are now individual cells.
\(X_{cg}\) is the number of UMIs (mRNA molecules) of gene \(g\) detected in cell \(c\) — a non-negative integer count. The matrix has cells in rows and genes in columns (one row per cell, one column per gene). It is the single-cell analogue of a sample × feature omics table, with cells playing the role of samples.
Q2. Single-cell count matrices are typically 90%+ zeros. Give the two distinct reasons a zero can appear, and say why we store the matrix in a sparse format.
One reason is biology; one is a limitation of the measurement. And a dense 20,000 × 50,000 table of numbers is huge.
A zero can be biological (the gene is genuinely not expressed in that cell) or technical — a dropout, where the gene is expressed but its molecules were not captured/sequenced (a false zero from limited sensitivity). We usually cannot tell which from the count alone. We store the data sparsely (only the non-zero entries) because a dense matrix of, say, 20,000 genes × 50,000 cells would take tens of gigabytes, most of it storing zeros.
Q3. In the droplet workflow, what are the roles of the cell barcode and the UMI?
One identifies which cell; the other identifies which original molecule.
The cell barcode tags every molecule from a given droplet with the same code, so after pooled sequencing the reads can be sorted back into individual cells (which cell). The UMI (unique molecular identifier) tags each original mRNA molecule before amplification, so reads sharing a UMI came from one molecule and are counted once (which molecule) — this removes PCR amplification bias, giving true molecule counts.
Q4. What is an empty droplet, and what does a barcode-rank (“knee”) plot show about it?
Even a droplet with no cell captures a little floating RNA. Rank barcodes by total counts and look for a sudden drop.
An empty droplet contains no cell but still captures a little ambient RNA (mRNA released by lysed cells into the suspension), giving a low-count background profile. A barcode-rank plot sorts barcodes by total counts (descending, on log-log axes); real cells sit at high counts and there is a sharp “knee” where counts drop steeply to the empty-droplet background. The knee is used to separate true cells from empty droplets (dedicated tools like EmptyDrops model the ambient profile to do this more carefully).
Q5. After filtering, we library-size normalize and then apply log1p. What problem does each step solve?
One step makes cells with different total counts comparable; the other tames genes that span orders of magnitude.
Library-size normalization (divide each cell by its total counts, rescale to a common size) removes differences in total counts that come from technical capture/sequencing depth rather than biology, making cells comparable — it converts counts into relative expression per cell. log1p (\(\log(1+x)\)) compresses the huge dynamic range of expression so a few very-high genes do not dominate variance/distance calculations, and stabilizes variance; the \(+1\) keeps zeros at zero and avoids \(\log 0 = -\infty\).
Q6. We keep only the ~2,000 highly variable genes. Why not simply keep the genes with the highest variance?
In count data, how does a gene’s variance relate to its mean expression?
Because in count data variance grows with the mean: a highly expressed gene (e.g. a housekeeping gene like ACTB) has a large raw variance simply because it is big, not because it distinguishes cell types. Ranking by raw variance would just pick the highest-expressed genes. HVG selection instead ranks genes by variance relative to the mean–variance trend — keeping genes that vary more than expected for their mean, which are the ones carrying real biological signal (e.g. cell-type markers that are off in most cells and high in one type).