-
Notifications
You must be signed in to change notification settings - Fork 296
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
Susceptibility distortion correction introduces distortion #3013
Comments
This result is with SyN-SDC? |
I didn't flag SyN-SDC and used the fieldmap-based correction (default) |
I see. The |
Dear Chris, thanks for your help! We use a double-echo gradient echo field map sequence. Fieldmap: Functional: What might be important information: We run both a single- (Siemens sequence) and a multi-band sequence (CMRR) in the same study. Only the multi-band sequence looks off after the preprocessing. sub-ZI004_ses-01_run-01_phasediff.txt |
Brief supplement: Also shutting off the slice time correction resulted in the same distored preprocessing |
We have seen the same, however, with the latest version (23.1.#) it works well if you skull-strip / brain-extract the phasediff images before running fmriprep (use the magnitude image to compute the mask, e.g. with synthstrip) |
Just as an additional update: |
I have the same issue (probably using the same settings as @ChristianNSchmitz, I did not acquire the dataset though) with |
I have a very similar problem with the (almost) newest version (23.1.2; and older ones as well). I'm using the approach with fieldmaps estimated using two SBRef images with opposing orientations (AP PA). Running Original image (raw functional run) fmriprep was run using the following command: All images (both fieldmaps and BOLD file) had LAS orientation. Like in @ChristianNSchmitz 's case, the BOLD was collected using a CMRR multiband sequence. |
From discussion with @oesteban, the issue here is not the distortion correction but the Jacobian attenuation. These stretches outside the brain also happen with TOPUP (in the most recent post you can clearly see the shape of these stretches in both TOPUP and fMRIPrep), but are scaled by the Jacobian of the B-spline field. Tracking this feature in nipreps/sdcflows#382. |
I have encountered a similar problem in my dataset and I was wondering whether it might be possible to introduce already distortion corrected images into the fmriprep pipeline and use the tag --ignore fieldmap? Would this be a feasible approach? |
@marcelzwiers could you please further details how you do the skullstripping, I'd like to give this a try. |
Sure, the basic idea is to compute the mask on the fieldmap magnitude image and apply that mask to the phasediff images in the fieldmap folder (overwriting the original phasediff data, so you may want to make a backup). In bidscoin this can be done with a single command, e.g.: skullstrip myproject/bids fmap/*_magnitude1* -m fmap/*_phasediff -o extra_data fmap This save a masked |
@themeo Would you mind sharing the exact |
Sure! Nothing fancy here, though:
I'd be happy to share specific data files if needed. |
Thank you very much. That was helpful for debugging. I have a working fix in nipreps/sdcflows#391. |
Thanks Chris! It solved my long-standing issue with SDC, but I encountered some problems running it. I tried to manually edit transform.py based on your solution with singularity --sandbox and rebuilding the singularity image. I did it on v23.1.4 and "fmriprep:next" versions.
I know it is still in the development phase but I wondered if I could try to have things run since I'm facing a deadline ahead. |
Let me see if I can backport these fixes without too much difficulty. I'm not sure how much the current fixes depend on larger changes we've made. |
Please see nipreps/sdcflows#397 and nipreps/sdcflows#398. Tests from users experiencing the problems with blip-up/blip-down (nipreps/sdcflows#397) and phasediff/fieldmaps (nipreps/sdcflows#398) would be greatly appreciated. Instructions for testing with |
Hi all, thank you for all of the helpful information in this thread. Following up here from #3093--it looks like the fix in nipreps/sdcflows#391 addresses the issue of abnormal distortions around the outlines of the image. However, we are also seeing strange distortions inside the corrected images for multiband=6, multi-echo=4 images, even when distortions around the outlines have been avoided: In this case, using fieldmap-free distortion correction in fmriprep 23.1.4 similarly resolves the issues around the outlines of the image, but we still see this abnormal pattern inside. I wanted to follow up to see if others have thoughts about addressing this pattern? Thank you!
|
Hi @effigies , I wonder if the fix for this will be implemented in next release before end of the year? |
This fix is available in 23.2.0a1. Please test and let us know how it goes! |
Hi all, wanted to follow up now that we have tested the latest pre-release. In the previous version of fmriprep, fieldmap-free distortion correction looked pretty good for most sequences, but we have noticed now that use of the synthetic fieldmap in the latest version looks a bit odd. Here are screenshots from the same subject & sequence I posted about in #3093. I just wanted to flag this and note that we’re seeing this difference: |
Please follow-up in #3158. |
What happened?
Dear community,
we are using FMRIPREP for the preprocessing of task-based fMRI data. Apparently, the brain mask is not very accurate and the fMRI data is even more distorted after the susceptibility distortion correction (see image attached).
Thank you very much for your help!
What command did you use?
What version of fMRIPrep are you running?
23.0.2
How are you running fMRIPrep?
Docker
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
No response
Additional information / screenshots
The text was updated successfully, but these errors were encountered: