I’m using auto_warp.py to register T1 brain to the template brain. However, I am getting the following error (Error: template (or -apar) dset not found: ./base.nii). When I go to the directory /warptest, I see the base.nii.gz file but the command does not recognize this file and says that the base.nii is not found. There are two other files (anat.nii.gz and anat.un.nii.gz) that the command seems to recognize but not the base.nii.gz. I’m not sure why I have this error, and I would appreciate your help.
I unzipped the base.nii.gz and ran the same command again while having base.nii in the /warptest, and then it worked.
auto_warp.py -base XXX/parcellations/ch2bet.nii -input T1_brain.nii -output_dir warptest
#++ auto_warp.py version: 0.04
Output directory XXX/T1/warptest/
#Script is running (command trimmed):
mkdir ./warptest/
cd XXX/T1/warptest/
#Script is running (command trimmed):
3dcopy XXX/T1/T1_brain.nii ./anat.nii
++ 3dcopy: AFNI version=AFNI_18.3.03 (Oct 19 2018) [64-bit]
#Script is running (command trimmed):
3dUnifize -GM -input ./anat.nii -prefix ./anat.un.nii
++ 3dUnifize: AFNI version=AFNI_18.3.03 (Oct 19 2018) [64-bit]
- Pre-processing: ADV…UWGm
++ Output dataset ./anat.un.nii.gz
++ ===== Elapsed = 12.4 sec
#Script is running (command trimmed):
3dcopy XXX/parcellations/ch2bet.nii ./base.nii
++ 3dcopy: AFNI version=AFNI_18.3.03 (Oct 19 2018) [64-bit]
#++ Aligning XXX/T1/warptest/base.nii data to XXX/T1/warptest/anat.un.nii data
#Script is running (command trimmed):
@auto_tlrc -base ./base.nii -input ./anat.un.nii -suffix .aff -no_ss -no_pre -init_xform CENTER
Error: template (or -apar) dset not found: ./base.nii
#**ERROR Failed in affine step
** ERROR - script failed