Howdy-
As a preliminary question, what is your AFNI version ("afni -ver")? I don't think we have made the a*rank* dsets for a while... In general, we recommend people use the a*REN* dsets that are made---those have more stable numbering. These are described here as part of the FreeSurfer tutorial:
[
afni.nimh.nih.gov]
(Note that selecting by ROI label should actually still be OK even for the *rank* dsets---but the *REN* dsets are good to know about/use anyways.)
In terms of your ROI label names, you should be able to use the ROI selector notation in AFNI, putting the list of ROI labels in angle brackets (with quotes):
3dcalc -a aparc.a2009s+aseg_rank_Alnd_Exp+orig.HEAD"<ctx_lh_G_pariet_inf-Angular,ctx_lh_G_pariet_inf-Supramarc,ctx_lh_S_interm_prim-Jensen>" -expr 'a' -prefix lh.InferiorParietal.cortical
That should do what your expression did with the 3 sep ROIs.
If you want to reattach the labeltable (and the automatic use of an ROI-appropriate colorbar in the AFNI GUI) to your new dset:
3drefit -copytables aparc.a2009s+aseg_rank_Alnd_Exp+orig.HEAD lh.InferiorParietal.cortical+orig
3drefit -cmap INT_CMAP lh.InferiorParietal.cortical+orig
--pt