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
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                07-20-2026, 11:48 AM
              • 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.
                ...
                07-09-2026, 11:10 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 10:13 AM
              0 responses
              10 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-31-2026, 02:55 AM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-24-2026, 12:17 PM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-23-2026, 11:41 AM
              0 responses
              17 views
              0 reactions
              Last Post SEQadmin2  
              Working...