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
                16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                by SEQadmin2




                NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                Today, 06:46 AM
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-28-2026, 09:57 AM
              0 responses
              23 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-28-2026, 09:51 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              68 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              48 views
              0 reactions
              Last Post SEQadmin2  
              Working...