eigenstrapping.utils.calc_surface_connectivity

eigenstrapping.utils.calc_surface_connectivity(data, parc)[source]

Calculate surface-based connectivity matrix.

Parameters:
  • data (ndarray of shape (N,)) – Surface data to calculate connectivity matrix

  • parc (ndarray of shape (N,)) – Surface labels for each parcel that corresponds to an atlas

Returns:

surface_connectivity – Surface connectivity matrix

Return type:

np.ndarray of shape (num_parcels, num_parcels)