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

FIX: Feed *NiTransforms* with LTAs of type RAS2RAS #2444

Merged
merged 2 commits into from
Jul 16, 2021

Conversation

oesteban
Copy link
Member

As reported by @eburkevt back on October 18, 2020, resampled BOLD time-series in standard spaces do not look good anymore.
This PR uses FreeSurfer to cater RAS2RAS transforms to NiTransforms.
This may resolve the problem for fMRIPrep regardless of the resolution of nipy/nitransforms#125

Addresses: #2307.

@oesteban oesteban requested a review from effigies July 15, 2021 13:50
@oesteban oesteban marked this pull request as ready for review July 15, 2021 14:12
@oesteban
Copy link
Member Author

The patch does seem to fix the issue locally (using docker, nipreps/fmriprep:20.1.3 and patching in the development sources).

@oesteban oesteban linked an issue Jul 15, 2021 that may be closed by this pull request
@effigies
Copy link
Member

Will look in the afternoon EDT.

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Okay, I think this mostly looks good, except we need to not run mri_coreg when bold2t1w_init == "header". I think I've made the suggestions needed to make that work.

fmriprep/workflows/bold/registration.py Outdated Show resolved Hide resolved
fmriprep/workflows/bold/registration.py Outdated Show resolved Hide resolved
fmriprep/workflows/bold/registration.py Show resolved Hide resolved
fmriprep/workflows/bold/registration.py Outdated Show resolved Hide resolved
oesteban and others added 2 commits July 16, 2021 09:55
As reported by @eburkevt back in October 18, 2020, resampled BOLD time-series in standard spaces do not look good anymore.
This PR uses FreeSurfer to cater RAS2RAS transforms to *NiTransforms*.
This may resolved the problem for *fMRIPrep* regardless of the resolution of nipy/nitransforms#125

Addresses: #2307.
wq
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
@oesteban
Copy link
Member Author

Worked locally on the reported subject, and CircleCI artifacts look good (screened the report for ds054 and ds210, and screened the boldrefs of each on MNI space). Rushing in the merge.

@oesteban oesteban merged commit 14a461d into maint/20.1.x Jul 16, 2021
@oesteban oesteban deleted the fix/std-space-resampling branch July 16, 2021 09:12
oesteban added a commit to nipy/nitransforms that referenced this pull request Jul 19, 2021
The structarray was used directly and the extra axis actually changed
the order of operations when the direction cosines were scaled by the
voxel sizes.

A new test case has been added for which this error was apparent.
This bug caused nipreps/fmriprep#2307, nipreps/fmriprep#2393, and
nipreps/fmriprep#2410.
nipreps/fmriprep#2444 just works around the problem by using
``lta_convert`` instead of *NiTransforms*.
The ``lta_convert`` tool can be now dropped.

Resolves: #125
mgxd added a commit to mgxd/nibabies that referenced this pull request Jul 19, 2021
oesteban added a commit to nipy/nitransforms that referenced this pull request Jul 21, 2021
The new LTA file and the matrix hard-coded on the test come from an
issue discovered in *fMRIPrep* (see nipreps/fmriprep#2444).

This test currently breaks master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants