Hello,
I am trying to align a mean EPI image with brain lesions to MNI space using "lesion_align". Below are the steps that I have tried so far.
lesion_align -input reor_mean_fmri1_brain.nii.gz -base reor_t1_brain.nii.gz -outdir epi_brain_hires_brain -goodside right -maxlev 0
Outputs:
reor_mean_fmri1_brain_shft_at.aff12.1D (affine transformation to the template)
reor_mean_fmri1_brain_shft_at.nii.gz (dataset affine aligned to the template and on the template grid)
reor_mean_fmri1_brain_shft_at.nii.gz aligns well with reor_t1_brain.nii.gz
lesion_align -input reor_t1_brain.nii.gz -base MNI152_T1_2mm_brain.nii.gz -outdir hires_brain_mni_brain -goodside right
Outputs:
reor_t1_brain_shft_at.aff12.1D (affine transformation to the template)
reor_t1_brain_shft_qw_WARP.nii.gz (warp deformations to the template from nonlinear alignment only)
reor_t1_brain_nl.nii.gz (dataset nonlinearly warped to the template)
reor_t1_brain_shft_at.nii.gz (dataset affine aligned to the template and on the template grid)
Both reor_t1_brain_shft_at.nii.gz and reor_t1_brain_nl.nii.gz are aligned with MNI152_T1_2mm_brain.nii.gz
3dNwarpApply -source reor_mean_fmri1_brain.nii.gz -nwarp 'reor_t1_brain_shft_qw_WARP.nii.gz reor_t1_brain_shft_at.aff12.1D reor_mean_fmri1_brain_shft_at.aff12.1D ' -master MNI152_T1_2mm_brain.nii.gz -ainterp cubic -prefix mni_reor_mean_fmri1_brain.nii.gz
mni_reor_mean_fmri1_brain.nii.gz is poorly aligned with MNI152_T1_2mm_brain.nii.gz
Questions
- Which lesion_align output image is the fully aligned/warped image (affine + nonlinear)?
- What is the recommended procedure for transforming EPI images to MNI using the lesion_align affine transformation and warp files?
- Is there a better alternative to transforming EPI and T1 images with brain lesions to MNI space without manually drawing the exclusion lesion mask for each subject?
Thanks,
Eddie
AFNI version info (afni -ver): Precompiled binary linux_rocky_8: Jun 21 2024 (Version AFNI_24.1.22 'Publius Septimius Geta')