Skip to content

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.

@oesteban oesteban force-pushed the fix/std-space-resampling branch from 2b72490 to b773bab Compare July 15, 2021 16:16
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.

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 <[email protected]>
@oesteban oesteban force-pushed the fix/std-space-resampling branch from 886bb32 to 1dc0c7f Compare July 16, 2021 07:55
@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

Development

Successfully merging this pull request may close these issues.

Failed Normalization of BOLD Failed normalization of BOLD into MNI space Failed resampling of BOLD into MNI space - starting with v20.1.1

2 participants