Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sjnewhouse
    Junior Member
    • Apr 2010
    • 1

    Tophat Error: Error: segment-based junction search failed with err =-6

    Hi All,
    I'm running into problems with Tophat; keep getting the following error:-
    Error: segment-based junction search failed with err =-6.
    This is HiSeq 100bp PE data.
    Any ideas?
    Cheers
    Steve
    ##
    [Mon Jul 18 16:27:43 2011] Beginning TopHat run (v1.3.1)
    -----------------------------------------------
    [Mon Jul 18 16:27:43 2011] Preparing output location ./AST1.chr.9.tiling.bicep.smooth.muscle.july.2011/
    [Mon Jul 18 16:27:43 2011] Checking for Bowtie index files
    [Mon Jul 18 16:27:43 2011] Checking for reference FASTA file
    [Mon Jul 18 16:27:43 2011] Checking for Bowtie
    Bowtie version: 0.12.7.0
    [Mon Jul 18 16:27:43 2011] Checking for Samtools
    Samtools Version: 0.1.15
    [Mon Jul 18 16:27:43 2011] Generating SAM header for /scratch/data/reference_genomes/human/human_g1k_v37
    [Mon Jul 18 16:28:02 2011] Preparing reads
    format: fastq
    quality scale: phred33 (default)
    [Mon Jul 18 16:28:02 2011] Reading known junctions from GTF file
    Left reads: min. length=100, count=151802002
    Right reads: min. length=100, count=151646210
    [Mon Jul 18 19:11:17 2011] Mapping left_kept_reads against human_g1k_v37 with Bowtie
    [Mon Jul 18 21:11:50 2011] Processing bowtie hits
    [Mon Jul 18 23:05:38 2011] Mapping left_kept_reads_seg1 against human_g1k_v37 with Bowtie (1/4)
    [Tue Jul 19 02:45:12 2011] Mapping left_kept_reads_seg2 against human_g1k_v37 with Bowtie (2/4)
    [Tue Jul 19 06:18:55 2011] Mapping left_kept_reads_seg3 against human_g1k_v37 with Bowtie (3/4)
    [Tue Jul 19 09:49:52 2011] Mapping left_kept_reads_seg4 against human_g1k_v37 with Bowtie (4/4)
    [Tue Jul 19 13:22:18 2011] Mapping right_kept_reads against human_g1k_v37 with Bowtie
    [Tue Jul 19 15:00:03 2011] Processing bowtie hits
    [Tue Jul 19 16:53:27 2011] Mapping right_kept_reads_seg1 against human_g1k_v37 with Bowtie (1/4)
    [Tue Jul 19 21:01:46 2011] Mapping right_kept_reads_seg2 against human_g1k_v37 with Bowtie (2/4)
    [Wed Jul 20 00:52:22 2011] Mapping right_kept_reads_seg3 against human_g1k_v37 with Bowtie (3/4)
    [Wed Jul 20 04:31:58 2011] Mapping right_kept_reads_seg4 against human_g1k_v37 with Bowtie (4/4)
    [Wed Jul 20 08:07:07 2011] Searching for junctions via segment mapping
    [FAILED]
    Error: segment-based junction search failed with err =-6
  • curtish
    Junior Member
    • Oct 2011
    • 2

    #2
    Any resolution to this? We're seeing the same error on HiSeq PE 50bp data - but only on some data sets (always the same reference genome). It's consistent for a particular read set - either always failing or always working.

    Note: we're on 1.2.0, you're on 1.3.1.


    Tue Oct 11 14:27:13 2011] Beginning TopHat run (v1.2.0)
    -----------------------------------------------
    [Tue Oct 11 14:27:13 2011] Preparing output location ./tophat_out/
    [Tue Oct 11 14:27:13 2011] Checking for Bowtie index files
    [Tue Oct 11 14:27:13 2011] Checking for reference FASTA file
    [Tue Oct 11 14:27:13 2011] Checking for Bowtie
    Bowtie version: 0.12.7.0
    [Tue Oct 11 14:27:13 2011] Checking for Samtools
    Samtools Version: 0.1.12a
    [Tue Oct 11 14:27:43 2011] Checking reads
    min read length: 51bp, max read length: 51bp
    format: fastq
    quality scale: phred33 (default)
    [Tue Oct 11 14:57:03 2011] Mapping reads against dataset_4371 with Bowtie
    [Tue Oct 11 15:41:43 2011] Joining segment hits
    [Tue Oct 11 15:59:13 2011] Mapping reads against dataset_4371 with Bowtie(1/2)
    [Tue Oct 11 16:49:19 2011] Mapping reads against dataset_4371 with Bowtie(2/2)
    [Tue Oct 11 17:31:34 2011] Mapping reads against dataset_4371 with Bowtie
    [Tue Oct 11 18:14:46 2011] Joining segment hits
    [Tue Oct 11 18:31:31 2011] Mapping reads against dataset_4371 with Bowtie(1/2)
    [Tue Oct 11 19:25:04 2011] Mapping reads against dataset_4371 with Bowtie(2/2)
    [Tue Oct 11 20:09:42 2011] Searching for junctions via segment mapping
    [FAILED]
    Error: segment-based junction search failed with err = -6

    Comment

    • mauro.pala
      Junior Member
      • Jun 2011
      • 4

      #3
      have someone solved this issue? I am having the same error


      ~45M of reads PE, Bowtie 0.12.7.0, TopHat v1.3.1, samtools-0.1.16, reference g1k_v37




      [Sat Nov 5 02:47:34 2011] Beginning TopHat run (v1.3.1)
      -----------------------------------------------
      [Sat Nov 5 02:47:34 2011] Preparing output location ./
      [Sat Nov 5 02:47:34 2011] Checking for Bowtie index files
      [Sat Nov 5 02:47:34 2011] Checking for reference FASTA file
      [Sat Nov 5 02:50:50 2011] Checking for Bowtie
      Bowtie version: 0.12.7.0
      [Sat Nov 5 02:50:50 2011] Checking for Samtools
      Samtools Version: 0.1.16
      [Sat Nov 5 02:50:50 2011] Generating SAM header for /SHARE/USERFS/els6/users/mpala/annotation/NCBI/human_g1k_v37/bowtie_index/genome
      [Sat Nov 5 02:53:01 2011] Preparing reads
      format: fastq
      quality scale: phred33 (default)
      [Sat Nov 5 02:53:01 2011] Reading known junctions from GTF file
      Left reads: min. length=36, count=43896506
      Right reads: min. length=38, count=43849406
      [Sat Nov 5 03:20:08 2011] Mapping left_kept_reads against genome with Bowtie
      [Sat Nov 5 04:03:32 2011] Processing bowtie hits
      [Sat Nov 5 04:42:00 2011] Mapping left_kept_reads_seg1 against genome with Bowtie (1/2)
      [Sat Nov 5 05:15:39 2011] Mapping left_kept_reads_seg2 against genome with Bowtie (2/2)
      [Sat Nov 5 05:49:00 2011] Mapping right_kept_reads against genome with Bowtie
      [Sat Nov 5 06:28:18 2011] Processing bowtie hits
      [Sat Nov 5 07:08:43 2011] Mapping right_kept_reads_seg1 against genome with Bowtie (1/2)
      [Sat Nov 5 07:53:55 2011] Mapping right_kept_reads_seg2 against genome with Bowtie (2/2)
      [Sat Nov 5 08:46:16 2011] Searching for junctions via segment mapping
      [FAILED]
      Error: segment-based junction search failed with err =-6


      M.

      Comment

      • biznatch
        Senior Member
        • Nov 2010
        • 124

        #4
        Out of memory?

        I'm getting the same error. I'm using the command

        Code:
        tophat -p 6 --butterfly-search --no-convert-bam ~/chip/bowtie/indexes/mm9all+ ~/chip/data/E14_c_reads1.fastq ~/chip/data/E14_c_reads2.fastq
        The index I'm using is the mm9 mouse genome including all the "unknown" and "random" chromosomes plus I've added in about 1kb of custom sequence.

        Code:
        [Wed Nov 16 23:58:28 2011] Beginning TopHat run (v1.3.3)
        -----------------------------------------------
        [Wed Nov 16 23:58:28 2011] Preparing output location ./tophat_out/
        [Wed Nov 16 23:58:28 2011] Checking for Bowtie index files
        [Wed Nov 16 23:58:28 2011] Checking for reference FASTA file
        [Wed Nov 16 23:58:28 2011] Checking for Bowtie
        	Bowtie version:			 0.12.7.0
        [Wed Nov 16 23:58:28 2011] Checking for Samtools
        	Samtools Version: 0.1.18
        [Wed Nov 16 23:58:28 2011] Generating SAM header for /home/mike/chip/bowtie/indexes/mm9all+
        [Wed Nov 16 23:58:31 2011] Preparing reads
        	format:		 fastq
        	quality scale:	 phred33 (default)
        	Left  reads: min. length=100, count=33713874
        	Right reads: min. length=100, count=33708045
        [Thu Nov 17 00:27:42 2011] Mapping left_kept_reads against mm9all+ with Bowtie 
        [Thu Nov 17 00:56:53 2011] Processing bowtie hits
        [Thu Nov 17 01:24:46 2011] Mapping left_kept_reads_seg1 against mm9all+ with Bowtie (1/4)
        [Thu Nov 17 01:57:03 2011] Mapping left_kept_reads_seg2 against mm9all+ with Bowtie (2/4)
        [Thu Nov 17 02:29:33 2011] Mapping left_kept_reads_seg3 against mm9all+ with Bowtie (3/4)
        [Thu Nov 17 03:04:10 2011] Mapping left_kept_reads_seg4 against mm9all+ with Bowtie (4/4)
        [Thu Nov 17 03:35:00 2011] Mapping right_kept_reads against mm9all+ with Bowtie 
        [Thu Nov 17 04:02:48 2011] Processing bowtie hits
        [Thu Nov 17 04:30:51 2011] Mapping right_kept_reads_seg1 against mm9all+ with Bowtie (1/4)
        [Thu Nov 17 05:06:11 2011] Mapping right_kept_reads_seg2 against mm9all+ with Bowtie (2/4)
        [Thu Nov 17 05:42:10 2011] Mapping right_kept_reads_seg3 against mm9all+ with Bowtie (3/4)
        [Thu Nov 17 06:20:41 2011] Mapping right_kept_reads_seg4 against mm9all+ with Bowtie (4/4)
        [Thu Nov 17 06:54:57 2011] Searching for junctions via segment mapping
        	[FAILED]
        Error: segment-based junction search failed with err =-6
        In the log file "segment_juncs.log" it ends with:

        Code:
        >> Performing butterfly-search: 
        Recording coverage islands
        Found 11562195 islands covering 532250647 bases
        Collecting potential splice sites in islands
        terminate called after throwing an instance of 'std::bad_alloc'
          what():  std::bad_alloc
        "std::bad_alloc" seems to mean you've run out of memory, and I was running without a swap file (although I have 16GB RAM) so that could have been the problem, also maybe butterfly-search uses more memory? It was running overnight so I wasn't watching it at the time. I'll try with swap and without butterfly search and see if that works. To the other people having this problem, check the log files in the "logs" folder in the "tophat_out" folder, in particular the "segment_juncs.log" file which should be the last one that was created.
        Last edited by biznatch; 11-17-2011, 08:27 AM.

        Comment

        • Jane Lee
          Junior Member
          • Feb 2013
          • 6

          #5
          ask for solutions for the same problem

          Originally posted by curtish View Post
          Any resolution to this? We're seeing the same error on HiSeq PE 50bp data - but only on some data sets (always the same reference genome). It's consistent for a particular read set - either always failing or always working.

          Note: we're on 1.2.0, you're on 1.3.1.

          HI, have you solved the problem already? If so, could you give me some advice, for I met the same problem when running tophat.

          Thank you very much!
          Best wishes!

          Comment

          • DonDolowy
            Member
            • Oct 2012
            • 56

            #6
            I had the same problem with two out of 32 samples I mapped. I never figured out what was causing it, but updating TopHat to the most recent version (2.0.8) solved the problem.

            Comment

            • Jane Lee
              Junior Member
              • Feb 2013
              • 6

              #7
              Thank you but I ran into a new problem

              Originally posted by DonDolowy View Post
              I had the same problem with two out of 32 samples I mapped. I never figured out what was causing it, but updating TopHat to the most recent version (2.0.8) solved the problem.
              Thank you.

              I installed the new tophat v2.0.8, and built new bowtie2 index and ran my sample again with the same command line order:
              tophat -p 8 -G Homo_sapiens.GRCh37.68.gtf -o 22_thout genome 22-1.fastq 22-2.fastq

              but I got another error here:
              2013-02-28 09:16:30] Beginning TopHat run (v2.0.8)
              -----------------------------------------------
              [2013-02-28 09:16:30] Checking for Bowtie
              Bowtie version: 2.0.5.0
              [2013-02-28 09:16:30] Checking for Samtools
              Samtools version: 0.1.18.0
              [2013-02-28 09:16:30] Checking for Bowtie index files
              Warning: we do not recommend to have both Bowtie1 and Bowtie2 indexes in the same directory
              the genome sequence (*.fa) may not be compatible with one of them
              [2013-02-28 09:16:30] Checking for reference FASTA file
              [2013-02-28 09:16:30] Generating SAM header for /media/RAID/work/lixinna/raw_data/2012-08-16-tumor-RNA-seq/experiment/genome
              format: fastq
              quality scale: phred33 (default)
              [2013-02-28 09:16:32] Reading known junctions from GTF file
              [2013-02-28 09:16:43] Preparing reads
              [FAILED]
              Error running 'prep_reads'
              prep_reads [--filter-multi <multi.fq>] <reads1.fa/fq,...,readsN.fa/fq>

              I still can't figure out the solution, could you give me some advice?

              Thank you in advance.

              Comment

              • darya
                Junior Member
                • Mar 2012
                • 1

                #8
                Hi there,

                I had the same problem with my samples and figured it is just a memory issue.
                If you are running tophat with option -coverage-search on, you need more than 40 GB of RAM available to tophat.
                However, If your read length is > 48bp, you do not need coverage search. Turn it off by --no-coverage-search in your command. Tophat works much faster and with no error. :-)

                Good luck,

                Comment

                • Jane Lee
                  Junior Member
                  • Feb 2013
                  • 6

                  #9
                  Originally posted by darya View Post
                  Hi there,

                  I had the same problem with my samples and figured it is just a memory issue.
                  If you are running tophat with option -coverage-search on, you need more than 40 GB of RAM available to tophat.
                  However, If your read length is > 48bp, you do not need coverage search. Turn it off by --no-coverage-search in your command. Tophat works much faster and with no error. :-)

                  Good luck,
                  Hi there,

                  Thank you very much.

                  I update the tophat version and the problem dispearred.

                  So it may be a bug.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                    by SEQadmin2


                    Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                    The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                    ...
                    Yesterday, 10:05 AM
                  • SEQadmin2
                    Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                    by SEQadmin2


                    With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                    Introduction

                    Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                    05-22-2026, 06:42 AM
                  • SEQadmin2
                    Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                    by SEQadmin2

                    Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                    Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                    05-06-2026, 09:04 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Yesterday, 12:03 PM
                  0 responses
                  19 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, Yesterday, 11:40 AM
                  0 responses
                  14 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 05-28-2026, 11:40 AM
                  0 responses
                  29 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 05-26-2026, 10:12 AM
                  0 responses
                  31 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...