novelvirus
10/15/2025, 2:11 PMtest_full profile but getting an error with Prokka. Is it something I'm doing wrong?
-[nf-core/mag] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_MAG:MAG:PROKKA (MEGAHIT-MetaBAT2-CAPES_S21.35)'
Caused by:
Process `NFCORE_MAG:MAG:PROKKA (MEGAHIT-MetaBAT2-CAPES_S21.35)` terminated with an error exit status (2)
Command executed:
prokka \
--metagenome --compliant --centre nfcore \
--cpus 2 \
--prefix MEGAHIT-MetaBAT2-CAPES_S21.35 \
\
\
MEGAHIT-MetaBAT2-CAPES_S21.35.fa
cat <-END_VERSIONS versions.yml
"NFCORE_MAG:MAG:PROKKA":
prokka: $(echo $(prokka --version 2>&1) | sed 's/^.*prokka //')
END_VERSIONS
Command exit status:
2
Command output:
(empty)
Command error:
[09:31:14] This is prokka 1.14.6
[09:31:14] Written by Torsten Seemann torsten.seemann@gmail.com
[09:31:14] Homepage is https://github.com/tseemann/prokka
[09:31:14] Local time is Wed Oct 15 09:31:14 2025
[09:31:14] You are not telling me who you are!
[09:31:14] Operating system is linux
[09:31:14] You have BioPerl 1.7.8
Argument "1.7.8" isn't numeric in numeric lt (<) at /opt/conda/bin/prokka line 259.
[09:31:14] System has 64 cores.
[09:31:14] Will use maximum of 2 cores.
[09:31:14] Annotating as >>> Bacteria <<<
[09:31:14] Generating locus_tag from 'MEGAHIT-MetaBAT2-CAPES_S21.35.fa' contents.
[09:31:14] Setting --locustag GFFIDLGB from MD5 0ff2d50b84265bdece0789a2b9ac29d3
[09:31:14] Enabling options to ensure Genbank/ENA/DDJB submission compliance.
[09:31:14] Creating new output folder: MEGAHIT-MetaBAT2-CAPES_S21.35
[09:31:14] Running: mkdir -p MEGAHIT\-MetaBAT2\-CAPES_S21\.35
[09:31:14] Using filename prefix: MEGAHIT-MetaBAT2-CAPES_S21.35.XXX
[09:31:14] Setting HMMER_NCPU=1
[09:31:14] Writing log to: MEGAHIT-MetaBAT2-CAPES_S21.35/MEGAHIT-MetaBAT2-CAPES_S21.35.log
[09:31:14] Command: /opt/conda/bin/prokka --metagenome --compliant --centre nfcore --cpus 2 --prefix MEGAHIT-MetaBAT2-CAPES_S21.35 MEGAHIT-MetaBAT2-CAPES_S21.35.fa
[09:31:14] Appending to PATH: /opt/conda/bin
[09:31:14] Looking for 'aragorn' - found /opt/conda/bin/aragorn
[09:31:14] Determined aragorn version is 001002 from 'ARAGORN v1.2.41 Dean Laslett'
[09:31:14] Looking for 'barrnap' - found /opt/conda/bin/barrnap
[09:31:14] Determined barrnap version is 000009 from 'barrnap 0.9'
[09:31:14] Looking for 'blastp' - found /opt/conda/bin/blastp
[09:31:41] Determined blastp version is 002016 from 'blastp: 2.16.0+'
[09:31:41] Looking for 'cmpress' - found /opt/conda/bin/cmpress
[09:31:42] Determined cmpress version is 001001 from '# INFERNAL 1.1.5 (Sep 2023)'
[09:31:42] Looking for 'cmscan' - found /opt/conda/bin/cmscan
[09:31:42] Determined cmscan version is 001001 from '# INFERNAL 1.1.5 (Sep 2023)'
[09:31:42] Looking for 'egrep' - found /usr/bin/egrep
[09:31:42] Looking for 'find' - found /usr/bin/find
[09:31:42] Looking for 'grep' - found /usr/bin/grep
[09:31:42] Looking for 'hmmpress' - found /opt/conda/bin/hmmpress
[09:31:42] Determined hmmpress version is 003004 from '# HMMER 3.4 (Aug 2023); http://hmmer.org/'
[09:31:42] Looking for 'hmmscan' - found /opt/conda/bin/hmmscan
[09:31:42] Determined hmmscan version is 003004 from '# HMMER 3.4 (Aug 2023); http://hmmer.org/'
[09:31:42] Looking for 'java' - found /opt/conda/bin/java
[09:31:42] Looking for 'makeblastdb' - found /opt/conda/bin/makeblastdb
[09:31:43] Determined makeblastdb version is 002016 from 'makeblastdb: 2.16.0+'
[09:31:43] Looking for 'minced' - found /opt/conda/bin/minced
Segmentation fault (core dumped)
[09:31:47] Coult not parse version from '#'
Work dir:
I'm running it like this
module load nextflow/25.04.6 singularity/4.3.2
nextflow run nf-core/mag -r 5.0.0 -c htc_resourceLimits.config -profile test_full \
-resume \
--outdir results
my config file:
$ cat htc_resourceLimits.config
singularity {
enabled = true
autoMounts = true
// runOptions = "--bind /zfs1:/zfs1"
}
process {
executor = 'slurm'
clusterOptions = { "${params.clusterOptions ?: ''}" }
scratch = true
resourceLimits = [
cpus: 64,
memory: '768.GB',
time: '144.h'
]
}
aws {
client {
anonymous = true
}
}James Fellows Yates
10/15/2025, 2:53 PMJames Fellows Yates
10/15/2025, 2:54 PMSegmentation fault (core dumped)
This gives me 'out of memory' vibesJames Fellows Yates
10/15/2025, 2:54 PMJames Fellows Yates
10/15/2025, 2:54 PMJames Fellows Yates
10/15/2025, 2:54 PM-resume would work, or is this after resume?novelvirus
10/15/2025, 3:04 PM-[nf-core/mag] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_MAG:MAG:BINNING:GUNZIP_BINS (MEGAHIT-MetaBAT2-CAPES_S7.18.fa.gz)'
Caused by: Process `NFCORE_MAG:MAG:BINNING:GUNZIP_BINS (MEGAHIT-MetaBAT2-CAPES_S7.18.fa.gz)` terminated for an unknown reason -- Likely it has been terminated by the external system
Command executed:
# Not calling gunzip itself because it creates files
# with the original group ownership rather than the
# default one for that user / the work directory
gzip \
-cd \
\
MEGAHIT-MetaBAT2-CAPES_S7.18.fa.gz \
> MEGAHIT-MetaBAT2-CAPES_S7.18.fa
cat <<-END_VERSIONS > versions.yml
"NFCORE_MAG:MAG:BINNING:GUNZIP_BINS":
gunzip: $(echo $(gunzip --version 2>&1) | sed 's/^.*(gzip) //; s/ Copyright.*$//')
END_VERSIONS
Command exit status: -
Command output: (empty)
Work dir:
/bgfs/uchandran/pgc92/projects/nextflow/nfcore_mag/v5.0.0_fulltest/work/8f/92946be29ae2a4a9ff1f4e15b62c35
Container:
/bgfs/uchandran/pgc92/projects/nextflow/nfcore_mag/v5.0.0_fulltest/work/singularity/community-cr-prod.seqera.io-docker-registry-v2-blobs-sha256-52-52ccce28d2ab928ab862e25aae26314d69c8e38bd41ca9431c67ef05221348aa-data.img
srun: error: unpackstr_xmalloc: Buffer to be unpacked is too large (1684369920 > 1073741824)
srun: error: io_init_msg_unpack: unpack error
srun: error: unpackstr_xmalloc: Buffer to be unpacked is too large (1700881509 > 1073741824)
srun: error: unpacking header
Maybe somethign was wrong with my HTC so I resumed it and then got the Prokka error.novelvirus
10/15/2025, 3:05 PMnovelvirus
10/18/2025, 12:40 PM-[nf-core/mag] Pipeline completed successfully, but with errored process(es)
Completed at: 18-Oct-2025 06:35:35
Duration : 22h 2m 10s
CPU hours : 479.2 (72% cached, 0% failed)
Succeeded : 492
Cached : 788
Ignored : 3
Failed : 3
Looking in the execution_trace, these come from MAG_DEPTHS_PLOT. Is this expected? I want to be sure I understand what is going on since I want to use this pipeline for a new metagenomics project of ~100+ human tumor samples.
$ grep -v COMPLETED results/pipeline_info/execution_trace_2025-10-17_08-33-20.txt | grep -v CACHED
task_id hash native_id name status exit submit duration realtime %cpu peak_rss peak_vmem rchar wchar
733 88/b239cd 6626086 NFCORE_MAG:mag:DEPTHS:MAG_DEPTHS_PLOT (FLYE-MaxBin2-CAPES_S21) FAILED 1 2025-10-17 08:34:29.394 31.3s 29.9s - - - - -
727 ef/faba77 6626085 NFCORE_MAG:mag:DEPTHS:MAG_DEPTHS_PLOT (METAMDBG-MaxBin2-CAPES_S21) FAILED 1 2025-10-17 08:34:29.021 31.7s 30s - - - - -
752 fd/fa1fca 6626087 NFCORE_MAG:mag:DEPTHS:MAG_DEPTHS_PLOT (METAMDBG-MaxBin2-CAPES_S11) FAILED 1 2025-10-17 08:34:30.339 30.4s 8ms - - - - -James Fellows Yates
10/18/2025, 2:36 PMnovelvirus
10/18/2025, 3:07 PM