You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assets/docs/latest/_sources/process.rst.txt
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -632,6 +632,9 @@ with the current execution context.
632
632
own directory, and input files are automatically staged into this directory by Nextflow.
633
633
This behavior guarantees that input files with the same name won't overwrite each other.
634
634
635
+
An example of when you may have to deal with that is when you have many input files in a task,
636
+
and some of these files may have the same filename. In this case, a solution would be to use
637
+
the option ``stageAs``.
635
638
636
639
Input type ``env``
637
640
------------------
@@ -1092,6 +1095,11 @@ on the actual value of the ``species`` input.
1092
1095
Also, metadata can be associated with outputs by using the :ref:`tuple output <process-out-tuple>` qualifier, instead of
1093
1096
including them in the output file name.
1094
1097
1098
+
One example in which you'd need to manage the naming of output files is when you use the ``publishDir`` directive
1099
+
to have output files also in a specific path of your choice. If two tasks have the same filename for their output and you want them
1100
+
to be in the same path specified by ``publishDir``, the last task to finish will overwrite the output of the task that finished before.
1101
+
You can dynamically change that by adding the ``saveAs`` option to your ``publishDir`` directive.
1102
+
1095
1103
To sum up, the use of output files with static names over dynamic ones is preferable whenever possible,
1096
1104
because it will result in simpler and more portable code.
1097
1105
@@ -1974,7 +1982,7 @@ saveAs A closure which, given the name of the file being published, ret
1974
1982
enabled Enable or disable the publish rule depending on the boolean value specified (default: ``true``).
1975
1983
failOnError When ``true`` abort the execution if some file can't be published to the specified target directory or bucket for any cause (default: ``false``)
1976
1984
contentType Allow specifying the media content type of the published file a.k.a. `MIME type <https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_Types>`_. If the boolean value ``true`` is specified the content type is inferred from the file extension (EXPERIMENTAL. Currently only supported by files stored on AWS S3. Default: ``false``, requires `22.10.0`` or later).
1977
-
tags Allow the association of arbitrary tags with the published file e.g. ``tag: [FOO: 'Hello world']`` (EXPERIMENTAL. Currently only supported by files stored on AWS S3. Requires version ``21.12.0-edge`` or later).
1985
+
tags Allow the association of arbitrary tags with the published file e.g. ``tags: [FOO: 'Hello world']`` (EXPERIMENTAL. Currently only supported by files stored on AWS S3. Requires version ``21.12.0-edge`` or later).
0 commit comments