drcme.ephys_morph_clustering.hc_nn_cluster_calls¶
- drcme.ephys_morph_clustering.hc_nn_cluster_calls(results_df, morph_data, ephys_data, n_nn=[4, 7, 10], n_cl=[10, 15, 20, 25])[source]¶
Add agglomerative clustering results with connectivity constraints
- Parameters
results_df (DataFrame) – Existing DataFrame that new clustering results are added to as new columns
morph_data (array) – Specimens by morphology features array
ephys_data (array) – Specimens by electrophysiology features array
n_nn (list, optional) – Set of nearest-neighbor values
n_cl (list, optional) – Set of cluster numbers
- Returns
Combined clustering results. The index is the set of specimen_ids. Each column contains cluster labels for a different clustering variant.
- Return type
DataFrame