Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Mark.hz
    Member
    • Mar 2009
    • 18

    An odd error message from Tophat

    Hi all,
    I am running Tophat/Cufflinks on a RNA-seq datasets(9 samples) from ABI SOLiD. When went through Tophat(v1.1.2), only one sample was terminated with an error message, the rest were doing well and results have already been there.
    So it is pretty strange only one sample encountered this error:

    [Tue Nov 23 15:14:39 2010] Beginning TopHat run (v1.1.2)
    -----------------------------------------------
    [Tue Nov 23 15:14:39 2010] Preparing output location tophat_SN94.sam.cfasta/
    [Tue Nov 23 15:14:39 2010] Checking for Bowtie index files
    [Tue Nov 23 15:14:39 2010] Checking for reference FASTA file
    [Tue Nov 23 15:14:39 2010] Checking for Bowtie
    Bowtie version: 0.12.7.0
    [Tue Nov 23 15:14:39 2010] Checking for Samtools
    Samtools version: 0.1.7.0
    [Tue Nov 23 15:15:23 2010] Checking reads
    min read length: 50bp, max read length: 50bp
    format: fasta
    [Tue Nov 23 15:30:24 2010] Reading known junctions from GFF file
    [Tue Nov 23 15:38:10 2010] Mapping reads against hg19 with Bowtie
    [Wed Nov 24 00:51:24 2010] Joining segment hits
    Traceback (most recent call last):
    File "/usr/local/bin/tophat", line 2201, in <module>
    sys.exit(main())
    File "/usr/local/bin/tophat", line 2160, in main
    user_supplied_juncs)
    File "/usr/local/bin/tophat", line 1870, in spliced_alignment
    segment_len)
    File "/usr/local/bin/tophat", line 1593, in split_reads
    split_record(read_name, read_seq, read_quals, output_files, offsets, color)
    File "/usr/local/bin/tophat", line 1526, in split_record
    read_seq_temp = convert_color_to_bp(read_seq)
    File "/usr/local/bin/tophat", line 1500, in convert_color_to_bp
    base = decode_dic[base+ch]
    KeyError: 'CN'

    Has anyone else seen an error like this? Any ideas on what is the reason?
    Thanks!
  • havard
    Junior Member
    • Apr 2010
    • 2

    #2
    This has been discussed in previous threads, for example;


    The new versions of TopHat should have been fixed, but I encountered the same problem as you. dcjones wrote in the thread linked above;

    I don't thing there is a problem with the '.'s needing to be 'N's. It expects '.'s in colorspace reads. The problem is that tophat converts the '.'s to 'N's on exactly one read (the last read), and it should not.

    I don't know that you can modify your reads to work around that.
    In my dataset the last 80-90 reads contained '.' , so I removed these. When last read in the dataset did not contain a '.' it seems to work. Maybe the sample that crashed is the only one containg a '.' in the last read?

    Håvard

    Comment

    • Mark.hz
      Member
      • Mar 2009
      • 18

      #3
      Hi, Havard. Thank you for the suggestion! I've trimmed off the last 600 reads contained ".", and it is running well now. Hope these removed reads have no effect on the result.

      Comment

      • Daehwan
        Member
        • Oct 2010
        • 27

        #4
        I'll fix this problem in the next release of TopHat.

        Comment

        • yeyeming
          Junior Member
          • Nov 2010
          • 7

          #5
          Originally posted by Daehwan View Post
          I'll fix this problem in the next release of TopHat.
          hello,Daehwan,do you mean you have fixed it in the new version tophat-1.2.0? but the same error comes when i run it.I do want to know what attribute to such problem

          Comment

          • Daehwan
            Member
            • Oct 2010
            • 27

            #6
            Originally posted by yeyeming View Post
            hello,Daehwan,do you mean you have fixed it in the new version tophat-1.2.0? but the same error comes when i run it.I do want to know what attribute to such problem
            Hi,

            We haven't released TopHat 1.2.0, yet.. So I guess I gave you some temporary version by email, which didn't include the fix.

            For the time being, you might want to change tophat (or tophat.py) a little bit, change "decode_dic" by the following.
            decode_dic = { 'A0':'A', 'A1':'C', 'A2':'G', 'A3':'T', 'A4':'N', 'A.':'N', 'AN':'N',
            'C0':'C', 'C1':'A', 'C2':'T', 'C3':'G', 'C4':'N', 'C.':'N', 'CN':'N',
            'G0':'G', 'G1':'T', 'G2':'A', 'G3':'C', 'G4':'N', 'G.':'N', 'GN':'N',
            'T0':'T', 'T1':'G', 'T2':'C', 'T3':'A', 'T4':'N', 'T.':'N', 'TN':'N',
            'N0':'N', 'N1':'N', 'N2':'N', 'N3':'N', 'N4':'N', 'N.':'N', 'NN':'N',
            '.0':'N', '.1':'N', '.2':'N', '.3':'N', '.4':'N', '..':'N', '.N':'N' }

            Comment

            • yeyeming
              Junior Member
              • Nov 2010
              • 7

              #7
              Originally posted by Daehwan View Post
              Hi,

              We haven't released TopHat 1.2.0, yet.. So I guess I gave you some temporary version by email, which didn't include the fix.

              For the time being, you might want to change tophat (or tophat.py) a little bit, change "decode_dic" by the following.
              decode_dic = { 'A0':'A', 'A1':'C', 'A2':'G', 'A3':'T', 'A4':'N', 'A.':'N', 'AN':'N',
              'C0':'C', 'C1':'A', 'C2':'T', 'C3':'G', 'C4':'N', 'C.':'N', 'CN':'N',
              'G0':'G', 'G1':'T', 'G2':'A', 'G3':'C', 'G4':'N', 'G.':'N', 'GN':'N',
              'T0':'T', 'T1':'G', 'T2':'C', 'T3':'A', 'T4':'N', 'T.':'N', 'TN':'N',
              'N0':'N', 'N1':'N', 'N2':'N', 'N3':'N', 'N4':'N', 'N.':'N', 'NN':'N',
              '.0':'N', '.1':'N', '.2':'N', '.3':'N', '.4':'N', '..':'N', '.N':'N' }
              Hello,Daehwan,many thanks ,your suggestion fixed the problem.

              Comment

              Latest Articles

              Collapse

              • 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.
                ...
                Yesterday, 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
              • GATTACAT
                Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by GATTACAT
                Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                07-01-2026, 11:43 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 10:04 AM
              0 responses
              10 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              7 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-07-2026, 11:05 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Working...