IMP  2.3.1
The Integrative Modeling Platform
IMP.pmi.analysis.Clustering Class Reference

A class to cluster structures. More...

Inherits object.

Detailed Description

A class to cluster structures.

Uses scipy's cdist function to compute distance matrices And sklearn's kmeans clustering module.

Parameters
rmsd_weightsFlat list of weights for each particle (if they're coarse)
Note
This class is only available in Python.

Definition at line 180 of file pmi/Analysis.py.

Public Member Functions

def do_cluster
 Run K-means clustering. More...
 
def fill
 fill stores coordinates of a model into a dictionary all_coords, containing coordinates for all models. More...
 

Member Function Documentation

def IMP.pmi.analysis.Clustering.do_cluster (   self,
  number_of_clusters,
  seed = None 
)

Run K-means clustering.

Parameters
number_of_clustersNum means
seedthe random seed

Definition at line 250 of file pmi/Analysis.py.

def IMP.pmi.analysis.Clustering.fill (   self,
  frame,
  Coords 
)

fill stores coordinates of a model into a dictionary all_coords, containing coordinates for all models.

Definition at line 204 of file pmi/Analysis.py.


The documentation for this class was generated from the following file: