tobiamj Wrote:
-------------------------------------------------------
> after generating both lh and rh
> surfaces in SUMA, is there a way to reorder the
> nodes of the right hemisphere to match the anatomy
> of the left hemi?
There is a function in PyMVPA [github.com/PyMVPA/PyMVPA] that can compute such a mapping. The function is get_sphere_left_right_mapping in mvpa2.support.nibabel.surf.
[
github.com]
In python do something like:
from mvpa2.suite import *
surf_lh=surf.from_any('sphere_rh.reg.asc')
surf_rh=surf.from_any('sphere_lh.reg.asc')
mapping=surf.get_sphere_left_right_mapping(surf_lh, surf_rh)
and now mapping is a dictionary mapping node indices from the left to right hemisphere (and vice versa; the mapping is its own inverse).
To apply this mapping to NIML datasets, consider the afni_niml_dset module in mvpa2.support.nibabel.