Nextomics / NextDenovo

Fast and accurate de novo assembler for long reads
GNU General Public License v3.0
360 stars 53 forks source link

Samtools sort out-of-memory #176

Closed RenscoHogers closed 1 year ago

RenscoHogers commented 1 year ago

Describe the bug While running NextDenovo on SLURM, I run into a samtools sort error, seemingly due to too little reserved memory.

Error message Main task: [1700406 INFO] 2023-05-25 08:28:29 Submitted jobID:[42186471] jobCmd:[/home/WUR/hoger006/lustre_dir/Data/Dutch_Belted/NextDenovo_out/03.ctg_graph/02.ctg_align.sh.work/ctg_align16/nextDenovo.sh] in the slurm_cycle. [1700406 ERROR] 2023-05-25 08:55:12 ESC[35mctg_align failed: please check the following logs:ESC[0m [1700406 ERROR] 2023-05-25 08:55:12 ESC[35m/home/WUR/hoger006/lustre_dir/Data/Dutch_Belted/NextDenovo_out/03.ctg_graph/02.ctg_align.sh.work/ctg_align01/nextDenovo.sh.eESC[0m

Subtask: hostname

Config file [General] job_type = slurm submit = auto job_prefix = nextDenovo task = all rewrite = yes deltmp = yes parallel_jobs = 32 input_type = raw read_type = ont input_fofn = /home/WUR/hoger006/lustre_dir/Data/Dutch_Belted/NextDenovo_out/input.fofn workdir = /home/WUR/hoger006/lustre_dir/Data/Dutch_Belted/NextDenovo_out

[correct_option] read_cutoff = 1K genome_size = 827922386 sort_options = -m 100g -t 32 minimap2_options_raw = -t 32 -m 200g pa_correction = 8 correction_options = -p 32

[assemble_option] minimap2_options_cns = -t 32 nextgraph_options = -a 1

Operating system Which operating system and version are you using? Ubuntu 20.04 LTS

GCC What version of GCC are you using? 11.2.0

Python What version of Python are you using? 3.10.8

NextDenovo What version of NextDenovo are you using? 2.5.2

moold commented 1 year ago

see here to set submit. such as sbatch --cpus-per-task={cpu} --mem-per-cpu=2g -o {out} -e {err} {script}

or set submit = sbatch --cpus-per-task={cpu} --mem-per-cpu=2g -o {out} -e {err} {script} in your config file, see details

DaniPaulo commented 5 months ago

Hi @RenscoHogers. I'm still trying to figure out how to run NextDenovo in a HPC environment using SLURM. Would you be able to share your script.slurm.sh with me?