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 BemisMurckoClustering
ofMolecules
(Iterable<Molecule> molecules) Initialize with anIterable
instance.static BemisMurckoClustering
ofMoleculesIterator
(Iterator<Molecule> molecules) Initialize with anIterator
instance.static BemisMurckoClustering
ofOrderedMoleculesIterator
(Iterator<com.chemaxon.clustering.framework.OrderedElement<Molecule>> molecules) withErrorHandler
(Consumer<Exception> errorHandler) Set optional error handler.
-
Method Details
-
ofMoleculesIterator
Initialize with anIterator
instance.- Parameters:
molecules
- Input structures- Returns:
- Instance to launch clustering
-
ofMolecules
Initialize with anIterable
instance.- 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
this
instance
-
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
-