Hi I'm having trouble with this error below(i've ...
# sarek
u
Hi I'm having trouble with this error below(i've run it mutliple times resulting in same error) : Jan-20 220527.329 [Actor Thread 249] ERROR nextflow.extension.OperatorImpl - @unknown nextflow.exception.AbortOperationException: Join mismatch for the following entries: - key=[patient:S1, sample:S1, sex:XY, status:1, n_fastq:64, id:S1] values= - key=[patient:S2, sample:S2, sex:XY, status:1, n_fastq:64, id:S2] values= any suggestions?
t
Those
join 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.
u
Hello, I'm having the same issue (or at least is seems the same), the pipeline works just fine when output alignment is CRAM files, but when I set "save_output_as_bam = true" it fails with that error: Detected join operation duplicate emission on left channel -- offending element: key=[patient:JW_6436, sample:JW_6436, sex:NA, status:0, n_fastq:24, data_type:cram, id:JW_6436, num_intervals:19]; value=/data/piercelab/users/dn898/nextflow_work/65/d38e1ea204511d3a684255e5fa73d3/JW_6436_chrY_1-57227415.recal.bam Attaching the .log since I don't really identify what could be wrong with it. Thanks in advance!
c
I am also experiencing this issue as @User described it (the pipeline seems to run fine with CRAM files but fails with the
save_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:
Copy code
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:
Copy code
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.
After removing the
save_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:
Copy code
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:
Copy code
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?
t
I don't really know -- if the submission to the scheduler is the problem (and has random errors), it seems like it could be an issue with the scheduler, so I would talk to your sysadmins ...
👍 1