Algorithm Search⌘K

Read mapping and variant calling

Problems

  • Copy number segmentation

    Split a noisy sequence of log ratios along a chromosome into segments of constant copy number, each with its own mean.

    core
  • Paired-end read mapping

    Map both reads of a pair to a reference so that their strands and distance fit the library's insert size distribution. Seed and extend is used for each read, with mate rescue.

    core
  • Structural variant detection

    Find deletions, insertions, inversions, duplications and translocations of 50 bases or more from reads aligned to a reference.

    core
  • Variant calling

    Given reads aligned to a reference, find the positions where a sample differs from it and assign a genotype with a confidence.

    core
  • Haplotype assembly

    Split the heterozygous alleles of one diploid genome into its two haplotypes, using reads that cover several variant sites.

    advanced
  • Minimum error correction problem

    Flip the fewest alleles in a fragment matrix so that the rows split into two conflict-free haplotypes. NP-hard even for gapless rows, it is fixed-parameter tractable in the coverage.

    advanced
  • Somatic variant calling

    Find mutations present in tumour cells but not in the germline, from paired tumour and normal reads with low allele fractions.

    advanced

Algorithms

  • Bayesian genotype calling

    Combine genotype likelihoods with a prior from allele frequency or heterozygosity, and call the genotype of highest posterior probability.

    Θ(n) worst · average · best1 languagescore
  • Circular binary segmentation

    Split a sequence where a permutation test finds an arc of changed mean, the largest arc t-statistic on a circle, then repeat on each part (Olshen and Venkatraman).

    O(N n^3) worst1 languagescore
  • Duplicate read marking

    Flag reads or pairs that start at the same positions on the same strand as copies of one molecule, and keep the one of best quality.

    O(n log n + b) worst1 languagescore
  • Variant normalization

    Write each variant in a unique form, parsimonious and left-aligned, so that the same indel in a repeat gets the same representation.

    O(k L (s + L)) worst · average1 languagescore
  • Base quality score recalibration

    Re-estimate base qualities from the observed mismatch rate at known non-variant sites, binned by reported quality, cycle and sequence context.

    Θ(n + m) worst · average · best1 languagesadvanced
  • Discordant read-pair method

    Find read pairs whose mapped distance or orientation disagrees with the library, cluster the ones that agree with each other, and call a structural variant from each cluster with enough support.

    O(n log n + n w log n) worst1 languagesadvanced
  • HMM copy number calling

    Model the copy number of each window as the hidden state of a Markov chain along the genome, emit the read depth from it, and decode the states with Viterbi.

    Θ(K^2 n) worst · average · best1 languagesadvanced
  • Haplotype-based variant calling

    Assemble candidate haplotypes in an active region with a local de Bruijn graph, score reads against them with a pair HMM, then call genotypes.

    O(R H L n + R H^2 + R H V) worst1 languagesadvanced
  • Split-read method

    Find breakpoints at base resolution by aligning the two parts of a read to different places, as one anchored mate and one split mate.

    O(W L) worst1 languagesadvanced
  • Variant quality score recalibration

    Fit a Gaussian mixture to the annotations of calls at trusted sites, and score each call by its log likelihood ratio under good and bad models.

    O(I N K d + N log N) worst · average1 languagesadvanced
  • Fixed-parameter MEC dynamic programming

    Solve weighted MEC exactly with a dynamic program over the variant columns. The time is exponential only in the coverage and linear in the number of columns.

    O(2^c m) worst · average · best1 languagesresearch

Data structures

  • Variation graph

    A sequence graph whose paths spell a reference and known variant haplotypes, so that reads align to the variation instead of one linear genome.

    1 languagesadvanced

Techniques

  • Read-depth copy number analysis

    Count reads in windows, correct for GC content and mappability, and turn the normalized depth into copy number along the genome.

    advanced

Definitions

  • Phred quality score

    The error probability p of a base call written as Q = -10 log10 p, so Q20 means a 1 in 100 chance of error. The same scale is used for mapping and variant qualities.

    intro
  • Read pileup

    For each reference position, the bases, qualities and strands of all mapped reads that cover it. It is the column view of an alignment and the input of per-site variant callers.

    intro
  • SAM alignment format

    A tab-separated text format with one line per alignment of a read to a reference, giving the position, strand flags, CIGAR string, mapping quality, mate and sequence.

    intro
  • Variant Call Format

    A tab-separated text format for sequence variants, one line per site with position, REF and ALT alleles, a Phred-scaled QUAL, filters, annotations and per-sample genotypes.

    intro
  • Genotype likelihood

    The probability of the reads at a site given each possible genotype, computed from base qualities under an independent error model.

    core
  • Mapping quality

    The Phred-scaled probability that a read is placed at the wrong location, -10 log10 P(wrong). It is low for reads in repeats. Each aligner computes it by its own rule.

    core