Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris
    Member
    • Apr 2008
    • 52

    #1

    Tophat2 job fails with an out of memory error - how to restart?

    I've had a long running tophat2 end with an error after 9 nine days:

    ...
    [2012-06-07 12:57:34] Joining segment hits
    [2012-06-07 17:58:10] Reporting output tracks
    [FAILED]
    Error: [Errno 12] Cannot allocate memory
    Found 280164 junctions from happy spliced reads

    [FAILED]
    Error: [Errno 2] No such file or directory: './tophat_out/tmp/accepted_hits7_sorted.bam'
    Found 280164 junctions from happy spliced reads
    Is there anyway to restart it at the point of failure on a machine with more memory rather than waiting another 9 nine days...?
  • EGrassi
    Member
    • Oct 2010
    • 66

    #2
    I've managed to do so...you should check in your logs (run.log) the command that failed and re-launch it on a machine with more memory. In my case it worked and I only needed to launch by hand two or three commands.
    You should try to understand which commands you still need to execute by examining the python wrapper for tophat and/or relaunching it on smaller fastq files (but with the same command line) and examining the logs. If it stopped at reporting output tracks it is similar to my situation: you should relaunch tophat-reports and samtools sort (in this way you will get an accepted_hits.bam but no unmapped.bam, I did not generate that file because I didn't need it...)

    Be aware that this suggestion is not entirely "safe" as long as one can 'rebuild' the commands in the wrong way and skip eventual portions of the job done by the python...the developer suggested me to split my fastq files and run tophat on them separately to overcome memory limits.

    Comment

    • chris
      Member
      • Apr 2008
      • 52

      #3
      OK. It looks like it died trying to sort eight BAM files at the same time and then merging them into one. I'll try and run those steps separately and see how that goes...

      Grazie mille

      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...
        Yesterday, 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
      25 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
      71 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...