Use the ifEmpty operator to emit a marker value to trigger the execution of the process.
process foo {
input:
val x from ch.ifEmpty { 'EMPTY' }
when:
x == 'EMPTY'
script:
'''
your_command
'''
}
Use the ifEmpty operator to emit a marker value to trigger the execution of the process.
process foo {
input:
val x from ch.ifEmpty { 'EMPTY' }
when:
x == 'EMPTY'
script:
'''
your_command
'''
}