Daniel Gregoire
02/17/2026, 1:19 AMnextflow run nf-core/mag -r 5.4.0 -profile apptainer -c mag-wall-time-increase.yaml -resume 263aef71-55e3-4ffe-a6fe-3a1f39f6574d \
--input 'KB1_long_read_sample_list_20260212.csv' \
--outdir KB1_long_read_MAGs_nf_core \
--min_contig_size 1500 \
--skip_spades \
--refine_bins_dastool \
--postbinning_input refined_bins_only \
--run_checkm2 \
--checkm2_db '/files/home/dgregoire/databases/CheckM2_database/uniref100.KO.1.dmnd' \
--gtdb_db '/datastore/researchdata/gtdbtk/release220'
the pipeline interrupts at the Prodigal and Metabat2 JGI Summarize contig depth steps with the following error message:
-[nf-core/mag] Pipeline completed with errors-
WARN: Killing running tasks (1)
ERROR ~ Could not find which method load() to invoke from this list:
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.io.InputStream)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.io.Reader)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.lang.String)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.io.File)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.nio.file.Path)
-- Check script '/files/home/dgregoire/.nextflow/assets/nf-core/mag/subworkflows/nf-core/utils_nfcore_pipeline/main.nf' at line: 82 or see '.nextflow.log' file for more details
After doing some initial research, I suspect the problem may be an incompatibility between my nextflow version creating issues reading my custom config file (which is fine, to the best of my knowledge). This strikes me as strange, given that the run initiated and nextflow is caching the files properly based on my custom config file.
I wanted to run it by the community first before I test downgrading to less recent nextflow version. Thanks in advance for any help.James Fellows Yates
02/17/2026, 8:20 AMyaml files, so you shouldn't name it that (convention is .conf), but generaly that shouldn't make a differenceJames Fellows Yates
02/17/2026, 8:20 AMJames Fellows Yates
02/17/2026, 8:21 AMsnakeyaml in the mag code base is
//
// Get software versions for pipeline
//
def processVersionsFromYAML(yaml_file) {
def yaml = new org.yaml.snakeyaml.Yaml()
def versions = yaml.load(yaml_file).collectEntries { k, v -> [k.tokenize(':')[-1], v] }
return yaml.dumpAsMap(versions).trim()
}
Which we use to pick up versions...James Fellows Yates
02/17/2026, 8:22 AMJames Fellows Yates
02/17/2026, 8:47 AMJames Fellows Yates
02/17/2026, 8:47 AMJames Fellows Yates
02/17/2026, 8:48 AMFeb.-16 20:10:49.601 [Actor Thread 51] DEBUG nextflow.processor.TaskProcessor - Process NFCORE_MAG:MAG:BINNING_PREPARATION:LONGREAD_BINNING_PREPARATION:MINIMAP2_ASSEMBLY_ALIGN > Skipping output binding because one or more optional files are missing: fileoutparam<0:1>Daniel Gregoire
02/17/2026, 2:23 PMJames Fellows Yates
02/17/2026, 2:34 PMJames Fellows Yates
02/17/2026, 2:37 PMJames Fellows Yates
02/17/2026, 2:41 PMnextflow pull, and then run with -r minimap2-yaml-issueDaniel Gregoire
02/18/2026, 1:54 AMnextflow run nf-core/mag -r minimap2-yaml-issue -profile apptainer -c mag-wall-time-increase.yaml \
--input 'KB1_long_read_sample_list_20260212.csv' \
--outdir KB1_long_read_MAGs_nf_core \
--min_contig_size 1500 \
--skip_spades \
--refine_bins_dastool \
--postbinning_input refined_bins_only \
--run_checkm2 \
--checkm2_db '/files/home/dgregoire/databases/CheckM2_database/uniref100.KO.1.dmnd' \
--gtdb_db '/datastore/researchdata/gtdbtk/release220'
It returned an error message immediately:
Launching `<https://github.com/nf-core/mag>` [high_hypatia] DSL2 - revision: 9aefaa1f00 [minimap2-yaml-issue]
ERROR ~ Module compilation error
- file : /files/home/dgregoire/.nextflow/assets/nf-core/mag/subworkflows/local/hostremoval_longread/main.nf
- cause: Unexpected input: '}' @ line 56, column 1.
}
^
1 error
-- Check script '/files/home/dgregoire/.nextflow/assets/nf-core/mag/subworkflows/local/preprocessing_longread/main.nf' at line: 16 or see '.nextflow.log' file for more detailsJames Fellows Yates
02/18/2026, 8:12 AMJames Fellows Yates
02/18/2026, 8:14 AMDaniel Gregoire
02/19/2026, 9:07 PMnextflow run nf-core/mag -r minimap2-yaml-issue -profile apptainer -c mag-wall-time-increase.yaml \
--input 'KB1_long_read_sample_list_20260212.csv' \
--outdir KB1_long_read_MAGs_nf_core \
--min_contig_size 1500 \
--skip_spades \
--refine_bins_dastool \
--postbinning_input refined_bins_only \
--run_checkm2 \
--checkm2_db '/files/home/dgregoire/databases/CheckM2_database/uniref100.KO.1.dmnd' \
--gtdb_db '/datastore/researchdata/gtdbtk/release220'
Error message:
-[nf-core/mag] Pipeline completed with errors-
WARN: Killing running tasks (2)
ERROR ~ Could not find which method load() to invoke from this list:
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.io.InputStream)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.io.Reader)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.lang.String)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.io.File)
public java.lang.Object org.yaml.snakeyaml.Yaml#load(java.nio.file.Path)
-- Check script '/files/home/dgregoire/.nextflow/assets/nf-core/mag/subworkflows/nf-core/utils_nfcore_pipeline/main.nf' at line: 82 or see '.nextflow.log' file for more detailsDaniel Gregoire
02/23/2026, 8:10 PMJames Fellows Yates
02/24/2026, 12:50 PMJames Fellows Yates
02/24/2026, 12:51 PMJames Fellows Yates
02/24/2026, 12:51 PMJames Fellows Yates
02/24/2026, 12:52 PMJames Fellows Yates
02/24/2026, 12:52 PMsamtools bump 🤔Daniel Gregoire
02/26/2026, 7:49 PMJames Fellows Yates
02/27/2026, 7:03 AMJames Fellows Yates
02/27/2026, 7:04 AMJames Fellows Yates
02/27/2026, 7:08 AMminimap2-yaml-issue branch again?
So first: nextflow pull nf-core/mag then run the commands you were trying to run but with -r minimap2-yaml-issue instead of -r 5.4.0.
I just saw this that slipped past a review, ch_versions = ch_versions.mix(ALE.out.versions.ifEmpty([])), and I wonder if the empty [] is trying to be loaded by the YAML loader which of course will not work...James Fellows Yates
02/27/2026, 7:08 AMJames Fellows Yates
02/27/2026, 7:09 AMDaniel Gregoire
03/02/2026, 2:30 PMJames Fellows Yates
03/02/2026, 2:31 PMRuiqi Li
03/06/2026, 4:49 PMJames Fellows Yates
03/06/2026, 5:44 PMDiego Alvarez Saravia
03/06/2026, 5:58 PMDaniel Gregoire
03/06/2026, 6:29 PMJames Fellows Yates
03/06/2026, 6:35 PMJames Fellows Yates
03/06/2026, 6:35 PMDaniel Gregoire
03/09/2026, 1:05 PMJames Fellows Yates
03/09/2026, 1:05 PMJames Fellows Yates
03/09/2026, 1:06 PMDiego Alvarez Saravia
03/09/2026, 1:06 PM