enigmatoolbox.permutation_testing.centroid_extraction_sphere¶
-
enigmatoolbox.permutation_testing.
centroid_extraction_sphere
(sphere_coords, annotfile, ventricles=False)[source]¶ Extract centroids of a cortical parcellation on a surface sphere (author: @saratheriver)
- Parameters
sphere_coords (ndarray) – Sphere coordinates, shape = (n, 3)
annotfile (string) – Name of annotation file {‘fsa5_lh_aparc.annot’, ‘fsa5_rh_aparc.annot, ‘fsa5_with_sctx_lh_aparc_aseg.csv’, etc.}
ventricles (bool, optional) – Whether ventricle data are present. Only used when ‘annotfile’ is fsa5_with_sctx_lh_aparc_aseg or fsa5_with_sctx_lh_aparc_aseg``. Default is False.
- Returns
coord – Coordinates of the centroid of each region on the sphere, shape = (m, 3).
- Return type
ndarray
See also
References
Alexander-Bloch A, Shou H, Liu S, Satterthwaite TD, Glahn DC, Shinohara RT, Vandekar SN and Raznahan A (2018). On testing for spatial correspondence between maps of human brain structure and function. NeuroImage, 178:540-51.
Váša F, Seidlitz J, Romero-Garcia R, Whitaker KJ, Rosenthal G, Vértes PE, Shinn M, Alexander-Bloch A, Fonagy P, Dolan RJ, Goodyer IM, the NSPN consortium, Sporns O, Bullmore ET (2017). Adolescent tuning of association cortex in human structural brain networks. Cerebral Cortex, 28(1):281–294.