Gene expression and transcriptomics
Problems
- Batch effect correction
Remove differences between samples caused by processing batches while keeping the biological differences between conditions.
core - Differential expression analysis
Find the genes whose expression differs between conditions beyond biological variation, from few replicates and many genes.
core - Library size normalization
Find a scale factor for each sample so that counts become comparable across samples with different depth and composition.
core - Spliced read alignment
Align RNA-seq reads to a genome while allowing long gaps at introns, so that one read can span two or more exons.
core - Transcript abundance estimation
Estimate how much of each transcript is in a sample when many reads are compatible with several isoforms or genes, usually as a maximum likelihood estimate found by EM.
core - Transcript assembly
Reconstruct the full-length transcripts and isoforms of each gene, and often their abundances, from RNA-seq reads aligned to a genome, as paths through a splice graph.
core - De novo transcriptome assembly
Assemble transcripts from RNA-seq reads without a genome, with de Bruijn graphs that must handle very uneven coverage and isoforms that share exons.
advanced - Trajectory inference
Order cells along a continuous process such as differentiation, and find its branches, from a snapshot of single-cell profiles.
advanced
Algorithms
- Over-representation analysis
Test whether a gene set has more members in a list of selected genes than chance predicts, with a hypergeometric test per set.
1 languagesintro - ComBat
Remove batch effects by fitting location and scale shifts per gene and batch, shrunk across genes by empirical Bayes.
1 languagescore - EM isoform quantification
Estimate isoform abundances by EM: share each multi-mapping read among its transcripts in proportion to the current abundances, then re-estimate the abundances from the shares.
1 languagescore - Gene set enrichment analysis
Walk down the genes ranked by association and test whether a set's members gather at the top with a weighted Kolmogorov-Smirnov statistic.
1 languagescore - Median-of-ratios normalization
Take as the size factor of a sample the median over genes of its count divided by the geometric mean count of that gene across samples.
1 languagescore - Moderated t-statistic
A t-test whose gene-wise variance is shrunk toward a common prior by empirical Bayes, which gains power with few samples.
1 languagescore - Quantile normalization
Make the distributions of all samples identical by replacing each value with the mean of the values of the same rank across samples.
1 languagescore - Shared nearest neighbor graph clustering
Build a k-nearest-neighbor graph of cells in PCA space, weight edges by shared neighbors, and cut it into clusters by modularity.
1 languagescore - Trimmed mean of M-values
Scale samples by a weighted trimmed mean of log fold changes against a reference, assuming most genes are not differentially expressed.
1 languagescore - UMI deduplication
Count molecules, not reads, by grouping reads by cell and locus and merging UMIs one substitution apart when the count of one is at least about twice the other.
1 languagescore - Diffusion pseudotime
Order cells by a distance between their random-walk transition vectors in a diffusion map, measured from a chosen root cell.
1 languagesadvanced - Doublet detection
Flag barcodes that hold two cells by simulating artificial doublets from pairs of cells and scoring each barcode by its doublet neighbors.
1 languagesadvanced - Flow-based transcript assembly
Assemble transcripts from a splice graph: take the heaviest path of compatible reads, give it the max flow of its reads as abundance, remove that flow, and repeat.
1 languagesadvanced - Maximal mappable prefix alignment
Align an RNA-seq read by finding, with a suffix array, its longest prefix that occurs in the genome, repeating on the rest of the read, and stitching the seeds across introns.
1 languagesadvanced - Minimum path cover transcript assembly
Assemble the fewest transcripts that explain all fragments: order the compatible fragments, find a maximum bipartite matching, and merge each chain into one transcript, by Dilworth's theorem.
1 languagesadvanced - Minimum spanning tree pseudotime
Build a minimum spanning tree over cells or cluster centers in reduced space and order cells by their position along its longest path.
1 languagesadvanced - Mutual nearest neighbors batch correction
Pair cells across batches that are mutual nearest neighbors, average their difference vectors, and shift one batch onto the other.
1 languagesadvanced - Pooled size factor deconvolution
Sum counts over pools of cells, compute size factors for the pools, and solve a linear system for the size factor of each cell.
1 languagesadvanced - Pseudoalignment
Find the set of transcripts compatible with a read by intersecting the colors of its k-mers in a transcriptome de Bruijn graph, skipping along contigs, with no base-level alignment.
1 languagesadvanced - Selective alignment
Map reads to transcripts by chaining exact matches, aligning the read around the best chains only, and keeping scores above a threshold, with decoys to catch reads from elsewhere.
1 languagesadvanced - Weighted gene coexpression network analysis
Build a soft-thresholded correlation network of genes, then find modules by hierarchical clustering of topological overlap.
1 languagesadvanced - RNA velocity
Estimate the time derivative of expression of each gene from unspliced and spliced counts with a model of splicing and degradation.
1 languagesresearch
Data structures
- Splice graph
A DAG of the exon segments of a gene locus, with an edge for each junction seen in the reads. Each transcript is a path, but not every path is a transcript.
1 languagescore
Techniques
- Highly variable gene selection
Keep the genes whose variance exceeds the trend expected from their mean, as features for dimension reduction and clustering of cells.
core - Dispersion shrinkage
Shrink each gene's dispersion estimate toward a trend over mean expression, to stabilize tests when there are few replicates.
advanced
Concepts
- RNA sequencing
Measuring the transcripts of a sample by converting RNA to cDNA, sequencing fragments, and counting the reads that come from each gene or isoform.
intro - Single-cell RNA sequencing
Measuring the transcripts of each cell separately with cell barcodes and unique molecular identifiers, giving a sparse cell by gene count matrix.
intro
Definitions
- RPKM and FPKM
Counts of reads or fragments per kilobase of transcript per million mapped reads, an early unit of expression that corrects for length.
intro - Transcripts per million
Length-normalized counts scaled to sum to one million in each sample, the relative molar abundance of each transcript.
intro
Models
- Negative binomial model for read counts
Model the count of a gene as negative binomial with a mean from a log-linear model of the design and a gene-wise dispersion.
core