-
Notifications
You must be signed in to change notification settings - Fork 296
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
sub-<subjID>_run-<runID>_desc-aseg_dseg.nii.gz looks different from aseg.mgz #2642
Comments
Researching this issue a bit I could reproduce First of all, this bug nipreps/smriprep#268 is the reason why Then I rerun fmriprep with 21.0.0rc2 version and did the following to reproduce
According to https://surfer.nmr.mgh.harvard.edu/fswiki/FsAnat-to-NativeAnat freesurfer suggested using
Finally, I tried the very first logic, using
|
What happened?
Hi there,
Could you please help me to figure out the following problem?
Short story:
sub-<subjID>_run-<runID>_desc-aseg_dseg.nii.gz
under fmriprep/sub-<>/anat folder looks different toaseg.mgz
under fmriprep/source/freesurfer/sub-<>/mri folder (see snapshot). I understand they are not in the same space, but the first one seems to get some extra "tissues" outside the brain mask. I really hope I am wrong.Long story:
I was trying to resample an individual segmentation (e.g. Schaefer2018_200Parcels_17Networks.mgz) in freesurfer space to BOLD resolution. Searching from this repo and NeuroStars, it seems that fmriprep used
antsApplyTransforms
. To make sure I don't make a mistake, I thought if I could resampleaseg.mgz
under the source/freesurfer folder to BOLD ref and end up with an identical result to_space-T1w_desc-aseg_dseg.nii.gz
under the func folder, then I can proceed with confidence. However, I could not reproduce what fmriprep did and posted questions https://neurostars.org/t/resampling-volume-atlas-to-bold-space/20696 and #2632. In fmriprep source code https://github.com/nipreps/fmriprep/blob/master/fmriprep/workflows/bold/registration.py line242t1w_aseg
is already projected on T1w from freesurfer space before applyingantsApplyTransforms
with--transform identity
, tracking this down I couldn't find exactly how fmriprep did the registration to gett1w_aseg
, because I am not familiar with Nipype. So I suppose (hopefully I am wrong)sub-<subjID>_run-<runID>_desc-aseg_dseg.nii.gz
is thet1w_aseg
and compared it withaseg.mgz
, but they don't look similar from the snapshot. I also triedmri_label2vol --seg aseg.mgz --temp rawavg.mgz --o aseg-in-rawavg.mgz --regheader aseg.mgz
suggested by freesurfer to convert aseg back to T1w and appliedantsApplyTransforms
with--input $SUBJECTS_DIR/$subject_name/mri/aseg-in-rawavg.mgz --transform identity --reference-image $fmriprep_DIR/$subject_name/func/${subject_name}_${task_name}_run-1_space-T1w_boldref.nii.gz
, the result still looks different from_space-T1w_desc-aseg_dseg.nii.gz
Thanks lot
What command did you use?
What version of fMRIPrep are you running?
20.2.4
How are you running fMRIPrep?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
No response
Additional information / screenshots
The text was updated successfully, but these errors were encountered: