Thiseas C. Lamnidis
09/16/2026, 12:05 PMoutput:
my_data_package/
file1
file2
So that the channel output is not simply:
channel1 = [file1]
channel2 = [file2]
but
channel1 = [ [id:"my_data_package"], file1]
channel2 = [ [id:"my_data_package"], file2]Nicolas Vannieuwkerke
09/16/2026, 12:14 PMfile(<path-to-remote-file>).parent.nameThiseas C. Lamnidis
09/16/2026, 12:16 PMfile(<path-to-remote-file>).parent.name still work when multiple files go into each channel tho?
i.e. there’s multiple files being downloaded that would end up in the same output channel because they share a file extensionThiseas C. Lamnidis
09/16/2026, 12:17 PMNicolas Vannieuwkerke
09/16/2026, 12:20 PMout_channel.map { files -> [ [ id: files[0].parent.name ], files ]Thiseas C. Lamnidis
09/16/2026, 12:22 PMGive each file type its own `emit`entry, usually one per format.
Thiseas C. Lamnidis
09/16/2026, 12:27 PM.map outside the module, It’s just a bit unsatisfyingNicolas Vannieuwkerke
09/16/2026, 12:46 PMNicolas Vannieuwkerke
09/16/2026, 12:46 PMThiseas C. Lamnidis
09/16/2026, 12:55 PMNicolas Vannieuwkerke
09/16/2026, 12:56 PMThiseas C. Lamnidis
09/16/2026, 12:57 PMNicolas Vannieuwkerke
09/16/2026, 2:01 PMMahesh Binzer-Panchal
09/16/2026, 2:16 PMenv, and then transform that into a metamap