15
$\begingroup$

What the difference between TPM and CPM when dealing with RNA seq data?

What metrics would you use if you have to perform some down stream analysis other than Differential expression for eg.

Clustering analysis using Hclust function and then plotting heat map to find differences in terms of expression levels, correlation and pca

Is it wrong to use TPM for such analysis, if yes then when does one use TPM versus CPM.

$\endgroup$

2 Answers 2

12
$\begingroup$

You can find the various equations in this oft-cited blog post from Harold Pimentel. CPM is basically depth-normalized counts, whereas TPM is length-normalized (and then normalized by the length-normalized values of the other genes).

If one has to choose between those two choices one typically chooses TPM for most things, since generally the length normalization is handy. Realistically, you probably want log(TPM) since otherwise noise in your most highly expressed genes dominates over small expression signals.

$\endgroup$
4
  • $\begingroup$ in a given case if one would trim adapters from paired end sequenced rna seq data, this would result in different read length, as you say above TPM is length normalized does it mean that this difference in read length is taken into consideration? $\endgroup$ Aug 14, 2017 at 21:40
  • 1
    $\begingroup$ @novicebioinforesearcher No, transcript/gene length, which correlates (somewhat) with counts and therefore will tend to drive clustering unless handled in a reasonable way. $\endgroup$
    – Devon Ryan
    Aug 15, 2017 at 7:04
  • 2
    $\begingroup$ Rob Patro also wrote a pretty good article about the topic as well: robpatro.com/blog/?p=235 $\endgroup$
    – story
    Aug 17, 2017 at 14:35
  • $\begingroup$ [link] (ncbi.nlm.nih.gov/pmc/articles/PMC8220791) $\endgroup$ Jun 21, 2022 at 4:27
3
$\begingroup$

Neither CPM nor TPM are well suited here, because neither performs robust cross-sample normalisation (see the blog post Devon linked to).

DESeq2 provides two robust log-space normalisation methods for downstream analysis, the regularised log (rlog), and the variance stabilising transformation (vst). The DESeq2 vignette explains how to use these for things like hclust.


On a more general note, CPM does not account for transcript length differences, while TPM does. If the choice is between TPM and CPM I would therefore use TPM. However, if you are only comparing the same transcripts across experiments, the transcript length is actually invariant so it doesn’t matter (but CPM is still not a good cross-experiment normalisation).

$\endgroup$
10
  • $\begingroup$ I am confused now , so what is the use of TPM, why does one produce it and when or where do you use it? , in other words which tools, analysis in RNA seq would you use TPM if everything revolves around using counts and pushing it through DESeq2 $\endgroup$ Aug 15, 2017 at 12:25
  • 2
    $\begingroup$ Tools produce TPMs because they don’t have the information (= the other samples) necessary to perform cross-sample normalisation. Lacking that, TPM is the best they can do. TPM is also useful for within-sample comparisons: It can give you an accurate estimate of how much genes are expressed in a given sample relative to each other. $\endgroup$ Aug 15, 2017 at 12:29
  • 2
    $\begingroup$ Both are estimates for expression, given the data. Your use-case sounds reasonable although I would generally prefer to determine “cell type specific transcripts” by comparing different cell types, rather than based solely on a single sample. Which would imply performing differential expression analysis. $\endgroup$ Aug 15, 2017 at 13:24
  • 2
    $\begingroup$ @novicebioinforesearcher On whatever data sets you wish to compare. It rarely (if ever!) makes sense to describe a gene as being cell type specific without saying “as opposed to these other cell types”. For example, a cell type specific gene may nevertheless be lowly expressed: as long as it’s entirely absent in other cells, it’s cell type specific. This is in fact often the case. You therefore cannot characterise many cell type specific genes without comparing different cell types. $\endgroup$ Aug 15, 2017 at 17:12
  • 1
    $\begingroup$ @rmf Yes but in a heatmap you usually scale by (gene) row anyway (either explicitly or the plotting function performs the division internally) so the normalisation per transcript length will be strictly a no-op. $\endgroup$ Oct 5, 2018 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.