This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Rpkm Calculation For Genes

Hi everyone

I understand the RPKM fomula is as follows:

C = Number of reads mapped to a gene

N = Total mapped reads in the experiment

L = exon length in base-pairs for a gene

Equation = RPKM = (10^9 * C)/(N * L)

I have the counts ( from HTSeq) and transcript length (retrieved from Ensembl API) for each gene.

My question is, for the total mapped reads(N), should I be counting the reads only in the exons for all genes? If thats right, can I just add all the gene counts from HTSeq output to get the total mapped reads.

OR
the total mapped reads will be ALL the mapped reads in the BAM file?

rpkm rna-seq

2 answers

Well, maybe you don't need RPKM any more: "Measurement of mRNA abundance using RNA-seq data: RPKM measure is inconsistent among samples". Wagner GP, Kin K, Lynch VJ. _Theory Biosci._ 2012. PubMed

First of all, it does not matter if you are going to perform differential gene expression analysis or something like that.

Note that N is common in all genes, so either of the options will only scale your numbers.

If you are focusing only on the expression level of the genes, perhaps a good way is to set N as the number of reads mapped to the exons, to have the sum of C for all genes equal to N.

If you are interested in miRNAs, ncRNAs and so on, you may keep N as all of the mapped reads.

Log in to answer this question.