Class BemisMurckoClustering
java.lang.Object
com.chemaxon.clustering.framework.BemisMurckoClustering
Convenience utilities for using Bemis-Murcko clustering.
Typical use case:
final FrameworkClusteringResults clustering =
BemisMurckoClustering.ofMolecules(moleculeList).launch();
See FrameworkClusteringResultsSmiImpl for the result type.
Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
-
Method Summary
Modifier and TypeMethodDescriptionlaunch()Launch clustering with no progress monitoring.Launch clustering with progress monitoring.static BemisMurckoClusteringofMolecules(Iterable<Molecule> molecules) Initialize with anIterableinstance.static BemisMurckoClusteringofMoleculesIterator(Iterator<Molecule> molecules) Initialize with anIteratorinstance.static BemisMurckoClusteringofOrderedMoleculesIterator(Iterator<com.chemaxon.clustering.framework.OrderedElement<Molecule>> molecules) withErrorHandler(Consumer<Exception> errorHandler) Set optional error handler.
-
Method Details
-
ofMoleculesIterator
Initialize with anIteratorinstance.- Parameters:
molecules- Input structures- Returns:
- Instance to launch clustering
-
ofMolecules
Initialize with anIterableinstance.- Parameters:
molecules- Input structures- Returns:
- Instance to launch clustering
-
ofOrderedMoleculesIterator
public static BemisMurckoClustering ofOrderedMoleculesIterator(Iterator<com.chemaxon.clustering.framework.OrderedElement<Molecule>> molecules) - Parameters:
molecules- Input- Returns:
- Instance to launch clustering
-
withErrorHandler
Set optional error handler.- Parameters:
errorHandler- Error handler. Expect errors during framework creation- Returns:
- Reference to
thisinstance
-
launch
Launch clustering with no progress monitoring.- Returns:
- Clustering results
-
launch
Launch clustering with progress monitoring.- Parameters:
po- Progress observer. After executionProgressObserver.close()will be invoked. MethodProgressObserver.switchToDeterminate(long)will not invoked.- Returns:
- Clustering results
-