ENH: Upstream load_transforms utility from fMRIPrep
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 35
- Forks
- 18
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 1
Description
Summary
fMRIPrep contains a transform loading utility in fmriprep/utils/transforms.py that is a general-purpose convenience loader for NiTransforms.
load_transforms
Loads a series of transform files (supporting .h5 and linear formats) as a NiTransforms TransformChain, with optional inversion. Returns identity if the list is empty.
Code to upstream
load_transformsinfmriprep/utils/transforms.py
Rationale
- Universal transform loading utility needed by any tool that uses NiTransforms for one-shot resampling
- dMRIPrep would immediately benefit from the same utility
- This is a natural fit for NiTransforms as a convenience loader (
nitransforms.io.load_chainor similar)
Priority
HIGH — fundamental transform infrastructure shared across NiPreps.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading load_transforms in fmriprep/utils/transforms.py and the existing NiTransforms I/O API, including the proposed nitransforms.io.load_chain location. The work is done when NiTransforms provides a general-purpose loader supporting .h5 and linear transforms, optional inversion, and an identity result for an empty list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100