Arthur
05/23/2025, 12:55 AMinput:
tuple val(meta), path(gvcfs)
<...>
script:
def input = gvcfs.collect { it.toString() }
"""
mycommand ${input.join(' ')}
"""
It’s my understanding that the following works fine:
input:
tuple val(meta), path(gvcfs)
<...>
script:
"""
mycommand $input
"""Simon Pearce
05/23/2025, 4:25 AM-i file1 -i file2 -i file3 , but I agree that I don't think it is required in general.
Or for tools that process foo file1 file2 differently to foo file2 file1, they should use AFAIK files.sort{it -> it.toString()}.join(" ") to ensure that the files are sorted (and doesn't use the full path including the work directory, which is what happens if you don't have toString there)
But generally the modules repo has a whole bunch of modules that aren't 100% how they should be doneJames Fellows Yates
05/23/2025, 5:56 AMJames Fellows Yates
05/23/2025, 5:56 AM.sort() thingySimon Pearce
05/23/2025, 6:31 AMJames Fellows Yates
05/23/2025, 7:09 AMSimon Pearce
05/23/2025, 7:35 AMMaxime Garcia
05/23/2025, 7:36 AMJames Fellows Yates
05/23/2025, 7:37 AM