Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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
            Latest Developments in Precision Medicine
            by seqadmin



            Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

            Somatic Genomics
            “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
            05-24-2024, 01:16 PM
          • seqadmin
            Recent Advances in Sequencing Analysis Tools
            by seqadmin


            The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
            05-06-2024, 07:48 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 06-03-2024, 06:55 AM
          0 responses
          12 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-30-2024, 03:16 PM
          0 responses
          26 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-29-2024, 01:32 PM
          0 responses
          29 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-24-2024, 07:15 AM
          0 responses
          215 views
          0 likes
          Last Post seqadmin  
          Working...
          X