Skip to content

Conversation

Copy link

Copilot AI commented Jan 15, 2026

Implementation Plan for Optional OME-TIFF Saving

  • Explore repository structure and understand codebase
  • Add save_ometiff parameter to main.nf (default: false)
  • Add publishDir directive to bioformats2ometiff.nf module with conditional publishing
  • Update nextflow_schema.json to include the new parameter
  • Update README.md documentation with the new option
  • Validate JSON schema syntax
  • Run code review and security checks
  • Address review feedback: Move publishDir after output block for consistency
  • Revert schema typo fix to avoid conflict with PR Fix broken schema references preventing Seqera Platform launch #30 (typo will be fixed there)
Original prompt

This section details on the original issue you should resolve

<issue_title>Optionally save converted images</issue_title>
<issue_description>Currently the bioformats2ometiff process does not have a publishDir so these intermediates are lost. We should add a publishDir that publishes to a appropriate subdirectory of thje specfied optput folder (maybe ometiff) and have publishing here optional and controlled by a parameter like --save_ometiff</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@adamjtaylor adamjtaylor marked this pull request as ready for review January 15, 2026 15:44
Copilot AI changed the title [WIP] Add optional save for converted images in bioformats2ometiff Add optional publishDir for bioformats2ometiff converted images Jan 15, 2026
Copilot AI requested a review from adamjtaylor January 15, 2026 15:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an optional parameter to save converted OME-TIFF files from the bioformats2ometiff process. Currently, these intermediate files are not published and are lost after the pipeline completes. The new --save_ometiff parameter (default: false) allows users to optionally save these files to an ometiff subdirectory within each sample's output directory.

Changes:

  • Added save_ometiff boolean parameter to control publishing of converted OME-TIFF files
  • Configured publishDir directive in bioformats2ometiff module with conditional publishing
  • Updated documentation to reflect the new optional output directory structure

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
main.nf Added save_ometiff parameter with default value of false
modules/bioformats2ometiff.nf Added conditional publishDir directive to optionally save OME-TIFF files
nextflow_schema.json Added save_ometiff parameter definition and fixed schema reference from non-existent "parameters" to "input_output_options"
README.md Documented the new optional ometiff output directory and the save_ometiff parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI requested a review from adamjtaylor January 15, 2026 16:03
@adamjtaylor adamjtaylor requested review from aditigopalan and removed request for thomasyu888 January 15, 2026 16:05
Comment on lines 28 to 70
"miniatue_options": {
"miniature_options": {
"title": "Miniature options",
"type": "object",
"fa_icon": "fas fa-palette",
"description": "Define HTAN Artist pipeline parameters.",
"properties": {
"remove_bg": {
"type": "boolean",
"description": "Remove non-tissue background",
"default": true
},
"level": {
"type": "integer",
"description": "The pyramid level used in thumbnauls, Default: -1 (smallest)",
"default": -1
},
"dimred": {
"type": "string",
"description": "The dimensionality reduction method used",
"default": "umap",
"enum": ["umap", "tsne", "pca"]
},
"colormap": {
"type": "string",
"description": "The colormap used. Ensure colormap is compatiable with `n_components` selected ",
"enum": ["UCIE", "LAB", "RGB", "BREMM", "SCHUMANN", "STEIGER", "TEULING2", "ZIEGLER","CUBEDIAGONAL"],
"default": "UCIE"
},
"n_components": {
"type": "integer",
"description": "",
"default": 3,
"enum": [2,3]
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/parameters"
"$ref": "#/definitions/input_output_options"
},
{
"$ref": "#/definitions/miniature_options"
}
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot revert these changees as the conflict with PR #30

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the typo fix changes to avoid conflict with PR #30. The schema now retains "miniatue_options" spelling while keeping the save_ometiff parameter addition. Changes in commit 343b299.

Copy link
Collaborator

@aditigopalan aditigopalan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm pending: can we pin the java version in .docker/Dockerfile.devenv

FROM openjdk:17-slim

@adamjtaylor
Copy link
Collaborator

Thanks @aditigopalan. Issue made re pinning java version

@adamjtaylor adamjtaylor merged commit fedab89 into main Jan 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optionally save converted images

3 participants