Write anatomical orientation if available (RFC-4)#335
Draft
melissalinkert wants to merge 2 commits into
Draft
Conversation
Requires local install of https://github.com/melissalinkert/bioformats/commits/rfc-4 @ e31a392.
This should get moved to a 1.0-DEV test later.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #329. This depends upon an open Bio-Formats pull request (ome/bioformats#4454), so is a draft for now. This will also need to make use of the
1.0-DEVversion support and tests added in #330, as RFC-4 support should only be written with--ngff-version 1.0-DEV. I just didn't want to introduce conflicting commits here.As noted in #329, the general idea is that Bio-Formats proper implements most of RFC-4, including the controlled vocabulary therein. This pull request simply consumes axis orientations provided by Bio-Formats. The API defined in Bio-Formats and consumed here should be flexible enough to handle non-anatomical orientations, if that were to be added in a future RFC.
Basic tests make use of
FakeReader, but Analyze, Nifti, MINC, Bruker, Varian, and DICOM are all candidates for testing once we have suitable reference data (see #329 (comment)).I expect the build to fail here due to the need for ome/bioformats#4454. To test locally, check out that Bio-Formats branch, then
mvn clean package install, then./gradlew clean buildon this pull request's branch.