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

              • 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
              • SEQadmin2
                Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by SEQadmin2


                I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                Here are nine questions we think about, in roughly the order they matter, before...
                06-18-2026, 07:11 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              9 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-30-2026, 05:37 AM
              0 responses
              13 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-26-2026, 11:10 AM
              0 responses
              20 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-17-2026, 06:09 AM
              0 responses
              54 views
              0 reactions
              Last Post SEQadmin2  
              Working...