IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/21
The Integrative Modeling Platform
IMP.pmi.analysis.Clustering Class Reference

A class to cluster structures. More...

Detailed Description

A class to cluster structures.

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

Note
This class is only available in Python.

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

Public Member Functions

def __init__
 Constructor. More...
 
def do_cluster
 Run K-means clustering. More...
 
def fill
 Add coordinates for a single model. More...
 

Constructor & Destructor Documentation

def IMP.pmi.analysis.Clustering.__init__ (   self,
  rmsd_weights = None 
)

Constructor.

Parameters
rmsd_weightsFlat list of weights for each particle (if they're coarse)

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

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 252 of file pmi/Analysis.py.

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

Add coordinates for a single model.

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


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