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

top of brain cut after preprocessing using version 0.22.0 #798

Open
jhauneuro opened this issue Aug 7, 2024 · 5 comments
Open

top of brain cut after preprocessing using version 0.22.0 #798

jhauneuro opened this issue Aug 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@jhauneuro
Copy link

Summary

The top of the brain is cut off after preprocessing using 0.22.0. The same dataset had full brain coverage after preprocessing using 0.19.1. Were there changes made to the image field of view between qsiprep versions 0.19.1 and 0.22.0? What could remedy this?

Additional details

  • QSIPrep version: 0.22.0
  • Docker version: 25.0.4

What were you trying to do?

Preprocess my dwi data.

What did you expect to happen?

Successful preprocessing.

What actually happened?

Preprocessed data cut off by several slices at top of the brain. Brain position shifts up between before and after preprocessing.

Reproducing the bug

Screenshots before preprocessing with 0.22.0:
sdc_before_qsiprep-0 22 0

and after preprocessing with 0.22.0:
sdc_after_qsiprep-0 22 0

Screenshots before preprocessing with 0.19.1:
sdc_before_qsiprep-0 19 1

and after preprocessing with 0.19.1:
sdc_after_qsiprep-0 19 1

@jhauneuro jhauneuro added the bug Something isn't working label Aug 7, 2024
@johnaeanderson
Copy link

I've experienced this too. It looks like a bounding box that crops tight along the top and bottom of the brain - unfortunately for some subjects as you've noticed it crops off the top of the brain (including projection fibers). I'd also like the cerebellum to be left intact - and the bounding box crops that in half too.

@mattcieslak
Copy link
Collaborator

@jhauneuro and @johnaeanderson do you see cropping in the preprocessed images too? Or is it just in the figure?

@johnaeanderson
Copy link

Hi @mattcieslak, the cropping is definitely in the final preprocessed images as well as the figures.

Below, I'm using mango to overlay the file sub-201_rec-NORM_space-T1w_desc-preproc_dwi.nii.gz on my preprocessed T1 weighted image sub-201_desc-preproc_T1w.nii. On the sagittal slice, we can clearly see the aggressive cropping.

Screenshot from 2024-08-16 14-57-17

Thanks for looking into this!

@jhauneuro
Copy link
Author

@mattcieslak it's cropped in the preprocessed images. In the 0.19.1 output a bit more of the cerebellum is cropped (and the top of the brain is preserved) whereas in the 0.22.0 output the top of the brain is noticeably cropped - the cerebellum is slightly cropped too but this is also the case in the raw dwi data. I'd prefer to not lose the cerebrum at the risk of more cropping in the cerebellum if that is possible, or ideally no brain cropping at all. Thanks!

@jhauneuro
Copy link
Author

Circling back to this as I have now encountered this issue in multiple different datasets including in-house data and data from ABIDE-II in multiple subjects. Reverting to qsiprep 0.19.1 would not be ideal, however, it does provide results with better brain coverage/less brain cropping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants