Algorithm Search⌘K

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.

    Θ(s u + s log s) worst1 languagesintro
  • ComBat

    Remove batch effects by fitting location and scale shifts per gene and batch, shrunk across genes by empirical Bayes.

    O(G (N p^2 + p^3) + G N T) worst1 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.

    O(T·(R+m)) worst1 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.

    Θ(b (n m + s n log n)) worst · best1 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.

    Θ(n m log n) worst · best1 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.

    Θ(n m + n log n) worst · best1 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.

    Θ(m n log n) worst · best1 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.

    O(n^2 d + n k^2 + P E log k) worst1 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.

    Θ(n m log n) worst · best1 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.

    O(n + m^2 l) worst1 languagescore
  • Diffusion pseudotime

    Order cells by a distance between their random-walk transition vectors in a diffusion map, measured from a chosen root cell.

    O(n^2 d + n^3) worst1 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.

    O(n^2 (p + log n) + n d^2 + d^3) worst1 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.

    O(R·((n+E)·F·λ + n·(n+F)^2)) worst1 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.

    O(L^2·log n + L·D^2) worst1 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.

    O(F^3 + F^2·λ + (F+n)·(n+E)) worst1 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.

    O(n^2 d) worst1 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.

    O(q^2 n^2 (d + log n) + q k n^2 d) worst1 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.

    O(q n m (w + log m) + q n w^2 + n^3) worst1 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.

    O(L·(k+m)) worst1 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.

    O(L·k + h^2 + c·L·(L+b)) worst1 languagesadvanced
  • Weighted gene coexpression network analysis

    Build a soft-thresholded correlation network of genes, then find modules by hierarchical clustering of topological overlap.

    Θ(n^2 m + n^3) worst · best1 languagesadvanced
  • RNA velocity

    Estimate the time derivative of expression of each gene from unspliced and spliced counts with a model of splicing and degradation.

    O(g n log n) worst1 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