IMP logo
IMP Reference Guide  develop.cb469e0f11,2024/05/28
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.

This class is only available in Python.

Definition at line 184 of file pmi/

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 


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

Definition at line 189 of file pmi/

Member Function Documentation

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

Run K-means clustering.

number_of_clustersNum means
seedthe random seed

Definition at line 253 of file pmi/

def IMP.pmi.analysis.Clustering.fill (   self,

Add coordinates for a single model.

Definition at line 210 of file pmi/

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