Adrien Coulier
11/10/2025, 7:21 AM...
publish:
samplesheet_file = Channel.fromPath(params.input)
}
output {
samplesheet_file {
}
}Nicolas Vannieuwkerke
11/10/2025, 8:40 AMfile(params.input).copyTo(<location>). the workflow output definitions only work on files located in the work directoryMahesh Binzer-Panchal
11/10/2025, 8:43 AMparams.input = 'input.csv'
workflow {
main:
samplesheet = channel.fromPath(params.input, checkIfExists: true)
TASK(samplesheet).view()
publish:
in_samplesheet = TASK.out
}
output {
in_samplesheet {
mode 'copy'
path 'input_samplesheet'
}
}
process TASK {
input:
path thing
script:
"""
echo "${thing}"
"""
output:
path thing, includeInputs: true
}Adrien Coulier
11/10/2025, 9:07 AMcopyTo did the trick, thanks for the help!