run

Import in python using from mcutils.scripts.parcel.cluster import run

mcutils.scripts.parcel.cluster.run(surface, features, metric='spearman', method='spectral', n_clusters=10)[source]

Clusters the surface based on the provided features

Parameters
  • surface – anatomical surface with N vertices

  • features – (M, N) array of surface features

  • metric – which metric to use for the similarity between neighbouring vertices

  • method – clustering method (‘spectral’, ‘affinity’, or ‘DBSCAN’)

  • n_clusters – number of clusters

Returns

(N, ) integer array of labels