Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kwatts59
    Member
    • Apr 2011
    • 46

    RPKM calculation help

    I am trying to write a PERL script to calculate the RPKM for genes of interest and I need some verification that I am doing this calculation correctly. There are 31.8 million mapped reads on the genome.

    Here is the GFF3 file of a gene for example. There are 4,011 reads that map to this gene (between positions 4542759 and 4544980).

    Chr2 MSU_osa1r6 gene 4542759 4544980 . + . ID=13102.t00754;Name=unknown gene
    Chr2 MSU_osa1r6 mRNA 4542759 4544980 . + . ID=13102.m00974;Parent=13102.t00754
    Chr2 MSU_osa1r6 five_prime_UTR 4542759 4543030 . + . Parent=13102.m00974
    Chr2 MSU_osa1r6 CDS 4543031 4543177 . + 0 Parent=13102.m00974
    Chr2 MSU_osa1r6 CDS 4543287 4543709 . + 0 Parent=13102.m00974
    Chr2 MSU_osa1r6 CDS 4543836 4543952 . + 0 Parent=13102.m00974
    Chr2 MSU_osa1r6 CDS 4544064 4544423 . + 0 Parent=13102.m00974
    Chr2 MSU_osa1r6 three_prime_UTR 4544424 4544980 . + . Parent=13102.m00974

    There are 4 exons for this particular gene which contain a total of 1,043 base pairs.

    So the RPKM for this particular gene is ((4,011 reads/1.043kb of exon)/31.8mill mapped reads) = 120.9RPKM

    Is my calculation correct?

    Also, if there are reads that map to the intron regions or partial intron regions, should those reads be excluded from the calculation?
    This gene also has 3 other alternative spliced forms, which splicing is the correct one?

    Thanks in advance
  • kwatts59
    Member
    • Apr 2011
    • 46

    #2
    Any comments anybody?

    Comment

    • kwatts59
      Member
      • Apr 2011
      • 46

      #3
      I really need to know if this calculation is correct or not.
      Is there anybody out there that knows how to calculate RPKM?

      Comment

      • mauro.pala
        Junior Member
        • Jun 2011
        • 4

        #4
        hi kwatts59,

        Your calculation seems to be correct.

        About the second question. You need to define the "trascriptional units". if your aim is to establish a "gene level" expression your trascriptional unit should be the full gene exons set. If you are interested in "isoforms level expression" you should calculate rpkm for each isoform.

        here you can find some examples:




        http://sandberg.cmb.ki.se/media/data/rnaseq/instructions-rpkmforgenes.html

        [
        URL="http://cufflinks.cbcb.umd.edu/"]
        http://cufflinks.cbcb.umd.edu/[/URL]



        cheers


        M.

        Comment

        • Simon Anders
          Senior Member
          • Feb 2010
          • 995

          #5
          Yes, your calculation is correct, if you want to compute RPKM values according to the original definition suggested by Mortazavi et al. However, once you have alternative splicing, dividing by the sum of all exons, no matter whether they are used or not (or maybe even mutually exclusive), may cause severe problems and this is why Trapnell et al. (Nature Biotechnology 28: 511 (2010)) argued that the definition is not such a good one.

          On the other hand, it does not matter that much how you normalize for transcript length, because in most use cases, you won't be interested in absolute expression anyway, because you end up only comparing the expression of the same gene across samples rather than comparing expression between different genes.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM
          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            07-08-2026, 05:17 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-23-2026, 11:41 AM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-20-2026, 11:10 AM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-13-2026, 10:26 AM
          0 responses
          37 views
          0 reactions
          Last Post SEQadmin2  
          Working...