add nextflow d30e48d
This commit is contained in:
35
nextflow/tests-v1/stage-file.nf
Normal file
35
nextflow/tests-v1/stage-file.nf
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
process foo {
|
||||
input:
|
||||
val n_files
|
||||
|
||||
output:
|
||||
path '*.fastq'
|
||||
|
||||
script:
|
||||
"""
|
||||
for i in `seq 1 ${n_files}`; do
|
||||
touch sample_\${i}.fastq
|
||||
done
|
||||
"""
|
||||
}
|
||||
|
||||
process bar {
|
||||
input:
|
||||
path '*.fastq'
|
||||
|
||||
output:
|
||||
stdout
|
||||
|
||||
script:
|
||||
"""
|
||||
for f in `ls *.fastq`; do
|
||||
echo \$f
|
||||
cat \$f
|
||||
done
|
||||
"""
|
||||
}
|
||||
|
||||
workflow {
|
||||
foo(10) | bar
|
||||
}
|
||||
Reference in New Issue
Block a user