user
01/20/2026, 11:07 PMThomas Danhorn
01/21/2026, 4:36 AMjoin mismatch errors are common, but they are secondary to something else going off the rails, so you have to find (typically in the .nextflow.log) and and fix that. If you need help, feel free to post the .nextflow.log, any config files, your sample sheet, etc.user
01/23/2026, 11:24 AMCharles-Alexandre Roy
02/10/2026, 6:09 PMsave_output_as_bam = true setting).
It looks like there are at least two issues related to this on GitHub:
https://github.com/nf-core/sarek/issues/2110
https://github.com/nf-core/sarek/issues/2064
I am running the ASCAT CNV calling pipeline with Sarek v3.6.1. I noticed that there was another issue a few lines above this error in my logs, where process GATK4_APPLYBQSR wasn't able to find a CRAM file it was looking for. Here is the relevant portion of the log:
Feb-09 23:46:51.059 [TaskFinalizer-9] DEBUG n.processor.TaskFileCollector - Process `NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:BAM_APPLYBQSR:GATK4_APPLYBQSR (CTRL_3)` is unable to find [UnixPath]: `/expanse/lustre/projects/sdp120/croy/nextflow_development/sarek/nextflow_work/4e/df95958118bfd3a4d1478934b392f6/CTRL_3_chrX_37285838-49348394.recal.cram` (pattern: `CTRL_3_chrX_37285838-49348394.recal.cram`)
Feb-09 23:46:51.060 [TaskFinalizer-9] DEBUG nextflow.processor.TaskProcessor - Process NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:BAM_APPLYBQSR:GATK4_APPLYBQSR > Skipping output binding because one or more optional files are missing: fileoutparam<2:1>
Feb-09 23:46:51.062 [Actor Thread 58] DEBUG nextflow.extension.GroupTupleOp - GroupTuple dynamic size: key=[patient:3, sample:CTRL_3, sex:XY, status:0, n_fastq:24, data_type:cram, id:CTRL_3, num_intervals:21] size=21
Feb-09 23:46:51.062 [Actor Thread 78] ERROR nextflow.extension.DataflowHelper - @unknown
nextflow.exception.AbortOperationException: Detected join operation duplicate emission on left channel -- offending element: key=[patient:3, sample:CTRL_3, sex:XY, status:0, n_fastq:24, data_type:cram, id:CTRL_3, num_intervals:21]; value=/expanse/lustre/projects/sdp120/croy/nextflow_development/sarek/nextflow_work/4e/df95958118bfd3a4d1478934b392f6/CTRL_3_chrX_37285838-49348394.recal.bam
When I visit the folder where the process expected the .cram, I see these contents:
chrX_37285838-49348394.bed
.command.begin
.command.err
.command.log
.command.out
.command.run
.command.sh
.command.trace
CTRL_3_chrX_37285838-49348394.recal.bai
CTRL_3_chrX_37285838-49348394.recal.bam
CTRL_3.md.cram
CTRL_3.md.cram.crai
CTRL_3.recal.table
.exitcode
Homo_sapiens_assembly38.dict
Homo_sapiens_assembly38.fasta
Homo_sapiens_assembly38.fasta.fai
versions.yml
From this, it seems like the CTRL_3_chrX_37285838-49348394.recal.cram file is being converted to a bam too soon (or the GATK4_APPLYBQSR process should be looking for a .bam instead). I'm not sure where to look for this in the source code, but figured I'd add this information in case it helps.Charles-Alexandre Roy
02/10/2026, 7:37 PMsave_output_as_bam = true setting and resuming, I eventually started getting the other errors like @User described. When I restart the pipeline with -resume, it is able to continue and may or may not crash with a similar error again, so it's not deterministic.
Looking at the logs for cases where this type of error was raised shows upstream errors where processes had issues being submitted to the executor. Here are two such examples:
Feb-10 10:10:24.410 [Task submitter] DEBUG nextflow.processor.TaskProcessor - Handling unexpected condition for
task: name=NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:BAM_BASERECALIBRATOR:GATK4_BASERECALIBRATOR (VMT_9); work-dir=/expanse/lustre/projects/sdp120/croy/nextflow_development/sarek/nextflow_work/f4/cc81d074beed3d1a53b4271c012c67
error [nextflow.exception.ProcessFailedException]: Error submitting process 'NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:BAM_BASERECALIBRATOR:GATK4_BASERECALIBRATOR (VMT_9)' for execution
and:
Feb-10 11:24:14.254 [Task submitter] DEBUG nextflow.processor.TaskProcessor - Handling unexpected condition for
task: name=NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:BAM_APPLYBQSR:GATK4_APPLYBQSR (VMT_4); work-dir=/expanse/lustre/projects/sdp120/croy/nextflow_development/sarek/nextflow_work/82/eb85eae967671c612eca07f41e240e
error [nextflow.exception.ProcessFailedException]: Error submitting process 'NFCORE_SAREK:SAREK:FASTQ_PREPROCESS_GATK:BAM_APPLYBQSR:GATK4_APPLYBQSR (VMT_4)' for execution
@Thomas Danhorn any suggestions on how to debug this sort of intermittent submission failure?Thomas Danhorn
02/11/2026, 8:40 AM