Open meowcat opened 3 years ago
not understanding why ls *.fq
is not working for a single file
In the example if only a single input is passed the file is linked into the workspace as .fq
, a hidden file as far as bash is concerned which is not available via *.fq
.
Two issues:
process bar {
echo true
input:
file 'in_*.fq' from unzipped_ch.collect()
"""
cat in_*.fq
"""
}
file 'in_*.fq' from unzipped_ch.collect()
a single file is file_.fq
file 'in_?.fq' from unzipped_ch.collect()
a single file is file_1.fq
(2) is certainly more consistent and obvious for the example
Fixes cases with a single file. Note that this example with
cat
would still work with a single file, butls *.fq
would not. https://github.com/nextflow-io/nextflow/issues/2410