Open maxulysse opened 2 months ago
Need to test if this works in the cloud though
We could also emit the files too. The issue with publishing (publishDir
only publishes the archive) can be handled by the new publish syntax (mostly?).
nextflow.preview.output = true
workflow {
TASK()
TASK.out.contents
.map{ it.findAll{ it.name.endsWith(".ext") } }
.set{ ext_files }
publish:
ext_files >> '.'
}
output {
directory 'results'
}
process TASK {
script:
"""
mkdir archive
touch archive/sample{1..3}.{ext,txt}
"""
output:
path("archive") , emit: archive
path("archive/**"), emit: contents
}
Is your feature request related to a problem? Please describe
We only need untar, and we should be able to drop untarfiles and use some channel logic to get the files and not the folder. cc @mahesh-panchal
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response