Mathijs Groeneweg
01/06/2026, 1:36 PM#! /usr/bin/env nextflow
params.SaveLocation = '/processing/allfiles/${params.RunInput}'
process FileCleanupduplex {
fileduplex = file('${filelocduplex}')
input:
val filelocduplex
script:
"""
cp "${filelocduplex}" "${params.SaveLocation}/${params.RunInput}_duplex_${fileduplex}"
"""
}
process FileCleanupsimplex {
filesimplex = file('${filelocsimplex}')
input:
val filelocsimplex
script:
"""
cp "${filelocsimplex}" "${params.SaveLocation}/${params.RunInput}_simplex_${filesimplex}"
"""
}
workflow {
filelocduplex = channel.fromPath('/processing/demux/duplex/*.fastq')
filelocsimplex = channel.fromPath('/processing/demux/simplex/*.fastq')
FileCleanupduplex(filelocduplex, fileduplex)
FileCleanupsimplex(filelocsimplex, fileduplex)
}Nicolas Vannieuwkerke
01/06/2026, 1:47 PMname or stageAs to do that for you (https://www.nextflow.io/docs/latest/reference/process.html#inputs-and-outputs-legacy)Nicolas Vannieuwkerke
01/06/2026, 1:49 PMinput:
path(duplex_fastqs, name: "${params.RunInput}_duplex_*")
should normally do what you want (not 100% sure though since it's been a while)Thomas Danhorn
01/07/2026, 1:31 AM