Files
ma/nextflow/tests/topic-channel.nf
2026-04-29 23:01:54 +02:00

36 lines
441 B
Plaintext

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: '.')
}