Open berguner opened 1 year ago
FWIW: I've noticed this behavior too using nextflow version 22.10.8 and have noticed that it happens sporadically. I've attempted to create a minimal reproducible example but have not succeeded in reproducing the behavior in a simple example nextflow script.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For me what closed this is that one of the tuples was a nextflow.taskpath variable while the other was a java.string. What caused this is I had an upstream process where the tuple key was the same as its path:
output: tuple val(sample_id), path("${sample_id}")
So I think it's worth trying to look if they are the same type of tuple with
def classOfElements = YOURPROCESS_HERE.out.collect { list -> list.collect { it.class } } classOfElements.view().each { list -> list.each { println it } }
and then seeing if you have something similar going on than I had
@sbthandras are you saying the path element in that output tuple was a TaskPath? I wouldn't expect that based on how the task processor works, but if true it should probably be unwrapped under the hood
Bug report
Expected behavior and actual behavior
Sometimes join function fails matching entries with same key values. Tricky bit is that this happens most of the time but not always.
Steps to reproduce the problem
You can checkout this commit and run the test command:
nextflow run main.nf -profile test,tools_mutect2_ms,docker
Program output
Complete log file: nextflow-join-bug.log
Error message:
Environment
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)