Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • HTS
    Member
    • Nov 2009
    • 24

    More errors with TopHat 1.1.0

    Thanks Daehwan for quickly fixing the previous error of TopHat 1.1.0 on SE reads! As I am trying the updated version, I got stuck again at prep_reads with standard 75nt Illumina SE reads. The same command worked well under TopHat 1.0.14 so I think this must be a bug with the new version. The command line and errors are:

    tophat -o tophat_cufflinks_test -a 6 -i 50 --solexa1.3-quals -F 0.05 -p 4 -g 20 --coverage-search --microexon-search -j ../../hg19.junc hg19 adipose_75nt.fq

    [Mon Oct 4 22:33:39 2010] Beginning TopHat run (v1.1.0)
    -----------------------------------------------
    [Mon Oct 4 22:33:39 2010] Preparing output location tophat_cufflinks_test/
    [Mon Oct 4 22:33:39 2010] Checking for Bowtie index files
    [Mon Oct 4 22:33:39 2010] Checking for reference FASTA file
    [Mon Oct 4 22:33:39 2010] Checking for Bowtie
    Bowtie version: 0.12.7.0
    [Mon Oct 4 22:33:39 2010] Checking for Samtools
    Samtools version: 0.1.8.0
    [Mon Oct 4 22:33:40 2010] Checking reads
    min read length: 75bp, max read length: 75bp
    format: fastq
    quality scale: phred64 (reads generated with GA pipeline version >= 1.3)
    [FAILED]
    Error: could not execute prep_reads

    Anybody has the same problem or can offer a fix? Thanks a lot!

    -- Leo
  • kopi-o
    Senior Member
    • Feb 2008
    • 319

    #2
    I have the same problem as well, "could not execute prep_reads".

    Comment

    • Telor
      Junior Member
      • Jul 2010
      • 6

      #3
      I had this problem also, it was because the executable "prep_reads" provided with the pre-built linux distribution was crashing with a floating point exception. Once I built the code from the source distribution it worked fine.
      (this problem with floating point exceptions is something I have always seen with the cufflinks linux distribution on my system, so I have had to resort to building the executables from source for all these - at least building tophat is much more straight forward! )

      I hope this helps.

      Comment

      • Cole Trapnell
        Senior Member
        • Nov 2008
        • 213

        #4
        Hm - I wonder if something in the build scripts for TopHat and Cufflinks is causing the compiler to generate code that incompatible with your architecture. Can you tell me a little about the machines you guys are seeing this crash on? I'll try to fix the scripts so that the binaries are portable.

        Comment

        • kopi-o
          Senior Member
          • Feb 2008
          • 319

          #5
          I'm running it on a Mac OS X 10.6.4 (Intel Core i7 64-bit)
          Last edited by kopi-o; 10-05-2010, 06:40 AM. Reason: update

          Comment

          • HTS
            Member
            • Nov 2009
            • 24

            #6
            I am running Ubuntu 10.04 LTS 64-bit

            Comment

            • Telor
              Junior Member
              • Jul 2010
              • 6

              #7
              Hi Cole,

              thanks for the reply,

              This is an issue I've had with cufflinks since version 0.8.2. I was running 0.8.1 until now because I wasn;t able to get the executalbes to work. I only now have had some success with compiling the software on my system (with your new helpful instructions about the Bam libraries), but unfortunately I'm still getting crashes when it gets to the "Assembling transcripts and estimating abundances" stage (maybe its to do with problems with libaries etc..).

              That said, usually the Tophat and bowtie executables work fine (except for the latest release with "prep_reads")

              My system is:
              SUSE Linux Enterprise Server 10 SP2 (x86_64) GNU/Linux

              It would be great if it was possible to get a working executable.

              Thanks,

              Chris.

              Comment

              • krobison
                Senior Member
                • Nov 2007
                • 734

                #8
                I saw this problem with my SE colorspace reads from SRA (after hacking the tophat code to get past the length(quality)=length(read) issue with the SRA file).

                I'm on 64-bit Enterprise Oracle Linus, which is in the RedHat family of Linuxes,

                Comment

                • hyjkim
                  Member
                  • Apr 2010
                  • 18

                  #9
                  I am getting the same read_prep error. Here is the command I am issuing:

                  Code:
                   tophat -C -Q --integer-quals -o tophat-out -p 4 mm9_c test.csfasta test.qual
                  tophat-out/logs/prep_reads.log
                  Code:
                  prep_reads v1.1.0 (1606)
                  ---------------------------
                  Saw a space but expected an ASCII-encoded quality value.
                  Are quality values formatted as integers?  If so, try --integer-quals.
                  terminate called after throwing an instance of 'int'
                  If I try to run tophat without a quality file using:

                  Code:
                    tophat -C -o tophat-out -p 4 mm9_c test.csfasta
                  I receive the following error:

                  Code:
                  Traceback (most recent call last):
                    File "/share/apps/tophat-1.1.0.Linux_x86_64/tophat", line 2174, in ?
                      sys.exit(main())
                    File "/share/apps/tophat-1.1.0.Linux_x86_64/tophat", line 2067, in main
                      left_quals_list = args[2]
                  IndexError: list index out of range
                  Last edited by hyjkim; 10-05-2010, 06:06 PM. Reason: added error message for tophat run without quality values.

                  Comment

                  • telos
                    Member
                    • Jan 2010
                    • 11

                    #10
                    I'm stuck with the same prep_reads problem as hyjkim when using csfasta+qual files.

                    One other issue: the new tophat doesn't cope with csfasta/qual files that have #-comments at the top.

                    Comment

                    • dcjones
                      Junior Member
                      • Jul 2010
                      • 4

                      #11
                      The prep_reads problem seems to be caused by -1 qualities.

                      Here is a simple fix (replacing -1 qualities with 0):

                      Code:
                      --- src/reads.cpp
                      +++ src/reads.cpp
                      @@ -119,7 +119,7 @@ bool next_fastq_record(FLineReader& fr,
                              string temp_qual;
                              for (size_t i = 0; i < integer_qual_values.size(); ++i)
                                {
                      -           temp_qual.push_back((char)(atoi(integer_qual_values[i].c_str()) + 33));
                      +           temp_qual.push_back((char)(max(0,atoi(integer_qual_values[i].c_str())) + 33));
                                }
                       
                              qual.append(temp_qual);

                      Comment

                      • hyjkim
                        Member
                        • Apr 2010
                        • 18

                        #12
                        Originally posted by dcjones View Post
                        The prep_reads problem seems to be caused by -1 qualities.

                        Here is a simple fix (replacing -1 qualities with 0):

                        Code:
                        --- src/reads.cpp
                        +++ src/reads.cpp
                        @@ -119,7 +119,7 @@ bool next_fastq_record(FLineReader& fr,
                                string temp_qual;
                                for (size_t i = 0; i < integer_qual_values.size(); ++i)
                                  {
                        -           temp_qual.push_back((char)(atoi(integer_qual_values[i].c_str()) + 33));
                        +           temp_qual.push_back((char)(max(0,atoi(integer_qual_values[i].c_str())) + 33));
                                  }
                         
                                qual.append(temp_qual);
                        Thanks dcjones. I replaced all the -1 qualities in my .qual file with 0's. Tophat is no longer crashing as it was before. I'll report once the mapping run is complete.

                        Comment

                        • twaddlac
                          Member
                          • Feb 2011
                          • 49

                          #13
                          Hello,

                          I am receiving a similar error to hyjkim when trying to run tophat using the command
                          Code:
                          tophat --solexa-quals ref_seq data.fastq
                          Here's the error from stdout:
                          Code:
                          [Thu Mar 10 13:35:19 2011] Beginning TopHat run (v1.2.0)
                          -----------------------------------------------
                          [Thu Mar 10 13:35:19 2011] Preparing output location ./tophat_out/
                          [Thu Mar 10 13:35:19 2011] Checking for Bowtie index files
                          [Thu Mar 10 13:35:19 2011] Checking for reference FASTA file
                          [Thu Mar 10 13:35:19 2011] Checking for Bowtie
                          	Bowtie version:			 0.12.7.0
                          [Thu Mar 10 13:35:19 2011] Checking for Samtools
                          	Samtools Version: 0.1.7
                          [Thu Mar 10 13:35:19 2011] Checking reads
                          	min read length: 54bp, max read length: 54bp
                          	format:		 fastq
                          	quality scale:	 phred33 (default)
                          [Thu Mar 10 13:38:43 2011] Mapping reads against bm-ref-seq-cut with Bowtie
                          [Thu Mar 10 13:38:43 2011] Joining segment hits
                          [Thu Mar 10 13:38:44 2011] Searching for junctions via segment mapping
                          Traceback (most recent call last):
                            File "/usr/local/bin/tophat", line 2346, in <module>
                              sys.exit(main())
                            File "/usr/local/bin/tophat", line 2304, in main
                              user_supplied_deletions)
                            File "/usr/local/bin/tophat", line 2030, in spliced_alignment
                              ref_fasta)
                            File "/usr/local/bin/tophat", line 1736, in junctions_from_segments
                              slash = left_seg_maps[0].rfind('/')
                          IndexError: list index out of range
                          and here's the log file:
                          Code:
                          -p/--threads is disabled because bowtie was not compiled with pthreads support
                          Command: bowtie -q --un ./tophat_out/tmp/left_kept_reads_missing.fq --max /dev/null -v 2 -p 1 -k 40 -m 40 bm-ref-seq-cut ./tophat_out/tmp/left_kept_reads.fq
                          I know that I have the pthreads library but I'm thinking it's more of an input error? Any ideas?

                          Thank you!

                          Comment

                          • mart555
                            Member
                            • Jan 2011
                            • 11

                            #14
                            Originally posted by dcjones View Post
                            The prep_reads problem seems to be caused by -1 qualities.

                            Here is a simple fix (replacing -1 qualities with 0):

                            Code:
                            --- src/reads.cpp
                            +++ src/reads.cpp
                            @@ -119,7 +119,7 @@ bool next_fastq_record(FLineReader& fr,
                                    string temp_qual;
                                    for (size_t i = 0; i < integer_qual_values.size(); ++i)
                                      {
                            -           temp_qual.push_back((char)(atoi(integer_qual_values[i].c_str()) + 33));
                            +           temp_qual.push_back((char)(max(0,atoi(integer_qual_values[i].c_str())) + 33));
                                      }
                             
                                    qual.append(temp_qual);
                            I also got this problem, but I don't know how to use your script, can you tell me more about how to replace -1 with 0 in .qual file?

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