Using transcripts per million (TPM)
2
13
Entering edit mode
9.1 years ago
Tom Harrop ▴ 170

Hi BioStars,

I have two questions about using TPM (transcripts per million). I've read some papers on the calculation and some blog and forum posts so I have some understanding of what it is. The true analysis for this experiment was with raw counts and vst expression values, and I'm basically just having a look at TPM out of interest.

My questions:

1. Is it valid to calculate TPM from DESeq2's normalised counts, i.e. counts(dds, normalized = TRUE), or do I have to use the raw, raw counts? I tried both and there didn't seem to be a great deal of difference (actually my TPM results aren't that different to using normalized raw counts for the genes I've looked at, in either case) but I haven't tested it thoroughly.

2. I understand why one shouldn't compare TPM between samples, since the total expression rates, rRNA component etc. varies sample-to-sample. I'm just wondering if this would be less of a problem in the case where data from three biological replicates were available?

Thanks for reading and have a nice Friday,

Tom

RNA-Seq deseq2 tpm • 45k views
ADD COMMENT
9
Entering edit mode
9.1 years ago

For question 1) TPM is not readcount. Normalized readcount is for scaling the sample sequencing depth, and TPM is about transcripts, completely inferred by an advanced model where long genes will get more reads, and using spliced reads to infer isoform usage. In that way it's like Tophat's Cuffnorm for FPKM. The only tool I know that makes TPM is RSEM.

For question 2) comparing different kinds of samples will suffer bias if the distribution of mRNAs is very different, but biological replicates are as close as possible, so that IS the appropriate place to compare values.

ADD COMMENT
1
Entering edit mode

Hi Karl,

Thanks for the reply.

I'm sorry if my first question wasn't clear. I realise TPM is not read count—I manually calculated TPM from normalised read count (and, separately, from raw read count) using the gene lengths from my GTF file. I don't know whether it's valid to use the normalised counts instead of the raw counts in the TPM calculation.

Tom

ADD REPLY
2
Entering edit mode

Hi,

Could you please tell me which is the formula that you use to manually calculate TPM?

I'm getting a little bit confused since I'm trying to find an "unambiguous" one and I found these 3 links, that don't say exactly the same thing.

http://lynchlab.uchicago.edu/publications/Wagner,%20Kin,%20and%20Lynch%20%282012%29.pdf

https://www.biostat.wisc.edu/bmi776/lectures/rnaseq.pdf

I used RSEM to calculate expression, but I need a TPM estimate for a gene that I can't take from the RSEM output (don't ask, it's complicated :) )

in particular, using the formula from the Dewey presentation, (10^6 * Z * ( C_i/ L'_i * N) ), I'm trying to understand what exactly Z stands for. it should be a normalization parameter so it should to be the same for all the transcripts (am I right?), but when I try to extrapolate its value from the TPM values of the RSEM output (basically Z= TPM_value / (10^6 *c_i / L_i * N) I get different results for Z (the values oscillate a little bit around a constant number).

ADD REPLY
1
Entering edit mode

Hi, the formula I used in R was lifted from here (it's the same as the Wagner paper).

ADD REPLY
0
Entering edit mode

Thanks @biola. I need to normalize my Htseq-Count data based on TPM. I read your code but in my case, I have 20000 genes(rows) and 259 columns(samples). how to apply your TPM function for that matrix?

ADD REPLY
0
Entering edit mode

Sorry, if I have extracted a list of differentially expressed genes by edgeR, does this make sense to use Transcripts Per Million (TPM) normalized data for co-expression analysis????? I mean, firstly, I defined DE genes from raw read counts by edgeR but as I had Transcripts Per Million (TPM) file, I extracted DE genes defined by edgeR from Transcripts Per Million (TPM) file and used for network construction.

ADD REPLY
6
Entering edit mode
7.9 years ago
SP ▴ 300

Just for the sake of putting TPM formula in readable format:

TPM = ((tag count for transcript n* read length) / length of transcript n) * 1million / normalizing term

normalizing term = sum((number of tag for transcript n * read length)/ length of transcript n) for all transcripts

For better understanding read RPKM inconsistencies with example and

This might also be useful

ADD COMMENT

Login before adding your answer.

Traffic: 1957 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6