Dear colleagues
I have used three different ways to calculate RPKM from my data, one from a colleague, from a post in internet and my own way and we three have different outputs, obviously just one is the right one; but can you do your own calculation and shared with me? What would be the TPM you will estimate for these three samples?
Thanks in advance
Roberto
gene t1 t2 t3 length
A 4 2 7 2565
total lib 26396044 22124753 27522357
counts
Why do you need these values? For years we have come to the conclusion that RPKM is not the way to go (see Biostars discussions and advices from the past years), they are not recommended to use in RNAseq analysis. So my advice is not to bother about your differences, but ask yourself what you want from your data, and find the right way to analyze it.
It's not entirely clear what exactly you're after -- do you want to know THE one and only correct way of calculating RPKM? Or do you just want to add another entry to your collection of, presumably, different formulae? It'd be more helpful if you (i) included the formulae you've already tried, (ii) included the sources for those and (iii) stated your actual aim (as alluded to by Benn).
The TPM that I know cannot be calculated based off of a single gene value alone since it takes into account the abundances and lengths of the all other transcripts, too.
Actually, no, it is not obvious one of them is the right alternative: all three could be wrong. As you didn't show the three alternative methods, we can't advise which one is best, or even correct.
Here is a nice paper to read https://www.ncbi.nlm.nih.gov/pubmed/22872506