Bug in @Align_Centers?

AFNI version info (afni -ver): 26.something

Hello! I've run into an weird issue where @Align_Centers doesn't seem to play well with absolute file paths.

Say my data and template are both located in /my/data/location. If I cd into location and run @Align_Centers -base MNI152_2009_template_SSW.nii.gz -dset anat.nii -cm, everything works.

But if I instead run @Align_Centers -base /my/data/location/MNI152_2009_template_SSW.nii.gz -dset /my/data/location/anat.nii -cm, I get some exciting errors where it looks like the full path is duplicated-- For example, for the anat file, the program looks for "/my/data/location//my/data/location/anat.nii".

Please let me know if I'm doing something wrong...!

I tried this with slightly different results, where the _shft (HEAD, nii, 1D) files are written to the local directory, while the "final result" is written to the -dset directory. There appears to be a problem in 3dCM where it does not apply the shift to a remote directory.
Thanks for letting us know!
-rick

1 Like

The fix for this should be available after the next build.
Thanks again!

-rick

2 Likes