Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ml439
    Junior Member
    • May 2015
    • 9

    Problems with cufflinks GTF annotated files and DEXSeq

    I'm trying to use a Cufflinks GTF that includes novel isoforms as an input for DEXSeq.
    My RNA-Sseq libraries were stranded and my cufflinks command included fr-secondstrand, but now when i run the phyton script i get the following error:

    Traceback (most recent call last):
    File "dexseq_prepare_annotation.py", line 55, in <module>
    *** exons[f.iv] += ( f.attr['gene_id'], f.attr['transcript_id'] )
    *File "_HTSeq.pyx", line 514, in HTSeq._HTSeq.GenomicArray.__getitem__ (src/_HTSeq.c:10576)
    KeyError: 'Non-stranded index used for stranded GenomicArray.'


    Here’s the line 514 of my gtf file:

    1 Cufflinks exon 6113070 6113253 988 - . gene_id "CUFF.74"; transcript_id "ENSRNOT00000061956"; exon_number "2"; FPKM "0.0020481810"; frac "0.496199"; conf_lo "0.000000"; conf_hi "0.011202"; cov "0.023020";

    I’m lost and I don’t know what to do. Anybody knows what the problem is and how can it be solved? I would appreciate any help i could get from the DEXSeq experts. Thank you
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Do a quick:
    Code:
    cut -f 7 something.gtf | uniq | sort | uniq
    If you see a ".", then that's the source of the problem.

    Comment

    • ml439
      Junior Member
      • May 2015
      • 9

      #3
      Thanks, I've used your command and this is what i've got:

      +
      -
      .

      Does that mean that i have unstranded data in my GTF? how could that be if my libraries are stranded and i used the fr-secondstrand in my cufflinks? any idea how to solve the issue?
      Would it be possible to remove those lines from the GTF? or what would be the optimal way of dealing with this issue?

      thanks!

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        I haven't a clue why that's happening, but something like:
        Code:
        awk 'BEGIN{OFS="\t"}{if($7!=".") print $0}' original.gtf > filtered.gtf
        should filter things.

        Comment

        • ml439
          Junior Member
          • May 2015
          • 9

          #5
          Thank you very much for your help.
          I've managed now to remove those lines (6) and run dexseq_prepare_annotation.py without an error. You've saved my day

          Comment

          Latest Articles

          Collapse

          • seqadmin
            New Genomics Tools and Methods Shared at AGBT 2025
            by seqadmin


            This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

            The Headliner
            The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
            03-03-2025, 01:39 PM
          • seqadmin
            Investigating the Gut Microbiome Through Diet and Spatial Biology
            by seqadmin




            The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
            02-24-2025, 06:31 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 05:03 AM
          0 responses
          16 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-19-2025, 07:27 AM
          0 responses
          16 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-18-2025, 12:50 PM
          0 responses
          17 views
          0 reactions
          Last Post seqadmin  
          Started by seqadmin, 03-03-2025, 01:15 PM
          0 responses
          185 views
          0 reactions
          Last Post seqadmin  
          Working...