Skip to content

Commit 12c189a

Browse files
authored
Merge pull request #138 from haniffalab/137-leftover-tif-files-in-the-output-folder
add params.publish_generated_img
2 parents 209db43 + 26f33ca commit 12c189a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ params.outdir = ""
1616
params.args = [:]
1717
params.projects = []
1818
params.write_spatialdata = false
19+
params.publish_generated_img = false
1920

2021
params.vitessce_options = [:]
2122
params.layout = "minimal"
@@ -250,7 +251,7 @@ process Generate_image {
250251
tag "${stem}, ${img_type}, ${file_path}"
251252
debug verbose_log
252253

253-
publishDir outdir_with_version, mode: "copy"
254+
publishDir outdir_with_version, mode: "copy", enabled: params.publish_generated_img
254255

255256
input:
256257
tuple val(stem), val(prefix), val(img_type), path(file_path), val(file_type), path(ref_img), val(args)

sphinx/configuration.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ The more detailed list of parameters is as follows:
133133
* - ``outdir``
134134
- the path to the directory to which output files will be written.
135135
* - ``write_spatialdata``
136-
- ``true`` or ``false``, if processed datasets should also get each written to `SpatialData <https://spatialdata.scverse.org/en/latest/index.html>`_
136+
- ``true`` or ``false``, if processed datasets should also get each written to `SpatialData <https://spatialdata.scverse.org/en/latest/index.html>`_ . Defaults to ``false``.
137+
* - ``publish_generated_img``
138+
- ``true`` or ``false``, if the pipeline should publish generated images' ``.tif`` files to the output directory. Defaults to ``false``.
137139
* - ``args``
138140
- a map of optional arguments per data type for the scripts that process them.
139141

0 commit comments

Comments
 (0)