Class BemisMurckoClustering
- java.lang.Object
-
- com.chemaxon.clustering.framework.BemisMurckoClustering
-
@Beta @PublicAPI public final class BemisMurckoClustering extends Object
Convenience utilities for using Bemis-Murcko clustering. Typical use case:final FrameworkClusteringResults clustering = BemisMurckoClustering.ofMolecules(moleculeList).launch();
SeeFrameworkClusteringResultsSmiImpl
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameworkClusteringResults
launch()
Launch clustering with no progress monitoring.FrameworkClusteringResults
launch(SubProgressObserver po)
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<OrderedElement<Molecule>> molecules)
BemisMurckoClustering
withErrorHandler(Consumer<Exception> errorHandler)
Set optional error handler.
-
-
-
Method Detail
-
ofMoleculesIterator
public static BemisMurckoClustering ofMoleculesIterator(Iterator<Molecule> molecules)
Initialize with anIterator
instance.- Parameters:
molecules
- Input structures- Returns:
- Instance to launch clustering
-
ofMolecules
public static BemisMurckoClustering ofMolecules(Iterable<Molecule> molecules)
Initialize with anIterable
instance.- Parameters:
molecules
- Input structures- Returns:
- Instance to launch clustering
-
ofOrderedMoleculesIterator
public static BemisMurckoClustering ofOrderedMoleculesIterator(Iterator<OrderedElement<Molecule>> molecules)
- Parameters:
molecules
- Input- Returns:
- Instance to launch clustering
-
withErrorHandler
public BemisMurckoClustering withErrorHandler(Consumer<Exception> errorHandler)
Set optional error handler.- Parameters:
errorHandler
- Error handler. Expect errors during framework creation- Returns:
- Reference to
this
instance
-
launch
public FrameworkClusteringResults launch()
Launch clustering with no progress monitoring.- Returns:
- Clustering results
-
launch
public FrameworkClusteringResults launch(SubProgressObserver po)
Launch clustering with progress monitoring.- Parameters:
po
- Progress observer. After executionProgressObserver.done()
will be invoked. MethodProgressObserver.switchToDeterminate(long)
will not invoked.- Returns:
- Clustering results
-
-