-
Notifications
You must be signed in to change notification settings - Fork 297
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
Reference brainmask failing for highly intensity nonuniform bold data #1000
Comments
Thanks for reporting. The challenge of this problem is that we need a solution that would work well of a diverse set of datasets (or a command line option to use an alternative method such as bet for edge cases). It would be great if you could help us by:
|
@chrisfilo Here's the link of one participant's report. https://drive.google.com/file/d/1NiHf1sUeyj1P7-IvoS2l9T4gj8Q1n87g/view?usp=sharing Also I upload one example participant's data on OpenNeuro.org. https://openneuro.org/datasets/ds001240 Hopefully, this will help you resolve the problem. |
Thanks for sharing the reports - this is very useful. So in FMRIPREP BOLD masks are calculated multiple times, but only one of those calculations is presented in the report (the mask calculated in the BOLD space after sysceptibility distortion correction - please correct me if I am wrong @oesteban). There is work in progress to reduce number of times masks are reestimated and improve reporting (issue #963 partial solution #1002). In your case (vanilla FMRIPREP) almost most masks depicted in the ROI plots look very good. There is only one exceptions that would need a little tweaking (mask is the red outline): The problem is with the masks used for coregistration and susceptibility correction (however this seems not to have negatively impacted the resulting transformations). Those are visibly too conservative. One more thing to check are the masks that are actually saved in the outputs. Do those look ok? As for the solution to the problem I would vote for:
WDYT? |
BTW - it would be still great if you could send a PR with your improvements. Maybe they could lead to a robust solution that works for everyone. |
Great - thanks in advance!
Best,
Chris
…On Fri, Feb 23, 2018 at 12:24 AM, Zhifang Ye ***@***.***> wrote:
The output mask is surprisingly good, even it was problematic in the
report.
[image: screenshot]
<https://user-images.githubusercontent.com/9696400/36583482-e9144780-18b0-11e8-909d-dc5c5bbec83c.png>
For my data, the problem seems mainly focused on bold reference image
masking. Though I'm a little bit confusing how the final mask was generated
and why it's different with the mask in the report. I noticed the recent
changes and hopefully get better a understanding after reading the code.
IMO, we only need to calculate bold mask twice. First one is initial
reference image mask and the second is from unwarped reference.
I will send a PR after I understand the recent changes of the workflow.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1000 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOkp5WNpyN3lYdgyYaq3jwY8dGDpd_fks5tXnXIgaJpZM4SNl2B>
.
|
Fixed via #1321 |
Hi, recently I ran some data with high spatial resolution (1.6mm isotropic) collected from 64 channels head coils. The raw bold data intensity was highly nonuniform which the frontal midline regions’s intensity was only roughly 1/3 of the brightest cortical regions. When I ran these data with fmriprep-1.0.0, the brain mask generated for bold reference workflow seems OK to me. After the 1.0.1 update, the bold_reference workflow n4_mask often generated very terrible brain mask which omitted lots of midbrain regions. This problem still occurred after 1.0.7 update. (See example below). To my best knowledge, this would only influence EPI-T1 registration and EPI unwarp steps. The final registration seems OK to me, however.
After digging the bold reference workflow, I pinned the problem to n4_mask in enhance_and_skullstrip_bold workflow. I realized the recent change in 1.0.7 but the lower upper_cutoff didn’t work for my data. I tried some other upper and lower cutoff combinations with the log-transform trick but it still give me similar bad results. I suspect that the histogram based method in nilearn compute_epi_mask function may be unsuitable for data which some brain regions signal intensity mixed up with non-brain regions.
I did a little hack which replaced nilearn compute_epi_mask with fsl bet in enhance_and_skullstrip_bold_wf. It gives me a decent brain mask (a little bit loose) fed to n4_correct. All followup steps ran smoothly. The final results seems good to me.
I was wondering if there’s any other option I could try instead of hacking the workflow?
The text was updated successfully, but these errors were encountered: