Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tompoes
    Junior Member
    • Jul 2014
    • 2

    #1

    count non-overlapping gene length from gff file

    Hi

    I used htseq-count (using default settings) to count all mapped (single-end) reads in a .bam file.
    I would like to convert these raw-read count data to RPKM values. Therefore I need to have the non-overlapping transcript (sum of exons) length from all genes in a gff3 file.

    You can find a simple example below:

    ##gff-version
    scaffold_1 test gene 47300 48200 . + . ID=A90;Name=A90;
    scaffold_1 test mRNA 47300 48200 . + . ID=A90.1;Parent=A90;Name=A90.1;
    scaffold_1 test exon 47300 48200 . + . ID=A90.1.1;Parent=A90.1;
    scaffold_1 test CDS 47400 48000 . + 0 ID=CDS:A90.1.1;Parent=A90.1;Name=A90.1;
    scaffold_1 test gene 48124 49903 . - . ID=A100;Name=A100;
    scaffold_1 test mRNA 48124 49903 . - . ID=A100.1;Parent=A100;Name=A100.1;
    scaffold_1 test exon 48124 49903 . - . ID=A100.1.1;Parent=A100.1;
    scaffold_1 test three_prime_UTR 48124 48464 . - . ID=three_prime_UTR:A100.1.1;Parent=A100.1;Name=A100.1;
    scaffold_1 test CDS 48465 49841 . - 0 ID=CDS:A100.1.1;Parent=A100.1;Name=A100.1;
    scaffold_1 test five_prime_UTR 49842 49903 . - . ID=five_prime_UTR:A100.1.1;Parent=A100.1;Name=A100.1;

    So non overlapping transcript length of A90 is 825 bp (instead of 901) and A100 is 1704 bp (instead of 1780). Are there any tools available that can calculate such unique transcript length or should a script be written?

    Thank you for helping!
    Last edited by tompoes; 07-18-2014, 06:02 AM.
  • Wallysb01
    Senior Member
    • Feb 2011
    • 286

    #2
    If all you’re going for is an accurate FPKM, why not just use cufflinks, which assigns FPKMs based on a most likely explanation of the reads method rather than some non-overlapping business gene length combined with htseq counts?

    I love htseq/DESeq2 for DE analysis, but for just getting FPKMs cufflinks works great.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    34 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    41 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    45 views
    0 reactions
    Last Post SEQadmin2  
    Working...