Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • impeachme2
    Junior Member
    • Apr 2012
    • 6

    #1

    bowtie2: running out of memory?

    Hello,

    I'm attempting to align 30 million paired-end reads to hg19 from a 50-cycle illumina run with bowtie2.

    I'm doing this one a computer with 12 cores and 48 GB ram.

    Code:
    [user@host folder]$ bowtie2 --dovetail -x /hg19/bt2_index/hg19 -1 219_0h_R1_val_1.fq -2 219_0h_R2_val_2.fq -p 12 -S 219_0h.sam
    terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc
    I also get this error when using -p 4

    The sam files are getting up to ~ 7 GB in size before it throws that error and stops. Based on comparing the last alignment names in the sam and the fastqs, it's getting about halfway through the fastq.

    Am I running out of memory? When I check my free memory during alignment, it doesn't appear that I'm coming close to running out.

    Code:
    [user@host folder]$ free -g
                 total       used       free     shared    buffers     cached
    Mem:            47         12         34          0          0          6
    -/+ buffers/cache:          6         41
    Swap:            0          0          0
    What can I do to get this to complete?
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    You may be running out of temporary disk space (/tmp) rather than memory. Bowtie and TopHat are know to need a lot of tmp space.

    Comment

    • impeachme2
      Junior Member
      • Apr 2012
      • 6

      #3
      Hmm, I don't see anything in /tmp/ that bowtie2 is creating.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Originally posted by impeachme2 View Post
        Hmm, I don't see anything in /tmp/ that bowtie2 is creating.
        Is the job running now? The files may be cleaned up after the job quits.

        Comment

        • impeachme2
          Junior Member
          • Apr 2012
          • 6

          #5
          Yes, it is running now, and there is nothing in /tmp

          Does it always write to /tmp regardless if where bowtie2 is running from?

          I've aligned to several genomes before with bowtie2, including human, and haven't had this issue.

          Interestingly, when I accidentally aligned mouse reads to hg19 with the same alignment settings, it worked (though obviously gave low alignment rate).

          Comment

          • impeachme2
            Junior Member
            • Apr 2012
            • 6

            #6
            I've also tried the same alignment with 5 computers of similar specs, with no success.

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              Interesting. So we can assume that there is nothing wrong with your genome index files.

              Have you thought of checking integrity of your sequence file to see if there is something odd there. Simon Andrews had posted a script to fix/check integrity of fastq scores (or files, can't remember) here some time back. Or perhaps something like this: http://genome.sph.umich.edu/wiki/FastQValidator

              Found the thread that has Simon's script (Post #8).
              Last edited by GenoMax; 07-17-2013, 03:15 PM.

              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
              58 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              42 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              46 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              47 views
              0 reactions
              Last Post SEQadmin2  
              Working...