Skip to content
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

Update ReadMe and Change Log #73

Merged
merged 10 commits into from
Jun 7, 2024
Merged

Update ReadMe and Change Log #73

merged 10 commits into from
Jun 7, 2024

Conversation

dgault
Copy link
Member

@dgault dgault commented Dec 14, 2023

I have updated the ReadMe to remove the outdated TODO section and add documentation for the new reader options. I have also added a link to the release on artifactory

The change log has also been updated to included missing entries from previous releases

Fixes #72

Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@will-moore
Copy link
Member

I remember it was mentioned that we should highlight the one change in behaviour that users might notice: labels are not now considered as separate images. I guess this maybe falls into docs rather than changelog (along with the new bfoptions documentation)?

@dgault
Copy link
Member Author

dgault commented Dec 15, 2023

Yeah, that is a good point. I have added some additional description for that particular setting to note the change in behaviour

@will-moore
Copy link
Member

Am I right in thinking that the way ZarrReader looks for .bfoptions is different from other readers?
ZarrReader looks for file.zarr.bfoptions as a sibling beside the file.zarr directory, whereas other readers look for e.g. file.tiff.bfoptions beside the file that is passed to setId.
I don't know if that distinction should be made in this repo docs or at https://bio-formats.readthedocs.io/en/latest/formats/options.html#usage

Looking at that page, I don't see that either of these methods is mentioned for specifying bfoptions?

@dgault
Copy link
Member Author

dgault commented Jan 9, 2024

Yeah, that is a good point, I will update the readme to include some details on the bfoptions file usage

CHANGELOG.md Outdated Show resolved Hide resolved
@dgault dgault requested a review from will-moore June 6, 2024 12:16
README.md Outdated
| --- | --- | --- |
| `omezarr.quick_read` | false | Improves the read performance by limiting the number of files that are parsed. This assumes that the shape and resolution count of all images in a plate remains constant |
| `omezarr.save_annotations` | false | Determines if all the Zarr JSON metadata should be stored as XML annotations in the OME Model |
| `omezarr.list_pixels` | false | Used to decide if getUsedFiles should list all of the pixel chunks |
Copy link
Member

Choose a reason for hiding this comment

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

I thought the default value for list_pixels was true since that's what you get when you import a zarr (with no bfoptions). Then we set it to false with bfoptions for IDR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah thats correct, good catch, updated in the latest commits.

README.md Outdated

The OMEZarrReader has a number of reader specific options in version 0.4.0 which can be used to customise the reader behaviour. This options can be used in the same manner as the reader options for Bio-Formats outlined [here](https://bio-formats.readthedocs.io/en/latest/formats/options.html#usage).

The new default behaviour of the `omezarr.include_labels` option introduced in v0.4.0 represents a change in behaviour from the v0.3 releases. Previously any Zarr arrays found in the labels folder would by default be represented as an additional image series. With the current default settings, Zarr arrays in the labels folder will no longer be included in the list of image series. Changing this setting to `true` will revert to the previous behaviour.
Copy link
Member

Choose a reason for hiding this comment

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

If a user has previously imported images with labels using older ZarrReader, I guess that the images will break once they update ZarrReader?
This is probably quite uncommon - maybe we help users deal with this on a case-by-case basis, but maybe a warning of this could help?
I think the fix will involve adding bfoptions to the Fileset as I did at IDR/idr-metadata#684 (comment) - which is a bit painful psql etc. Any other options to workaround this issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, certainly in the OMERO case, if files had been imported with and older version then they would either need to reimport or use the bfoptions. Realistically I don't know of anyone other than IDR that would have been impacted here, but if needs be we could assist with psql for adding bfoptions to the fileset. I have added an extra warning for this scanrio.

README.md Outdated

The new default behaviour of the `omezarr.include_labels` option introduced in v0.4.0 represents a change in behaviour from the v0.3 releases. Previously any Zarr arrays found in the labels folder would by default be represented as an additional image series. With the current default settings, Zarr arrays in the labels folder will no longer be included in the list of image series. Changing this setting to `true` will revert to the previous behaviour.

**Note:** If you had imported data with labels using version v0.3 or earlier then you will need to ensure that the `omezarr.include_labels` option is set to true. You can do this either via the API or by adding a `bfoptions` file to the fileset. In the case of OMERO this will require running psql commands to update the database to include the new `bfoptions` file.
Copy link
Member

Choose a reason for hiding this comment

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

Agreed that I think this is edge-case and don't expect anyone to need this but...

Is there any option to do this via the API when in OMERO? This paragraph is only about OMERO, right?
Maybe start with "If you had imported data with labels into OMERO....
Then you wouldn't need "In the case of OMERO..."?
Also I wonder if you should say "Please contact us on image.sc...." or something like that, otherwise it reads as if a user should know what psql commands to run.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah the API would not be for OMERO, I will make that paragraph OMERO specific and add the image.sc reference

@dgault dgault requested a review from will-moore June 7, 2024 10:33
Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

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

Looks great, thanks

@dgault dgault merged commit 750b7ce into ome:main Jun 7, 2024
11 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.

OMEZarrReader.jar download link to artifactory
3 participants