Hello!
I have a module in my workflow which parses upstream results for each sample.
workflow test{
PARSE(
TBLG.out.txt,
KRAKEN2_KRAKEN2.out.report,
QUALIMAP_BAMQC.out.results,
)
}
The inputs for this module are channels with meta() and then the result. The meta() should actually be the same for all three inputs, because each run is on one sample.
input:
tuple val(meta), path(tblg)
tuple val(meta2), path(kraken)
tuple val(meta3), path(bamqc)
However, when I run this, I get the results from samples mixed up. It will be the tblg result from sample1, and the kraken from sample2, which is not ideal. I don’t know why this happens.
I tried:
input:
tuple val(meta), path(tblg)
tuple val(meta), path(kraken)
tuple val(meta), path(bamqc)
But this doesn’t seem to work, either.
Would the solution be to join the channels? Ex:
input:
tuple val(meta), path(tblg), path(kraken), path(bamqc)
Any insight into what’s going on will be much appreciated!