Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process bam_ingress:minimap2_alignment (1) terminated with an error exit status (137) #133

Open
Yoon90 opened this issue Jan 22, 2024 · 4 comments
Labels
question Further information is requested

Comments

@Yoon90
Copy link

Yoon90 commented Jan 22, 2024

Ask away!

Hello!
nextflow.log

Human-variation-workflow has stopped with an error exit status(137)
I guess it has occurred because of the shortage of RAM.

I'm attaching the head and the middle part of the nextflow.config

I found that the minimal required memory is 32GB but this computer cannot provide that much.
Is there any option to change/lower required Memory(RAM)?

Logs:

[0;92m|||||||||| �[0m�[2m_____ ____ ___ ____ __ __ _____ _ _
�[0;92m|||||||||| �[0m�[2m| | _ _ | | / | | | | __ | | ___
�[0;33m||||| �[0m�[2m| | | |) | | __) | |/| | | _| |/ ` | ' / |
�[0;33m||||| �[0m�[2m| |
| /| | / /| | | | ||
| | (
| | |
) _

�[0;94m|||||||||| �[0m�[2m|_____|
| |
||| ||| ||_,|./|__/
�[0;94m|||||||||| �[0m�[1mwf-human-variation v1.9.2�[0m
�[2m--------------------------------------------------------------------------------�[0m
�[1mCore Nextflow options�[0m
�[0;34mrunName : �[0;32mtender_pike�[0m
�[0;34mcontainerEngine : �[0;32mdocker�[0m
�[0;34mcontainer : �[0;32montresearch/wf-human-variation:sha0800eade05e4cbb75d45421633c78c4f6320b2f6�[0m
�[0;34mlaunchDir : �[0;32m/home/heeji/epi2melabs/instances/wf-human-variation_01HMQ5WY7W4NNY8QABXDCK57S2�[0m
�[0;34mworkDir : �[0;32m/home/heeji/epi2melabs/instances/wf-human-variation_01HMQ5WY7W4NNY8QABXDCK57S2/work�[0m
�[0;34mprojectDir : �[0;32m/home/heeji/epi2melabs/workflows/epi2me-labs/wf-human-variation�[0m
�[0;34muserName : �[0;32mheeji�[0m
�[0;34mprofile : �[0;32mstandard�[0m
�[0;34mconfigFiles : �[0;32m/home/heeji/epi2melabs/workflows/epi2me-labs/wf-human-variation/nextflow.config�[0m

�[1mWorkflow Options�[0m
�[0;34msv : �[0;32mtrue�[0m
�[0;34msnp : �[0;32mtrue�[0m
�[0;34mcnv : �[0;32mtrue�[0m
�[0;34mstr : �[0;32mtrue�[0m

�[1mMain options�[0m
�[0;34msample_name : �[0;32mDBS_barcode05�[0m
�[0;34mbam : �[0;32m/media/heeji/2023_WES/nanopore/231227_DBS_4_pilot_test/no_sample/20231227_1908_X5_FAU99700_eaea91de/bam_pass/barcode05/merge_barcode05.bam�[0m
�[0;34mref : �[0;32m/media/heeji/2023_WES/hg38.fa�[0m
�[0;34mbam_min_coverage: �[0;32m5�[0m
�[0;34mout_dir : �[0;32m/home/heeji/epi2melabs/instances/wf-human-variation_01HMQ5WY7W4NNY8QABXDCK57S2/output�[0m

!! Only displaying parameters that differ from the pipeline defaults !!
�[2m--------------------------------------------------------------------------------�[0m
If you use epi2me-labs/wf-human-variation for your analysis please cite:

�[2m--------------------------------------------------------------------------------�[0m
This is epi2me-labs/wf-human-variation v1.9.2.

Caused by:
Process bam_ingress:minimap2_alignment (1) terminated with an error exit status (137)

Command executed:

samtools bam2fq -@ 1 -T 1 merge_barcode05.bam | minimap2 -y -t 8 -ax map-ont hg38.fa - | samtools sort -@ 3 --write-index -o DBS_barcode05.bam##idx##DBS_barcode05.bam.bai -O bam --reference hg38.fa -

Command exit status:
137

Command output:
(empty)

Command error:
[M::mm_idx_gen::116.4521.80] collected minimizers
[M::mm_idx_gen::217.785
1.78] sorted minimizers
[M::main::217.7921.78] loaded/built the index for 455 target sequence(s)
[M::mm_mapopt_update::219.462
1.78] mid_occ = 728
[M::mm_idx_stat] kmer size: 15; skip: 10; is_hpc: 0; #seq: 455
[M::mm_idx_stat::220.401*1.77] distinct minimizers: 100202295 (37.96% are singletons); average occurrences: 5.732; average spacing: 5.587; total length: 3209286105
[M::bam2fq_mainloop] discarded 0 singletons
[M::bam2fq_mainloop] processed 236000 reads
[bam_sort_core] merging from 0 files and 3 in-memory blocks...
.command.sh: line 2: 25 Done samtools bam2fq -@ 1 -T 1 merge_barcode05.bam
26 Killed | minimap2 -y -t 8 -ax map-ont hg38.fa -
28 | samtools sort -@ 3 --write-index -o DBS_barcode05.bam##idx##DBS_barcode05.bam.bai -O bam --reference hg38.fa -

@Yoon90 Yoon90 added the question Further information is requested label Jan 22, 2024
@SamStudio8
Copy link
Member

SamStudio8 commented Jan 22, 2024 via email

@RenzoTale88
Copy link
Contributor

RenzoTale88 commented Jan 22, 2024

@Yoon90 as @SamStudio8 mentioned, this is an out of memory issue, therefore decrease the memory usage won't fix the issue.

@Yoon90
Copy link
Author

Yoon90 commented Jan 24, 2024

@RenzoTale88
As far as I know the memory usage could be increased.
https://labs.epi2me.io/trouble-shooting/#error-command-exit-status-137

But I guess this only works if the device has enough memory(more than 32GB).
Should i wait for a new version?

@cjw85
Copy link
Contributor

cjw85 commented Jan 24, 2024

You are correct, the workflow needs a minimum of 32Gb RAM to run, and very often the peak memory usage will be more than this. If your computer has only 32Gb RAM this workflow is unlikely to run reliably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

4 participants