nipy / nipy/nitransforms

ENH: Upstream load_transforms utility from fMRIPrep

Open
#293 0 comments 0 reactions 0 assignees View on GitHub

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_transforms in fmriprep/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_chain or similar)

Priority

HIGH — fundamental transform infrastructure shared across NiPreps.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.