AFNI version info (afni -ver): 24.0.03
@SSwarper v2.6
Hello all,
I have EPI and T2-weighted anatomical images. I am trying to do nonlinear warping of anatomical image to MNI template. However, T2 image (actually, T2 SPACE Dark Fluid, which means suppressed fluids) gave problematic results. Like that:
And, here is my code I used
#!/bin/tcsh
### Define base directory and static filenames
set topdir = $cwd
set subj = "fibro_single"
set anat_file = "fibro_t2.nii.gz"
set template_file = "MNI152_2009_template_SSW.nii.gz"
echo "Warping subject: $subj"
# Create subject-specific directory structure
mkdir -p $topdir/$subj/anat_orig
mkdir -p $topdir/$subj/anat_warped
mkdir -p $topdir/$subj/anat_warped/snapshots
# Go to anat_orig directory
cd $topdir/$subj/anat_orig
# Create temp directory and copy subject T2-weighted image
mkdir -p temp_$subj
cp $topdir/$anat_file temp_$subj
cd temp_$subj
# Run AFNI @SSwarper
@SSwarper \
-input $anat_file \
-subid $subj \
-base $topdir/$template_file
# Compress output datasets (turns .nii into .nii.gz)
gzip -1v *.nii
# Move results to subject's anat_warped directory
\mv -f anatSS.${subj}.nii.gz anatQQ.${subj}.nii.gz \
anatQQ.${subj}.aff12.1D anatQQ.${subj}_WARP.nii.gz \
$topdir/$subj/anat_warped
# Move snapshots for visual QC
\mv -f *.jpg $topdir/$subj/anat_warped/snapshots
# Clean up temp directory
cd ..
\rm -rf temp_$subj
echo "Finished processing $subj"
exit 0
How can I overcome this problem? Unfortunately, I do not have T1 images and there is no possibility to obtain them. Thank you for your help in advance.
