Adam Talbot
09/19/2025, 9:57 AMinput:
tuple val(meta), path(reads)
path adapter_fasta
ch_input
.multiMap { meta, fastq, adapters ->
fastq: tuple(meta, fastp)
adapters: tuple(meta, adapters)
}Jonathan Manning
09/19/2025, 10:01 AMMatthias De Smet
09/19/2025, 10:04 AMAdam Talbot
09/19/2025, 10:26 AMAdam Talbot
09/19/2025, 10:26 AMAdam Talbot
09/19/2025, 10:26 AMMatthias De Smet
09/19/2025, 10:27 AMMaxime Garcia
09/19/2025, 10:27 AMAdam Talbot
09/19/2025, 10:28 AMAdam Talbot
09/19/2025, 11:54 AMMatthias De Smet
09/19/2025, 11:55 AMMaxime Garcia
09/19/2025, 11:58 AMMaxime Garcia
09/19/2025, 11:58 AMMatthias De Smet
09/19/2025, 11:59 AMMaxime Garcia
09/19/2025, 12:04 PMMatthias De Smet
09/19/2025, 12:05 PMMatthias De Smet
09/19/2025, 12:05 PMMaxime Garcia
09/19/2025, 12:07 PMMatthias De Smet
09/19/2025, 12:07 PMMatthias De Smet
09/19/2025, 12:09 PMMatthias De Smet
09/19/2025, 12:10 PMMaxime Garcia
09/19/2025, 12:15 PMAdam Talbot
09/19/2025, 12:16 PMMatthias De Smet
09/19/2025, 12:16 PMAdam Talbot
09/19/2025, 12:16 PMAdam Talbot
09/19/2025, 12:16 PMAdam Talbot
09/19/2025, 12:16 PMMatthias De Smet
09/19/2025, 12:19 PMMatthias De Smet
09/19/2025, 12:19 PMMatthias De Smet
09/19/2025, 12:20 PMsamtools, which I suspect will break some stuff in the future if people don’t read the manualAdam Talbot
09/19/2025, 12:21 PM[ meta, fastq, adapters ] . This is the only clean way of making it work.Matthias De Smet
09/19/2025, 12:22 PMAdam Talbot
09/19/2025, 12:26 PMMatthias De Smet
09/19/2025, 12:27 PMNicolas Vannieuwkerke
09/19/2025, 12:34 PMAdam Talbot
09/19/2025, 1:57 PMMaxime Garcia
09/19/2025, 2:06 PMAdam Talbot
09/22/2025, 9:02 AMMaxime Garcia
09/22/2025, 11:43 AMPieter Moris
12/03/2025, 4:45 PMERROR ~ No such variable: task errors after trying ch_samplesheet._map_ { _meta_, _reads_ -> _tuple_(meta, reads, params.fastp_adapter_fasta)}, as my new input. Perhaps I'm better off switching back to the older version for now.Pieter Moris
12/03/2025, 5:10 PMch_adapter_fasta = params.fastp_adapter_fasta ? channel.fromPath(params.fastp_adapter_fasta, checkIfExists: true).collect() : []
FASTP (
ch_samplesheet.map { meta, reads -> tuple(meta, reads, ch_adapter_fasta)},Maxime Garcia
12/04/2025, 9:41 AMAdam Talbot
12/15/2025, 12:55 PMAre there any suggestions / examples of how to update code using the previous version that had a single adapter file?The subworkflows in the PR should be updated? Again, I'll include a migration guide in the PR.
Out of interest, is there an example somewhere of how you are providing unique adapters per samples too? I'm guessing you'd add these as a column in the samplesheet?Let's add this in broad strokes to the examples as well.
related question: why don't the docs (https://nf-co.re/modules/fastp/) indicate that the first 3 inputs should be combined into a tuple?Ehhhh not sure why this isn't correct, the meta.yml was updated...bug?
Pieter Moris
12/15/2025, 2:48 PMA lesson for all of us, I will update the description retrospectively so future users catch it.It's a tough balance to strike I think. I wasn't sure if my confusion was due to my unfamiliarity with some of the workings of nf-core (or a foggy brain) or not. But if you have the time, a migration guide just might help someone else in the future!
Ehhhh not sure why this isn't correct, the meta.yml was updated...bug?I've noticed some oddities in module docs like this in other places too. Again, I wasn't sure if it was just me missing something, but it feels like sometimes parameters are split out into separate inputs, even though they are supplied as tuples?
Adam Talbot
12/15/2025, 3:10 PMPieter Moris
12/17/2025, 1:13 PM