run¶
Import in python using from mcutils.scripts.parcel.spectral import run
-
mcutils.scripts.parcel.spectral.
run
(surface: mcutils.surface.cortical_mesh.CorticalMesh, features, n_iter=20, metric='spearman', method='spectral')[source]¶ Repeatedly identify the border between clusters in a spotlight fashion
- Parameters
surface – anatomical surface with N vertices
features – (N, M) array of surface features
n_iter – number of iterations
metric – which metric to use for the similarity between neighbouring vertices
method – clustering method (‘spectral’, ‘affinity’, or ‘DBSCAN’)
- Returns
(N, ) array with fraction of times a vertex was on the border between the clusters