Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • capricy
    Senior Member
    • Apr 2012
    • 125

    #1

    tophat issue-string index out of range

    I used tophat to map my RNA seq reads against a reference geneset and it didn't finish.

    The error message came after "Generating SAM header":
    ---------------------------------------------------------
    [2013-03-07 10:31:22] Generating SAM header for /gscmnt/gc6108/research/seqana/s
    pecies_independant/xgao/a_suum/database/asgenes2
    Traceback (most recent call last):
    File "/usr/lib/tophat2.0.0/bin/tophat", line 3778, in <module>
    sys.exit(main())
    File "/usr/lib/tophat2.0.0/bin/tophat", line 3645, in main
    params.read_params = check_reads_format(params, reads_list)
    File "/usr/lib/tophat2.0.0/bin/tophat", line 1679, in check_reads_format
    freader=FastxReader(zf.file, params.read_params.color, zf.fname)
    File "/usr/lib/tophat2.0.0/bin/tophat", line 1427, in __init__
    while hlines>0 and self.lastline[0] not in "@>" :

    IndexError: string index out of range
    -------------------------------------------
    I am using tophat v2.0.0

    I ran 20 sets of data and only one came back with this error message.

    Could anyone help me figure out why and how to get over it?

    Thanks a lot!
  • ttkuaile
    Junior Member
    • Sep 2008
    • 4

    #2
    Capricy, I am getting this problem too. Did you ever solve it? if so, any advice on how you did it would be great.

    Comment

    • Artur Jaroszewicz
      Member
      • Sep 2011
      • 45

      #3
      Did anyone figure this issue out? The only thing I'm doing differently is I'm using ligated index adaptors and trimming off the first 4 bases from the left reads..

      Any input would be greatly appreciated! (Using Tophat 2.0.4)

      Comment

      • ttkuaile
        Junior Member
        • Sep 2008
        • 4

        #4
        Artur,
        In my case, I got the issue for the trimmed reads with Tophat when I used scythe adapter trimmer (http://biowulf.nih.gov/apps/scythe.html). However, there is no any issue for Tophat when I used another trimmer: http://www.usadellab.org/cms/index.php?page=trimmomatic. So I think the problem is that Tophat can not take your trimmed reads.

        Comment

        • raz
          Junior Member
          • May 2013
          • 1

          #5
          ttkuaile,
          Unfortunately, using the trimmomatic trimmer didn't resolve this issue for me. I'm using tophat version 2.0.8b with bowtie version 2.1.0 on a mac. I'm using the pre-made Arabidopsis indexes from the Bowtie2 site. However I'm ending up with same error (arab is the "index_base" label):

          [2013-05-28 22:08:35] Beginning TopHat run (v2.0.8b)
          -----------------------------------------------
          [2013-05-28 22:08:35] Checking for Bowtie
          Bowtie version: 2.1.0.0
          [2013-05-28 22:08:35] Checking for Samtools
          Samtools version: 0.1.18.0
          [2013-05-28 22:08:35] Checking for Bowtie index files
          [2013-05-28 22:08:35] Checking for reference FASTA file
          [2013-05-28 22:08:35] Generating SAM header for arab
          Traceback (most recent call last):
          File "/usr/local/bin/tophat-2.0.8b.OSX_x86_64/tophat", line 4030, in <module>
          sys.exit(main())
          File "/usr/local/bin/tophat-2.0.8b.OSX_x86_64/tophat", line 3885, in main
          params.read_params = check_reads_format(params, reads_list)
          File "/usr/local/bin/tophat-2.0.8b.OSX_x86_64/tophat", line 1825, in check_reads_format
          freader=FastxReader(zf.file, params.read_params.color, zf.fname)
          File "/usr/local/bin/tophat-2.0.8b.OSX_x86_64/tophat", line 1570, in __init__
          while hlines>0 and self.lastline[0] not in "@>" :
          IndexError: string index out of range

          I used the following options with the trimmomatic:
          phred33
          HEADCROP:5 SLIDINGWINDOW:3:30 MINLEN:36


          Thanks in advance for the help!

          Cheers.

          Comment

          • Marta123
            Junior Member
            • Nov 2015
            • 2

            #6
            I had the same error here, and in my case the unpaired output of my trimming program was the problem, because it was not gzip properly (I wrote "sample.gzz"). Fix the name and then all good.
            Check the tophat.log that TopHat creates, it normally saids the problem there.

            Cheers

            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...