add nextflow d30e48d
This commit is contained in:
38
nextflow/tests-v1/tuples.nf
Normal file
38
nextflow/tests-v1/tuples.nf
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env nextflow
|
||||
|
||||
process touch {
|
||||
|
||||
input:
|
||||
tuple val(id), val(fileName)
|
||||
output:
|
||||
tuple val(id), path('file*')
|
||||
|
||||
|
||||
/
|
||||
echo Creating $id
|
||||
touch $fileName
|
||||
/
|
||||
}
|
||||
|
||||
process makeFiles {
|
||||
input:
|
||||
tuple val(id), path('file_x')
|
||||
|
||||
output:
|
||||
tuple val(id), path('*')
|
||||
|
||||
/
|
||||
cp file_x copy_$id
|
||||
touch beta_$id
|
||||
/
|
||||
}
|
||||
|
||||
workflow {
|
||||
|
||||
Channel
|
||||
.from( ['a', 'file1'], ['b','file2'] ) \
|
||||
| touch \
|
||||
| makeFiles \
|
||||
| flatten \
|
||||
| subscribe { println it }
|
||||
}
|
||||
Reference in New Issue
Block a user