enigmatoolbox.permutation_testing.rotate_parcellation

enigmatoolbox.permutation_testing.rotate_parcellation(coord_l, coord_r, nrot=1000)[source]

Rotate parcellation (author: @saratheriver)

Parameters
  • coord_l (ndarray) – Coordinates of left hemisphere regions on the sphere, shape = (m, 3)

  • coord_r (ndarray) – Coordinates of right hemisphere regions on the sphere, shape = (m, 3)

  • nrot (int, optional) – Number of rotations. Default is 1000.

Returns

perm_id – Array of permutations, shape = (m, nrot)

Return type

ndarray

See also

spin_test()

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.