-
Notifications
You must be signed in to change notification settings - Fork 16
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
Problem applying h5-files from fmriprep outputs for reproduction of normalization #137
Comments
Version is 21.0.0 |
Hi @m-petersen, have you tried the corresponding conversion with |
Hi Oscar, thanks for your reply. Yes, a conversion using |
Thanks much. Would you be able to share some data so that we can replicate the issue? |
I have sent you an email with a link to a shared drive with the according files to phd(at)oscaresteban(dot)es. |
Offset can take negative values and does not need to be integer. Both assumptions were broken in the reader. Related: #137.
Hello! |
Dear Developers,
currently I am aiming to reproduce the normalization steps in fmriprep (e.g. _desc-preproc_T1w.nii.gz -> 1_space-MNI152NLin6Asym_desc-preproc_T1w.nii.gz) with nitransforms. The bigger goal is to check bit-identity between fmriprep outputs and manually produced normalization outputs allowing us to easily reproduce just the normalization with datalad (rerun) and hence throw away the normalized images alleviating our storage issues. Not being able to identify the exact code related to the normalization in the fmriprep and smriprep code base I was trying to achieve a normalization with the .h5-file produced by fmriprep (_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5).
If I understand the documentation correctly loading the h5-file with nt.manip.load and applying / mapping it subsequently should do the job.
My code:
However, when visualising the resulting
T1w_MNI
withT1w_MNI.orthoview()
the image is empty / black.I was also messing around with other approaches with no avail.
Is there a suggested way to apply the transforms? I would also greatly appreciate recommendations regarding the exact reproduction of fmriprep normalizations.
Thanks a lot in advance.
Cheers,
Marvin
The text was updated successfully, but these errors were encountered: