-
Notifications
You must be signed in to change notification settings - Fork 295
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
Conversation
The patch does seem to fix the issue locally (using docker, nipreps/fmriprep:20.1.3 and patching in the development sources). |
Will look in the afternoon EDT. |
2b72490
to
b773bab
Compare
There was a problem hiding this 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.
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>
886bb32
to
1dc0c7f
Compare
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. |
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
Porting over fix originally implemented in nipreps/fmriprep#2444
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.
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.