nextflow-io/patterns

Typo for "Process when empty"?

nick-youngblut opened this issue · 2 comments

Current example for process-when-empty:

params.inputs = ''

process foo {
  debug true  
  input:
  val x
  when:
  x ## 'EMPTY'

  script:
  '''
  echo hello
  ''' 
}

workflow {
  reads_ch = params.inputs
    ? Channel.fromPath(params.inputs, checkIfExists:true)
    : Channel.empty()

  reads_ch \
    | ifEmpty { 'EMPTY' } \
    | foo
}

I'm guessing that x ## 'EMPTY' should be x == 'EMPTY'

Yes, definitively. Thanks for reporting it

Fixed by 9d66fbd