Problemcore
Copy number segmentation
Also called CNV segmentation.
Split a noisy sequence of log ratios along a chromosome into segments of constant copy number, each with its own mean.
Copy number segmentation takes a sequence of measurements of DNA copy number along a chromosome, such as log ratios of read depth or of array intensities, and splits it into stretches where the true copy number is constant. Each stretch, a segment, gets its own mean, and the places between segments are the change points, the approximate breakpoints of gains and losses. The data are noisy and the changes are few, so the problem is to find a few change points that explain the data well without fitting the noise. It is the change point problem for a change in the mean, applied to genomes. With the least squares cost, the best fit with segments is found exactly by dynamic programming in time; heuristics such as CBS and HMMs are faster or give more.
In plain words
You walk along a chromosome and, at each step, measure how many copies of the DNA are there. The measure is noisy: it goes up and down a little even where nothing changes.
The true copy number is a staircase. It stays flat for long stretches and jumps at a few places. The task is to draw that staircase through the noisy points. Drawing a step at every point fits perfectly but means nothing, and drawing one flat line misses the real jumps. A good answer has few steps and stays close to the points.
Definition
Input. Values in the order of their positions on one chromosome, usually of the ratio of the observed and the expected depth of each window, after the corrections of read-depth analysis.
Model. , where is piecewise constant and is noise with mean 0. A segmentation with segments is a list of change points , and segment holds the points .
The least squares form. For a fixed , find the change points that minimize
where is the mean of segment . This is the maximum likelihood fit for normal noise with one variance.
The penalized form. With unknown, minimize over all , with a penalty for each segment. The penalty sets the balance between fit and number of segments, and choosing it is part of the problem.
Variants
- Integer states. Ask not only for segments but for an integer copy number of each, as the HMM approach does.
- Several samples. Find change points shared by many samples, or by the tumor and its normal sample.
- Allele fractions. Segment the depth and the fraction of reads with each allele at heterozygous sites together, which shows a copy-neutral loss of heterozygosity.
- Other noise models. A Poisson or negative binomial cost on the raw counts in place of least squares on log ratios.
- Tumors. In a tumor, the levels depend on the purity and the ploidy of the sample, and the segment means do not lie at the levels of a diploid genome.
Examples
Twelve values, from the CBS page:
The exact least squares optimum for each , with change points given as the index of the first point of each new segment, counted from 0:
| change points | ||
|---|---|---|
| 1 | 3.110 | none |
| 2 | 2.060 | 5 |
| 3 | 0.170 | 5, 9 |
| 4 | 0.140 | 5, 8, 9 |
| 5 | 0.117 | 1, 2, 5, 9 |
The drop from to is large and the later drops are small, so three segments, with means 0.0, 1.05 and 0.0, explain the data. Among , the penalized cost chooses for every from about 0.03 to 1.47. Note that the best fit with two segments is poor: a single change point cannot describe a gain in the middle of the chromosome, which is why binary segmentation with one split per test does badly here and CBS tests arcs.
Known algorithms
| method | page | result | time |
|---|---|---|---|
| dynamic programming over the last change point | segmented least squares | exact optimum for each up to a given one | |
| PELT | PELT | exact optimum of the penalized form | worst case, expected when the number of change points grows in proportion to |
| binary segmentation | binary segmentation | heuristic, one change point per split | typical |
| circular binary segmentation | CBS | heuristic, splits tested by permutations | per test with permutations |
| hidden Markov model | HMM copy number calling | exact most probable path of states under the model | for states |
The dynamic program uses prefix sums of and , which give the cost of any segment in , and the recurrence over the end of the previous segment. Picard et al. (2005) used it for array CGH, with a rule to choose .
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Circular binary segmentation | O(N n^3) worst | O(n) extra | randomizednot exactofflinerecursive | 1 language |
| HMM copy number calling | Θ(K^2 n) worst · average · best | Θ(K n) extra | deterministicexactofflineiterative | 1 language |
Bounds
- Exact in polynomial time. Both the fixed- and the penalized forms have exact polynomial algorithms, so the problem is not hard in the sense of complexity; the hard part is the statistics, the choice of or and a noise model that fits.
- Detection. A change of size over a segment of points in noise of standard deviation gives a test statistic of about , so a short or small change is lost in the noise. Read depth with more reads per window lowers but makes the windows longer.
- Resolution. A change point is placed only to within a window, and the true breakpoint lies somewhere between two measurements.
- Correlated noise. Waves in the depth from GC content make the noise correlated along the genome, which breaks the independence that both the tests and the penalties assume.
Reductions
- From structural variants. The depth signal of structural variant detection reduces to this problem.
- To shortest paths. The fixed- problem is a shortest path with edges in the directed acyclic graph on with an edge of weight for each .
- To decoding an HMM. With a fixed set of levels and a penalty for each change, the penalized form becomes Viterbi decoding of an HMM with one state for each level.
Applications
- Cancer genomics. Gains and losses of chromosome arms and of focal regions, and the genes in them.
- Germline copy number variants. Deletions and duplications in the genomes of patients with developmental disorders.
- Arrays and sequencing. The same methods run on array CGH, SNP arrays, and read depth from exome and whole-genome sequencing.
- Single cells. The copy number profiles of single tumor cells, from very low depth.
References
- Adam B. Olshen, E. S. Venkatraman, Robert Lucito and Michael Wigler, Circular binary segmentation for the analysis of array-based DNA copy number data, Biostatistics 5(4), 2004, the statement of the segmentation problem for array CGH and the method of circular binary segmentation
- Jane Fridlyand, Antoine M. Snijders, Dan Pinkel, Donna G. Albertson and Ajay N. Jain, Hidden Markov models approach to the analysis of array CGH data, Journal of Multivariate Analysis 90(1), 2004, pp. 132 to 153 (segmentation of copy number by a hidden Markov model with one state for each level)
- Franck Picard, Stephane Robin, Marc Lavielle, Christian Vaisse and Jean-Jacques Daudin, A statistical approach for array CGH data analysis, BMC Bioinformatics 6, 2005, the sections on the least squares segmentation by dynamic programming and the choice of the number of segments
- Rebecca Killick, Paul Fearnhead and Idris A. Eckley, Optimal detection of changepoints with a linear computational cost, Journal of the American Statistical Association 107(500), 2012, the sections on the penalized cost and the pruning rule of PELT
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 62DJV1 Edit this page History Report an error Markdown