I want to project the region of interest (ROIs) from [1] on my subjects’ surface and create a NIFTI file out of them. The ROIs are in 1d.dset format in AFNI. To do this, first, I mapped ROIs (e.g. v1_lh.1d.dset) on the subject surface (std.141.mysubj_lh.spec), which has been created in Freesurfer and converted to spec file using @SUMA_Make_Spec_FS, with the following command:
I want to align the NIFTI files from ROIs (e.g. v1_lh.nii.gz) with the EPI images. However, the structural image from @SUMA_Make_Spec_FS is not aligned with the EPI image. Would you please help me to align the masks (ROIs) with the EPI image?
One solution that comes to my mind is to align the structural image with the EPI image using align_epi_anat.py. Then use the transformation matrix form align_epi_anat.py to align masks with the EPI image, but I do not know how to use the transformation matrix to transform the masks.
[1] Probabilistic Maps of Visual Topography in Human Cortex; Liang Wang, Ryan E B Mruczek, Michael J Arcaro, Sabine Kastner
Align your anatomical to the EPI dataset first, then redo Freesurfer processing using that anatomical dataset. Then repeat @SUMA_Make_Spec_FS, etc.
Align EPI data to anatomical dataset as part of your processing with afni_proc.py. If you’re doing motion correction anyway, interpolation effects should be minimal.
Align your anatomical to the EPI dataset using align_epi_anat.py. Then use that volume as the -sv volume option to align to experiment.
Align your anatomical data to the EPI dataset using align_epi_anat.py. Transform the ROI data using the transformation computed with “3dAllineate -NN -1Dmatrix_apply” (using the transformation 1D file output from align_epi_anat.py).
Thank you, Daniel.
I have a question. I checked the alignment of the mask and EPI images in ANFI and it seems that they are aligned, as in the figure below. However, when I checked them in ITK-SNAP, It seems that they are not aligned! Do you know why this is so?
I want to use the mask in CoSMoMVPA using cosmo_fmri_dataset and after checking the result with ITK-SNAP, I am not sure whether the mask and the EPI image are aligned are not.
For the both images:
Dimensions: 120x120x75
Voxel spacing: 1.75x1.75x1.75
Origin: -106.312x87.8681x-54.6848
for one of them:
Orientation: Oblique (Close to RPI)
and the other one:
Orientation: RPI
I think it’s likely this is an oblique dataset, and ITK-snap will show that differently than AFNI. You can remove the obliquity of copy of the dataset by doing this:
Then view that dataset in ITK-snap with the same ROI data. In AFNI, you may want to save the dataset with a header attribute that will enforce a color map more suitable for ROIs with:
3drefit -cmap INT_CMAP myROIs.nii.gz
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.