Skip to content

Enhance Allen atlas integration and add RAS orientation alignment#92

Closed
FIrgolitsch wants to merge 1 commit intomainfrom
pr-8-allen-atlas-ras-orientation
Closed

Enhance Allen atlas integration and add RAS orientation alignment#92
FIrgolitsch wants to merge 1 commit intomainfrom
pr-8-allen-atlas-ras-orientation

Conversation

@FIrgolitsch
Copy link
Copy Markdown
Contributor

Summary

Extends the Allen atlas I/O module and adds a full pipeline for aligning reconstructed volumes to RAS orientation with optional atlas registration.

Changes

linumpy/io/allen.py — major additions: atlas downloading, parsing, and registration helper functions for mapping to the Allen Common Coordinate Framework

scripts/linum_align_to_ras.py (~980 lines) — full pipeline:

  • Reads OME-Zarr
  • Estimates main axis
  • Applies 90°-rotation/flip reorientation to RAS+
  • Optionally registers to the Allen atlas
  • Saves result as NIfTI

scripts/linum_download_allen.py — updated with improved download logic

Dependencies

Depends on PR #85 (thread config module) and PR #89 (utils/orientation.py).


Merge order: Merge after PR #85 and PR #89.

Extends linumpy/io/allen.py with atlas downloading, parsing, and
registration helper functions. Adds linum_align_to_ras.py for full
RAS-orientation alignment pipeline with optional Allen atlas registration
support. Updates linum_download_allen.py with improved download logic.
@FIrgolitsch
Copy link
Copy Markdown
Contributor Author

Closing in favour of #101 (recreated with squashed commits as part of the PR split plan refresh).

@FIrgolitsch FIrgolitsch closed this Apr 1, 2026
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.

1 participant