-
Notifications
You must be signed in to change notification settings - Fork 2
Add optional publishDir for bioformats2ometiff converted images #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: adamjtaylor <[email protected]>
There was a problem hiding this 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_ometiffboolean 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.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: adamjtaylor <[email protected]>
| "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" | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aditigopalan
left a comment
There was a problem hiding this 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
Co-authored-by: adamjtaylor <[email protected]>
|
Thanks @aditigopalan. Issue made re pinning java version |
Implementation Plan for Optional OME-TIFF Saving
save_ometiffparameter to main.nf (default: false)publishDirdirective to bioformats2ometiff.nf module with conditional publishingOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.