Definitioncore
Genotype likelihood
Also called GL.
The probability of the reads at a site given each possible genotype, computed from base qualities under an independent error model.
A genotype likelihood is the probability of the reads that cover one site of one sample, computed once for each genotype that the sample could have there. It is a likelihood: a function of the genotype for fixed data, not a probability distribution over the genotypes. The usual model takes the bases of the pileup column as independent given the genotype and reads the error rate of each base from its Phred quality. Callers combine the likelihoods with a prior in Bayesian genotype calling, and VCF stores them in the fields GL and PL.
Definition
Fix a site with reference allele and alternate allele , and a sample of ploidy , which is 2 for a diploid. The genotype is the number of copies of . The data are the read bases at the site with their qualities , and .
The error model. A read that comes from a chromosome with allele shows the base with probability
so an error turns the base into each of the three others with the same probability.
The genotype likelihood. Each read comes from one of the chromosomes, chosen uniformly, and the reads are independent given . Then
For a diploid, the three values are , , and . For several alternate alleles, the genotype is a multiset of alleles and the factor of read is the mean of over the alleles of the multiset.
Log and Phred forms. VCF stores , and rounded to an integer and shifted so that the smallest value is 0. The shift does not lose anything that a caller needs, because the posterior of Bayesian genotype calling depends only on the ratios .
Other terms in the model. Many callers add more to : the chance that the read is mapped to the wrong place, from its mapping quality , or a cap of each base quality at the read's mapping quality. Haplotype-based callers replace the factor of each base with the probability of the whole read given a candidate haplotype, computed with a pair HMM.
Examples and non-examples
A heterozygous site. Six reads cover a site with and : three show A with qualities 30, 30, 20, and three show G with qualities 30, 20, 10. For a diploid:
| genotype | PL | |||
|---|---|---|---|---|
| 0 | A/A | 56 | ||
| 1 | A/G | 0 | ||
| 2 | G/G | 76 |
For each factor is close to , so is close to . For , the three G bases each contribute , which is small, and the Q10 base contributes the most of them, . The likelihoods favor the heterozygote by a factor of about over A/A.
Two reads. Two G reads of quality 30 at a site with give , and . The likelihood of G/G is only 4 times that of A/G, since a heterozygote shows G on both reads with probability about . With low depth, the likelihoods alone cannot tell a heterozygote from a homozygote, which is why the prior matters there.
Non-example: the likelihoods do not sum to 1. In the first example, the three values sum to 0.0144. They are probabilities of the data, one for each genotype, not probabilities of the genotypes. Turning them into genotype probabilities needs a prior, as in Bayes' theorem.
Non-example: dependent reads. If three of the six reads are PCR copies of one fragment, an error in that fragment appears three times, and the product over the reads counts it three times. The model assumes independent reads, which is one reason for duplicate marking before calling.
Non-example: a wrong quality. If the Q30 bases are really wrong 1 time in 200, the model overstates how unlikely an error is, and a few errors at one site look like a heterozygote. Base quality score recalibration corrects the qualities before the likelihoods are computed.
Related definitions
- Read pileup. The likelihood is a function of one pileup column; see read pileup.
- Prior and posterior. With a prior , such as the Hardy-Weinberg prior from an allele frequency, the posterior is ; see Bayesian genotype calling.
- Counts form. If all bases have the same error rate and of the bases show , then for a heterozygote each base shows with probability about , and the likelihood is a binomial term in up to a factor that does not depend on .
- Use without calling. Imputation and population methods can use the likelihoods directly, without first calling a genotype, which keeps the uncertainty of low-coverage data; see genotype imputation and Li (2011).
- VCF fields. GL and PL, and the order of the genotypes for several alternate alleles, are on Variant Call Format.
References
- Heng Li, A statistical framework for SNP calling, mutation discovery, association mapping and population genetical parameter estimation from sequencing data, Bioinformatics 27(21), 2011, pp. 2987 to 2993, Section 2 (the likelihood of the reads at a site for a sample of ploidy m, with g copies of the alternate allele)
- Rasmus Nielsen, Joshua S. Paul, Anders Albrechtsen and Yun S. Song, Genotype and SNP calling from next-generation sequencing data, Nature Reviews Genetics 12(6), 2011, pp. 443 to 451, the section on genotype calling (genotype likelihoods from base qualities, and their use in single-sample and multi-sample calling)
- Heng Li, Jue Ruan and Richard Durbin, Mapping short DNA sequencing reads and calling variants using mapping quality scores, Genome Research 18(11), 2008, pp. 1851 to 1858, Methods (the consensus genotype calling of Maq from the bases and qualities at a site)
- The Variant Call Format Specification, VCFv4.3, hts-specs, Section 1.6.2 (the genotype fields GL and PL and the order of the genotypes)
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 | W4 complete |
|
Tag RS20ZP Edit this page History Report an error Markdown