Definitionintro
RPKM and FPKM
Also called reads per kilobase per million.
Counts of reads or fragments per kilobase of transcript per million mapped reads, an early unit of expression that corrects for length.
RPKM and FPKM are units of expression for RNA-seq. RPKM is the number of reads that map to a transcript or gene, per kilobase of its length, per million mapped reads. FPKM is the same with fragments in place of reads, so that the two mates of a paired-end fragment count once. Both divide by length, because a longer transcript gives more reads at the same molar level, and by the total count, because a deeper library gives more reads for every gene. Mortazavi et al. (2008) defined RPKM, and Trapnell et al. (2010) used FPKM in Cufflinks. The transcripts per million unit has replaced both for comparisons between samples, because FPKM values of one sample do not sum to a fixed total. Neither unit is a good input for differential expression analysis, which works on raw counts with size factors.
Definition
Let transcript (or gene) have mapped reads or fragments and length in bases, and let be the total number of mapped reads or fragments in the sample. Then
FPKM has the same formula, with and counted in fragments. For single-end data the two units are equal.
Effective length. A fragment of length can start at only positions of a transcript of length . Tools such as Cufflinks, RSEM and Salmon therefore use an effective length , about for a mean fragment length , in place of . For a short transcript this changes the value a lot.
What is. When a read maps to more than one transcript, is not a plain count. It is the expected number of reads from transcript , from EM isoform quantification or a similar method of transcript abundance estimation. For genes, is often the count of reads on the union of the exons, and then the length of the gene is a choice that the unit depends on.
Relation to TPM. In the same sample, with the same lengths,
because the factor is the same for all and cancels. So TPM is FPKM rescaled to sum to in each sample, and the two units rank the transcripts of one sample in the same order.
Examples and non-examples
The check values. Three transcripts have lengths 1000, 2000 and 500 bases and 100 fragments each, so .
| transcript | FPKM | TPM | ||
|---|---|---|---|---|
| 1 | 1000 | 100 | 333333 | 285714 |
| 2 | 2000 | 100 | 166667 | 142857 |
| 3 | 500 | 100 | 666667 | 571429 |
For transcript 1, . The rates are 0.1, 0.05 and 0.2, with sum 0.35, so . The FPKM values sum to 1166667, not to .
The sum changes with composition. In a second sample the same transcripts have 100, 100 and 400 fragments, so . The FPKM values are 166667, 83333 and 1333333, with sum 1583333. The TPM values are 105263, 52632 and 842105, with sum . The sum of FPKM moved from 1166667 to 1583333 only because the mix of transcripts changed. This is the inconsistency that Wagner, Kin and Lynch (2012) pointed out: the mean FPKM is not the same in two samples, so a value of 10 does not mean the same share of the transcripts in both.
Non-example: a ratio between samples. Transcript 1 has FPKM 333333 in the first sample and 166667 in the second. This ratio of 2 does not show that transcript 1 changed. The total in the denominator depends on every other transcript, and transcript 3 took a larger share of the reads in the second sample. Methods for library size normalization such as median of ratios and TMM exist to fix this, and they assume that most genes do not change.
Non-example: input for count models. FPKM is not a count. A negative binomial model needs the raw counts, because its variance depends on the count scale. Dividing by length and depth first destroys this. Count-based tools put the depth into an offset and leave the length out, since it cancels when the same gene is compared across samples.
Related definitions
- Transcripts per million: the length-normalized rates scaled to sum to in each sample, an estimate of relative molar abundance. It differs from FPKM only by a factor that is the same for every transcript of one sample.
- Counts per million (CPM): , depth-normalized but not length-normalized, used to filter genes with low counts before a test.
- Library size normalization: the problem of finding a factor per sample that makes counts comparable across samples. RPKM uses the plain total , which is the simplest and least robust answer.
- Transcript abundance estimation: the problem of finding when reads map to many isoforms.
References
- Ali Mortazavi, Brian A. Williams, Kenneth McCue, Lorian Schaeffer and Barbara Wold, Mapping and quantifying mammalian transcriptomes by RNA-Seq, Nature Methods 5(7) (2008), pages 621 to 628, the definition of RPKM, reads per kilobase of exon model per million mapped reads
- Cole Trapnell, Brian A. Williams, Geo Pertea, Ali Mortazavi, Gordon Kwan, Marijke J. van Baren, Steven L. Salzberg, Barbara J. Wold and Lior Pachter, Transcript assembly and quantification by RNA-Seq reveals unannotated transcripts and isoform switching during cell differentiation, Nature Biotechnology 28(5) (2010), pages 511 to 515, FPKM, fragments per kilobase of transcript per million mapped fragments, as the abundance unit of Cufflinks
- Günter P. Wagner, Koryu Kin and Vincent J. Lynch, Measurement of mRNA abundance using RNA-seq data, RPKM measure is inconsistent among samples, Theory in Biosciences 131(4) (2012), pages 281 to 285, the argument that the mean RPKM changes between samples, and the proposal of TPM
- Bo Li, Victor Ruotti, Ron M. Stewart, James A. Thomson and Colin N. Dewey, RNA-Seq gene expression estimation with read mapping uncertainty, Bioinformatics 26(4) (2010), pages 493 to 500, transcript fractions and the comparison of RPKM-like units with transcripts per million
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 NX7YC9 Edit this page History Report an error Markdown