Skip to content

Commit

Permalink
Clarify usage of additional options for path qualifier (#3405) [ci skip]
Browse files Browse the repository at this point in the history

Signed-off-by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io>
  • Loading branch information
mribeirodantas committed Dec 6, 2022
1 parent 79afc85 commit 0b70acb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,33 @@ Name Description
``includeInputs`` When ``true`` any input files matching an output file glob pattern are included.
================== =====================

The parenthesis are optional for input and output qualifiers, but when you want to set an additional option and there
is more than one input or output qualifier, you must use parenthesis so that Nextflow knows what qualifier you're
referring to.

One example with a single output qualifier::

process foo {
output:
path 'result.txt', hidden: true

'''
echo 'another new line' >> result.txt
'''
}

Another example with multiple output qualifiers::

process foo {
output:
tuple path('last_result.txt'), path('result.txt', hidden: true)

'''
echo 'another new line' >> result.txt
echo 'another new line' > last_result.txt
'''
}


Multiple output files
---------------------
Expand Down

0 comments on commit 0b70acb

Please sign in to comment.