Ben Sherman
10/16/2026, 2:41 PMch_samples.map { r ->
BWA_MEM(
id: r.id,
reads: r.reads,
bwa_index: r.reference,
args: "--my-arg",
args2: r.single_end ? "--single-end" : ""
)
}
In fact, I considered this approach for 26.04, but ultimately dropped it out of concern that it would "obscure" the process calls in the workflow logic. Most people think of nextflow as "processes connected by channels", and this approach kinda inverts that mental model
But I think Jim is correct that this is likely the "cleanest" way to deal with naming conventions and adapter logic
What do you think about this at a glance? I don't think it's a blocker for migration, but it is one of those "nextflow features" we could add to ease the pain. Just some food for thoughtMatthias De Smet
10/16/2026, 2:42 PMJim Downie
10/16/2026, 2:45 PMNicolas Vannieuwkerke
10/16/2026, 2:46 PMMahesh Binzer-Panchal
10/16/2026, 2:46 PMmap would then also include any input change operations too which would keep it togetherJim Downie
10/16/2026, 2:50 PM⢠you get access to the input channel and the output channel /in the same context/. So you can join them together and do what you like without having to finagle a join later using metadata.And because of this, I think it might also reduce the necessity of a
meta object and allow easier use of flat records