Hi all, I'm trying the `test_full` profile but get...
# mag
n
Hi all, I'm trying the
test_full
profile but getting an error with Prokka. Is it something I'm doing wrong?
Copy code
-[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
Copy code
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:
Copy code
$ 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
  }
}
j
Nope, that's unsual... PROKKA doesn't typically fail on test_full
Copy code
Segmentation fault (core dumped)
This gives me 'out of memory' vibes
Or that some file got corrupted along the way for some reason
(but no clue why)
Maybe
-resume
would work, or is this after resume?
n
It is after a resume because the first run failed with:
Copy code
-[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.
I'm going to retry test_full on a different filesystem on the same HTC. Maybe that will help (but it didn't for the 'test' profile: https://nfcore.slack.com/archives/CE9MS66BS/p1760538582510729?thread_ts=1760461161.938319&cid=CE9MS66BS)
The new clean run of the 'test_full' profile completed successfully but there were errored processes:
Copy code
-[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.
Copy code
$ 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 - - - - -
j
Yes, mag_depths_plot fails on full test but can be ignored as it's just a visualisation thing. It is because the assembly mapping mismatch default is too high for the long read samples dataset (which have high error rares because very old nanopore), resulting In depth coverage for the plotting. but we didn't realise until after and @Jim Downie pointed out. Also regardless, we will remove that process anyway as basically no one uses https://github.com/nf-core/mag/issues/869 So you should be good to go :) This was with checkm2 btw @novelvirus?
n
Great, thank you! 🙂 Yes, I used the test_full profile which uses checkm2: https://github.com/nf-core/mag/blob/main/conf/test_full.config#L40
👍 1