Hi all! I am trying to propagate the metadata through a process without using them. The problem is that both my input and output contain a tuple within a tuple. This gives the following error: Oct-22 15:18:31.502 [main] DEBUG nextflow.Session - Session aborted -- Cause: Unknown variable 'meta'. I pinpointed the origin to this process, but I’m not sure if this is the best way of handling tuples within tuples or inputs not used in the script. I couldn’t find in the docs similar examples either. This is how my process currently looks like:
process FOO {
debug true
input:
tuple tuple(meta), path(foo)
output:
tuple tuple(meta), val(bar)
script:
// meta not used within the script
.
.
.
}
It shouldn’t be a problem to forward meta to the next process even if it wasn’t used in the script block. Can you share a minimal reproducible example?
Okay I just noticed in the last code snippet of this training section that the meta tuple is declared as val instead of tuple in the input block, so it can be accessed by name within the process:
process ExampleProcess {
input:
tuple val(meta), path(reads)
// ...
It works now with that modification. Thank you for your time!