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

output in native/original space #1376

Closed
a3sha2 opened this issue Nov 9, 2018 · 5 comments · Fixed by #1646
Closed

output in native/original space #1376

a3sha2 opened this issue Nov 9, 2018 · 5 comments · Fixed by #1646
Labels
derivatives effort: medium Estimated medium effort task impact: high Estimated high impact task
Milestone

Comments

@a3sha2
Copy link
Member

a3sha2 commented Nov 9, 2018

is there anyway to specify EPI output in native/orig space?

@a3sha2 a3sha2 changed the title output_space in native/original space output in native/original space Nov 9, 2018
@effigies
Copy link
Member

effigies commented Nov 9, 2018

You mean corrected to each BOLD series' reference BOLD image, rather than aligned to the T1w image? Or would they be aligned to some subject-level mean BOLD?

@a3sha2
Copy link
Member Author

a3sha2 commented Nov 9, 2018

yes, exactly

@effigies
Copy link
Member

effigies commented Nov 9, 2018

We don't currently support that, but it shouldn't be too hard to enable. Do you have any interest in submitting a pull request? We can orient you to the code and guide you through the process.

@chrisgorgo
Copy link
Contributor

I would love to learn more about the motivation for such a feature.

@jooh
Copy link

jooh commented Mar 7, 2019

@chrisfilo the main motivation would be reuse of ROIs that are provided with BIDS-format datasets. It is fairly common to save ROI masks in native EPI space. That's what you see in e.g. ds000232 and ds001246.

This follows from the standard SPM pipeline, where coregistration is conventionally done by updating the affine in the header, and then only applied to the image data during normalisation to the MNI template. So if you use SPM-derived routines like this one to construct ROIs you will end up with EPI-space ROI files, if your SPM model ran without normalisation.

Also, perhaps I'm a masochist but I actually like drawing my functional ROIs with native-EPI activations overlaid on the mean EPI so I can see what the image intensities look like... If you do this in fslview or mrTools you will end up with native EPI ROI masks.

It's not difficult to reslice the ROI mask, but you won't get the exact same voxels due to interpolation. And this seems an unnecessary imprecision.

Finally to clarify, @effigies, I don't know that you'd want these outputs aligned only to subject-mean BOLD. I think you would want to reproduce SPM behaviour, so the image data remains in EPI native space but have the updated header affine that brings them in registration with the native T1. This way you can still overlay anatomicals and functionals in sensible viewers (ie not fslview).

@oesteban oesteban added impact: high Estimated high impact task effort: medium Estimated medium effort task labels Mar 16, 2019
oesteban added a commit to oesteban/fmriprep that referenced this issue May 21, 2019
This PR enables writing data resampled after STC-HMC-SDC in their
original BOLD grid.

Closes nipreps#1376.
@oesteban oesteban added this to the 1.4.1 milestone May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
derivatives effort: medium Estimated medium effort task impact: high Estimated high impact task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants