OEBroodClusterBuilder
Attention
This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.
class OEBroodClusterBuilder
This class builds and organizes bioisosteric hits into clusters based on structural similarity and optionally ranks them by calculated interest scores. See the cluster example.
- The OEBroodClusterBuilder class defines the following public methods:
Constructors
OEBroodClusterBuilder(query: OEBroodQuery) -> OEBroodClusterBuilder
OEBroodClusterBuilder(molQuery: Union[OEGraphMol,OEMol,OEQMol],
fragment: bool = False) -> OEBroodClusterBuilder
This method constructs an OEBroodClusterBuilder
from either a query molecule or an OEBroodQuery.
The fragment flag controls clustering mode: fragment-centric
(true) or full-molecule-centric (false).
Add
Add(vecHits: OEBroodHitVector) -> bool
This method adds one or more hits to the cluster builder. The builder groups similar hits into clusters as they are added.
GetClusters
GetClusters() -> OEBroodClusterVector
This method returns a reference to the vector of clusters created by the builder.
Rank
Rank() -> bool
This method computes cluster priority scores and assigns final cluster ranks.
Call this method before consuming ranked output from
GetClusters.