add nextflow d30e48d
This commit is contained in:
35
nextflow/tests/topic-channel.nf
Normal file
35
nextflow/tests/topic-channel.nf
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
process foo {
|
||||
input:
|
||||
val(index)
|
||||
|
||||
output:
|
||||
stdout emit: versions, topic: versions
|
||||
|
||||
script:
|
||||
"""
|
||||
echo 'foo: 0.1.0'
|
||||
"""
|
||||
}
|
||||
|
||||
process bar {
|
||||
input:
|
||||
val(index)
|
||||
|
||||
output:
|
||||
stdout emit: versions, topic: versions
|
||||
|
||||
script:
|
||||
"""
|
||||
echo 'bar: 0.9.0'
|
||||
"""
|
||||
}
|
||||
|
||||
workflow {
|
||||
channel.of( 1..3 ) | foo
|
||||
channel.of( 1..3 ) | bar
|
||||
|
||||
channel.topic('versions')
|
||||
| unique
|
||||
| collectFile(name: 'versions.txt', sort: true, storeDir: '.')
|
||||
}
|
||||
Reference in New Issue
Block a user