Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • connieR
    Junior Member
    • Sep 2021
    • 2

    BBDuk Out of Memory

    Hello! I am running BBDuk from BBTools to remove reads that map to a mammal host genome (2.3G). I am running the bbduk.sh script on just 1 sample (an R1 and R2; each 12G). Initially, I kept getting an "java.lang.OutOfMemoryError: Java heap space" or "java.lang.OutOfMemoryError: GC overhead limit exceeded" errors, so I started requesting 100G+ of memory for my slurm jobs. The jobs run until the time limit I set is reached (3 days), and they do not produce any output files or even temporary files. The last job I ran (1 node, 15 cores, 300G of memory) is below:

    bbduk.sh in1=R1.fastq in2=R2.fastq out1=clean.R1.fastq out2=clean.R2.fastq outm1=matched1.fq outm2=matched2.fq ref=CC.genomic.fna stats=stats.txt k=31 prealloc hdist=1 rskip=4 -Xmx255g

    The output I received:
    Executing jgi.BBDuk
    Version 38.87

    Initial size set to 2142000000
    36.158 seconds.
    Initial:
    Memory: max=273804m, total=273804m, free=85629m, used=188175m

    slurmstepd: error: *** JOB CANCELLED DUE TO TIME LIMIT ***

    ---------------------
    I have also tried adding the rskip=4 and qskip=4 flags to no avail. I ran the same code on just the first 1000 lines of my fastq file and also received the "out of memory" issue.

    Any idea for what might be going on? Why is this task taking so long and requires so much memory for 1 sample? What I can do to diagnose the issue and actually be able to successfully run my code? I have yet to successfully run the BBDuk code on my data.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    You should use a different program for this purpose. Look up "bbsplit.sh". BBDuk is not the right program for this application.

    Comment

    • connieR
      Junior Member
      • Sep 2021
      • 2

      #3
      Thank you for your reply. That is what I was suspecting. I will look into other tools and/or bbsplit!!

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Originally posted by connieR View Post
        Thank you for your reply. That is what I was suspecting. I will look into other tools and/or bbsplit!!
        See: http://seqanswers.com/forums/showthread.php?t=41288

        Comment

        Latest Articles

        Collapse

        • seqadmin
          New Genomics Tools and Methods Shared at AGBT 2025
          by seqadmin


          This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

          The Headliner
          The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
          03-03-2025, 01:39 PM
        • seqadmin
          Investigating the Gut Microbiome Through Diet and Spatial Biology
          by seqadmin




          The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
          02-24-2025, 06:31 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 03-20-2025, 05:03 AM
        0 responses
        22 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-19-2025, 07:27 AM
        0 responses
        27 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-18-2025, 12:50 PM
        0 responses
        21 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-03-2025, 01:15 PM
        0 responses
        189 views
        0 reactions
        Last Post seqadmin  
        Working...