You might have already seen these pages, but here is a bit about the D99 v2.0 that you are using:
… and we also have some animal MRI processing demos:
… that include running both @animal_warper and afni_proc.py on nonhuman primate data (macaques in the current cases, but similar considerations apply to other species, too)—the latter is useful if you have FMRI data.
I assume you got your template and anatomical from the same download (see the first link above for different ways to get the data if you want to be sure), but you can run this command to check that multiple datasets are on the same grid:
3dinfo -same_all_grid -prefix D99_atlas_v2.0.nii.gz D99_template.nii.gz
If they are all on the same grid, you should see five 1s to the left of each filename (each one denoting that a given property does match—see 3dinfo’s help about the properties checked).
The command you ran seems fine—indeed, the input T1w volume gets aligned to the base/reference template, and then there are warps created to send any other information from the input T1w space to the template space, as well as vice versa. So you should end up with a warped copy of the atlas in the same space as your input T1w volume.
There should be a QC/ directory in your output that shows various quality control images of processing; those are listed and described in the help, in this section:
and the various output volumes are described here:
Would you mind sharing one of the alignment images, and point out where the alignment issue(s) are?
Note that a slightly larger version of your command might look like:
-input my_T1.nii.gz \
-input_abbrev INPT1 \
-base ../Monkey_brains/D99_v2.0_dist/D99_template.nii.gz \
-base_abbrev D99TEMPL \
-atlas_followers ../Monkey_brains/D99_v2.0_dist/D99_atlas_v2.0.nii.gz \
-atlas_abbrevs D99ATL \
-outdir test_dir \
… to assign abbreviations for each of the datasets you are inputting, maybe making the output datasets a little more easily recognizable. The “-ok_to_exist” flag is useful if you want to add more data when running it, such as if there were another atlas in that template space.
And welcome to using AFNI!