We are unable to successfully coregister the results of a searchlight analyses from native space. To clarify, the coregistration works when I do it on the example_func_deoblique, but it does not work on the searchlight decoding result output that we got using nilearninstead?
and here it is an explanation of each:
A reference scan (example_func_deoblique)
The participant’s T1 scan (output_brain, with non-brain structures already removed)
The searchlight decoding map (dice2decnef)
The bash script that I use for the coregistration.
Any help would be much appreciated!! thanks so much for your attention
Hmm, one issue is that there is a header problem with dice2decnef_searchlight_resuls_logistic_probs_radius_4.niii.
The shorter 3dinfo error message:
3dinfo dice2decnef_searchlight_resuls_logistic_probs_radius_4.nii
++ 3dinfo: AFNI version=AFNI_25.0.06 (Feb 18 2025) [64-bit]
** nifti_header_version: bad sizeof_hdr = 134777631
** nifti_image_read: bad nifti im header version -1
** FATAL ERROR: Can't open dataset dice2decnef_searchlight_resuls_logistic_probs_radius_4.nii
** Program compile date = Feb 18 2025
Normally when processing, we deoblique the anatomical before we start, because different software deal with it differently and it also complicates visualization. We often are fine with leaving obliquity in the EPI before running afni_proc.py, because that program deals with it fine during processing.
Just in case, alignment doesn't work well with data that is not "brain-like" intensity variations like most of the data that comes out of MRI scanners (T1,T2,EPI,...). Derived data like statistical maps or atlases rarely align well by themselves. In those cases, we align data with the MRI scans and apply the transformations to these kinds of follower data.
Just to clarify that the scripts do compute the spatial transformations from the EPI to the MNI152 template using align_epi_anat.py and @auto_warp.py, 3dNwarpApply commands. These steps are fine with the standard EPI image.
However, as Paul indicates, I think the main issue is the header of dice2decnef_searchlight_resuls_logistic_probs_radius_4.niii
thanks for following this up! the data is preprocessed with afni and then it is fed to nilearn, which manages the loading and concatenation of the relevant scans across runs and then performs the searchlight decoding.
And the "misalignment" seems to be just because output_brain.nii is still oblique, while dice.nii.gz is not. So they look misaligned in afni because it does not want to resample the data. Just to test:
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.