-
Notifications
You must be signed in to change notification settings - Fork 298
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
N4BiasFieldCorrection error in sbref image #1463
Comments
Hi @heikestein, if you could provide us with one subject that fails (shared privately) we could try to figure out what is the problem. If there are some sharing concerns, maybe providing only one of the bold series (run-01 seems to be failing, that should be enough), and cropping it to the first 50 timepoints will make it useless for research objectives but more than enough to replicate the problem. We are glad you like the software and are considering to make it the standard at your lab. I'll try to get back to you ASAP if you could provide me with some data. |
@oesteban It sounds like it's failing on an |
I know, but I suspect this problem will uncover deeper problems in the workflow for when sbrefs are present. Having a failing dataset will speed up the process a lot (and that's also why I saved the due explanation of the issue for when I know exactly what is happening, I owe you that @heikestein ). 👍 |
Hi Oscar, hi Chris, thanks for getting back to me so quickly. Thanks so much! |
Hi @oesteban, I wanted to check in on whether you had time to look at the bref preprocessing problem already. I am going to see our collaborators in Charité Berlin for the weekend to set up a larger study and preprocessing pipeline, and I wanted to propose them to use fMRIprep for preprocessing. Ideally, I wanted to show some results, as to convince them that this is the easiest way to handle our data. Any chance I can get the pipeline to work before that? |
Hi @heikestein, I've reproduced your issue. I'm going to have a look at this now. |
With verbosity turned on, here's the error:
|
The mask is not matching the sbref. |
Potentially related: nipreps/niworkflows#253 |
Don't think so: $ % nib-ls /data/bids/heikestein/sub-C19/ses-01/func/sub-C19_ses-01_task-wm_run-0*.nii.gz
/data/bids/heikestein/sub-C19/ses-01/func/sub-C19_ses-01_task-wm_run-01_bold.nii.gz int16 [ 64, 64, 39, 1215] 3.00x3.00x3.00x0.75 sform
/data/bids/heikestein/sub-C19/ses-01/func/sub-C19_ses-01_task-wm_run-01_sbref.nii.gz int16 [ 64, 64, 39, 10] 3.00x3.00x3.00x2.23 sform
/data/bids/heikestein/sub-C19/ses-01/func/sub-C19_ses-01_task-wm_run-02_bold.nii.gz int16 [ 64, 64, 39, 1215] 3.00x3.00x3.00x0.75 sform
/data/bids/heikestein/sub-C19/ses-01/func/sub-C19_ses-01_task-wm_run-02_sbref.nii.gz int16 [ 64, 64, 39, 10] 3.00x3.00x3.00x2.23 sform |
Though... it might be that there are 10 sbref volumes. |
@heikestein I don't have time to test this until morning, probably, but if you just truncate your sbrefs to the first volume, that might do what you need. I was looking through the code and really having trouble identifying a difference between the estimated reference and the sbref, and the multiple volumes is all I could see. |
Though... it might be that there are 10 sbref volumes
Quite likely. Also important to check whether the qforms match. nib-ls
found storms and thus they are reported, but ITK only reads the qforms.
…On Thu, Jan 17, 2019, 16:21 Chris Markiewicz ***@***.*** wrote:
@heikestein <https://github.com/heikestein> I don't have time to test
this until morning, probably, but if you just truncate your sbrefs to the
first volume, that might do what you need. I was looking through the code
and really having trouble identifying a difference between the estimated
reference and the sbref, and the multiple volumes is all I could see.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1463 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAkhxhujZcuUhoj6u0WNj2gY_FogX7lQks5vEROjgaJpZM4ZzbMr>
.
|
Hi, I ran the pipeline yesterday evening and it ran without problems, great! I have to inspect the results now, but the n4 problem is gone in any case. |
Excellent! Thanks for the update. Out of curiosity, do you know the reason that 10 sbref volumes were collected, and the protocol? Assuming that they were just 10 continuously acquired images, the later images probably have lower contrast than the first one or two. I'm asking so we can figure out the best way to handle these situations. If there's a good reason to want to use >1 volume, then we should figure out how to use them. Otherwise we can either truncate to the first volume ourselves or produce an informative warning/error when >1 volume is present. |
Hi @effigies, sorry for the late reply! |
Added an issue to remind us of this problem. I'll leave the title there to keep findability if users run into this very same bug. |
Hi,
first of all, thank you for your great effort in standardizing preprocessing pipelines!
For now, I am trying to run a workflow with
I am not quite sure why the workflow doesn't like my data - it fails on the bold_reference_wf.skullstrip_and_enhance_wf, specifically in the sbref N4 correction wf step. Error message below:
I am also not sure I conceptually understand what is failing here - my best guess that this is a problem of correcting the reference singleband before being registered the template?
Edit: I tried to run the pipeline without providing sbref images, and it looks like this way, bold images are N4 corrected and the workflow doesn't fail. However, direct registration of MB bold to MNI looks pretty imprecise.
I would appreciate any help, as I really want to promote your pipeline as a new standard in our lab :)
Btw, this is the exact command I ran:
docker run --rm -it -e DOCKER_VERSION_8395080871=18.09.0 -v /home/heike/Documents/Freesurfer/license.txt:/opt/freesurfer/license.txt:ro -v /home/heike/Desktop/MRI_ex:/data:ro -v /home/heike/Desktop/preproc_MRI_ex:/out -v /home/heike/Desktop/interm:/scratch poldracklab/fmriprep:1.2.5 /data /out participant --participant_label C19 -t wm --ignore slicetiming --bold2t1w-dof 6 --output-space template --no-submm-recon --fs-no-reconall --write-graph -v -w /scratch --template-resampling-grid native
The text was updated successfully, but these errors were encountered: