public class SMIRKSManager extends Object
Constructor and Description |
---|
SMIRKSManager(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
Modifier and Type | Method and Description |
---|---|
void |
applyAromaticityTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target,
List<org.openscience.cdk.interfaces.IAtom> rMap,
List<org.openscience.cdk.interfaces.IAtom> newProdAtoms,
SMIRKSReaction reaction) |
void |
applyHAtomTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target,
List<org.openscience.cdk.interfaces.IAtom> rMap,
List<org.openscience.cdk.interfaces.IAtom> newProdAtoms,
SMIRKSReaction reaction) |
void |
applyStereoTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target,
List<org.openscience.cdk.interfaces.IAtom> rMap,
List<org.openscience.cdk.interfaces.IAtom> newProdAtoms,
SMIRKSReaction reaction) |
boolean |
applyTransformation(org.openscience.cdk.interfaces.IAtomContainer target,
IAcceptable selection,
SMIRKSReaction reaction) |
boolean |
applyTransformation(org.openscience.cdk.interfaces.IAtomContainer target,
SMIRKSReaction reaction) |
org.openscience.cdk.interfaces.IAtomContainer |
applyTransformationsAtLocationsWithCloning(org.openscience.cdk.interfaces.IAtomContainer target,
List<List<org.openscience.cdk.interfaces.IAtom>> rMaps,
SMIRKSReaction reaction) |
org.openscience.cdk.interfaces.IAtomContainerSet |
applyTransformationWithCombinedOverlappedPos(org.openscience.cdk.interfaces.IAtomContainer target,
IAcceptable selection,
SMIRKSReaction reaction) |
org.openscience.cdk.interfaces.IAtomContainerSet |
applyTransformationWithSingleCopyForEachPos(org.openscience.cdk.interfaces.IAtomContainer target,
IAcceptable selection,
SMIRKSReaction reaction) |
org.openscience.cdk.interfaces.IAtomContainerSet |
applyTransformationWithSingleCopyForEachPos(org.openscience.cdk.interfaces.IAtomContainer target,
IAcceptable selection,
SMIRKSReaction reaction,
SmartsConst.SSM_MODE SSMode) |
void |
applyTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target,
List<org.openscience.cdk.interfaces.IAtom> rMap,
SMIRKSReaction reaction) |
void |
checkInvalidatedDBStereo(org.openscience.cdk.interfaces.IAtomContainer target,
List<org.openscience.cdk.interfaces.IStereoElement> invalidatedStereoElements,
Map<org.openscience.cdk.interfaces.IStereoElement,StereoChange> stereoChanges) |
List<List<org.openscience.cdk.interfaces.IAtom>> |
getAllMappings(org.openscience.cdk.interfaces.IAtomContainer target) |
static SMIRKSManager |
getDefaultSMIRKSManager() |
String |
getErrors() |
SmartsConst.HandleHAtoms |
getFlagHAtomsTransformationMode() |
SmartsConst.SSM_MODE |
getFlagSSMode() |
IsomorphismTester |
getIsomorphismTester() |
List<List<org.openscience.cdk.interfaces.IAtom>> |
getNonIdenticalMappings(org.openscience.cdk.interfaces.IAtomContainer target) |
List<List<org.openscience.cdk.interfaces.IAtom>> |
getNonOverlappingMappings(org.openscience.cdk.interfaces.IAtomContainer target) |
List<SmartsAtomExpression> |
getRecursiveAtoms(org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer query) |
SmartsParser |
getSmartsParser() |
boolean |
hasErrors() |
boolean |
isFlagAddImplicitHAtomsOnResultProcess() |
boolean |
isFlagApplyStereoTransformation() |
boolean |
isFlagAromaticityTransformation() |
boolean |
isFlagCheckAromaticityOnResultProcess() |
boolean |
isFlagCheckResultStereo() |
boolean |
isFlagClearAromaticityBeforeResultProcess() |
boolean |
isFlagClearExcplicitHAtomsBeforeResultProcess() |
boolean |
isFlagClearHybridizationBeforeResultProcess() |
boolean |
isFlagClearImplicitHAtomsBeforeResultProcess() |
boolean |
isFlagConvertAddedImplicitHToExplicitOnResultProcess() |
boolean |
isFlagConvertExplicitHToImplicitOnResultProcess() |
boolean |
isFlagFilterEquivalentMappings() |
boolean |
isFlagHAtomsTransformation() |
boolean |
isFlagProcessResultStructures() |
void |
mapRecursiveAtomsAgainstTarget(List<SmartsAtomExpression> recursiveAtoms,
org.openscience.cdk.interfaces.IAtomContainer target) |
protected boolean |
matchCLG(List<org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer> queryFragments,
List<Integer> queryCLG,
org.openscience.cdk.interfaces.IAtomContainerSet targetComponents) |
boolean |
matchReaction(SMIRKSReaction reaction,
org.openscience.cdk.interfaces.IAtomContainer targetReactants,
org.openscience.cdk.interfaces.IAtomContainer targetProducts,
org.openscience.cdk.interfaces.IAtomContainer targetAgents) |
boolean |
matchReaction(SMIRKSReaction reaction,
org.openscience.cdk.interfaces.IAtomContainerSet targetReactants,
org.openscience.cdk.interfaces.IAtomContainerSet targetProducts,
org.openscience.cdk.interfaces.IAtomContainerSet targetAgents) |
SMIRKSReaction |
parse(String smirks) |
org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer |
parseComponent(String smarts,
String compType,
SmartsFlags flags,
List<org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer> fragments,
List<Integer> CLG) |
void |
printMappingClusters(List<List<Integer>> clusterIndexes,
org.openscience.cdk.interfaces.IAtomContainer target) |
void |
printSSMap(org.openscience.cdk.interfaces.IAtomContainer target,
List<org.openscience.cdk.interfaces.IAtom> rMap) |
void |
processProduct(org.openscience.cdk.interfaces.IAtomContainer mol) |
void |
setFlagAddImplicitHAtomsOnResultProcess(boolean flagAddImplicitHAtomsOnResultProcess) |
void |
setFlagApplyStereoTransformation(boolean flagApplyStereoTransformation) |
void |
setFlagAromaticityTransformation(boolean flagAromaticityTransformation) |
void |
setFlagCheckAromaticityOnResultProcess(boolean flagCheckAromaticityOnResultProcess) |
void |
setFlagCheckResultStereo(boolean flagCheckResultStereo) |
void |
setFlagClearAromaticityBeforeResultProcess(boolean flagClearAromaticityBeforeResultProcess)
Typically this flag should be true since some aromatic atoms may have lost their aromaticity
|
void |
setFlagClearExcplicitHAtomsBeforeResultProcess(boolean flagClearExcplicitHAtomsBeforeResultProcess) |
void |
setFlagClearHybridizationBeforeResultProcess(boolean flagClearHybridizationBeforeResultProcess)
Typically this flag should be true in order to correctly detect the new atom types of the transformed molecules
|
void |
setFlagClearImplicitHAtomsBeforeResultProcess(boolean flagClearImplicitHAtomsBeforeResultProcess)
Typically this flag should be true in order to correctly detect the new atom types of the transformed molecules
|
void |
setFlagConvertAddedImplicitHToExplicitOnResultProcess(boolean flagConvertAddedImplicitHToExplicitOnResultProcess)
Typically if this flag is true it is expected that FlagAddImplicitHAtomsOnResultProcess = false
|
void |
setFlagConvertExplicitHToImplicitOnResultProcess(boolean flagConvertExplicitHToImplicitOnResultProcess)
Typically if this flag is true it is expected that FlagAddImlicitHAtomsOnResultProcess= false
|
void |
setFlagFilterEquivalentMappings(boolean flagFilterEquivalentMappings) |
void |
setFlagHAtomsTransformation(boolean flagHAtomsTransformation) |
void |
setFlagHAtomsTransformationMode(SmartsConst.HandleHAtoms flagHAtomsTransformationMode) |
void |
setFlagProcessResultStructures(boolean flagProcessResultStructures)
Triggers an optional (pre)processing for further use of reaction result
|
void |
setFlagSSMode(SmartsConst.SSM_MODE flagSSMode) |
void |
setSSMode(SmartsConst.SSM_MODE mode) |
protected SmartsParser parser
protected IsomorphismTester isoTester
protected SmartsToChemObject stco
protected EquivalenceTester eqTester
protected SmartsConst.SSM_MODE FlagSSMode
protected boolean FlagFilterEquivalentMappings
protected boolean FlagProcessResultStructures
protected boolean FlagClearHybridizationBeforeResultProcess
protected boolean FlagClearAromaticityBeforeResultProcess
protected boolean FlagClearImplicitHAtomsBeforeResultProcess
protected boolean FlagClearExcplicitHAtomsBeforeResultProcess
protected boolean FlagAddImplicitHAtomsOnResultProcess
protected boolean FlagConvertAddedImplicitHToExplicitOnResultProcess
protected boolean FlagCheckAromaticityOnResultProcess
protected boolean FlagConvertExplicitHToImplicitOnResultProcess
protected boolean FlagCheckResultStereo
protected boolean FlagApplyStereoTransformation
protected boolean FlagHAtomsTransformation
protected SmartsConst.HandleHAtoms FlagHAtomsTransformationMode
protected boolean FlagAromaticityTransformation
public SMIRKSManager(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public SmartsConst.SSM_MODE getFlagSSMode()
public boolean isFlagCheckResultStereo()
public void setFlagCheckResultStereo(boolean flagCheckResultStereo)
public void setFlagSSMode(SmartsConst.SSM_MODE flagSSMode)
public boolean isFlagFilterEquivalentMappings()
public void setFlagFilterEquivalentMappings(boolean flagFilterEquivalentMappings)
public boolean isFlagProcessResultStructures()
public void setFlagProcessResultStructures(boolean flagProcessResultStructures)
flagProcessResultStructures
- public boolean isFlagClearHybridizationBeforeResultProcess()
public void setFlagClearHybridizationBeforeResultProcess(boolean flagClearHybridizationBeforeResultProcess)
flagClearHybridizationBeforeResultProcess
- public boolean isFlagClearAromaticityBeforeResultProcess()
public void setFlagClearAromaticityBeforeResultProcess(boolean flagClearAromaticityBeforeResultProcess)
flagClearAromaticityBeforeResultProcess
- public boolean isFlagClearImplicitHAtomsBeforeResultProcess()
public void setFlagClearImplicitHAtomsBeforeResultProcess(boolean flagClearImplicitHAtomsBeforeResultProcess)
flagClearImplicitHAtomsBeforeResultProcess
- public boolean isFlagAddImplicitHAtomsOnResultProcess()
public void setFlagAddImplicitHAtomsOnResultProcess(boolean flagAddImplicitHAtomsOnResultProcess)
public boolean isFlagConvertAddedImplicitHToExplicitOnResultProcess()
public void setFlagConvertAddedImplicitHToExplicitOnResultProcess(boolean flagConvertAddedImplicitHToExplicitOnResultProcess)
flagConvertAddedImlicitHToExplicitOnResultProcess
- public boolean isFlagCheckAromaticityOnResultProcess()
public void setFlagCheckAromaticityOnResultProcess(boolean flagCheckAromaticityOnResultProcess)
public boolean isFlagConvertExplicitHToImplicitOnResultProcess()
public void setFlagConvertExplicitHToImplicitOnResultProcess(boolean flagConvertExplicitHToImplicitOnResultProcess)
flagConvertExplicitHToImplicitOnResultProcess
- public boolean isFlagClearExcplicitHAtomsBeforeResultProcess()
public void setFlagClearExcplicitHAtomsBeforeResultProcess(boolean flagClearExcplicitHAtomsBeforeResultProcess)
public boolean isFlagApplyStereoTransformation()
public void setFlagApplyStereoTransformation(boolean flagApplyStereoTransformation)
public boolean isFlagHAtomsTransformation()
public void setFlagHAtomsTransformation(boolean flagHAtomsTransformation)
public SmartsConst.HandleHAtoms getFlagHAtomsTransformationMode()
public void setFlagHAtomsTransformationMode(SmartsConst.HandleHAtoms flagHAtomsTransformationMode)
public boolean isFlagAromaticityTransformation()
public void setFlagAromaticityTransformation(boolean flagAromaticityTransformation)
public static SMIRKSManager getDefaultSMIRKSManager()
public IsomorphismTester getIsomorphismTester()
public SmartsParser getSmartsParser()
public void setSSMode(SmartsConst.SSM_MODE mode)
public boolean hasErrors()
public String getErrors()
public SMIRKSReaction parse(String smirks)
public org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer parseComponent(String smarts, String compType, SmartsFlags flags, List<org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer> fragments, List<Integer> CLG)
public boolean matchReaction(SMIRKSReaction reaction, org.openscience.cdk.interfaces.IAtomContainer targetReactants, org.openscience.cdk.interfaces.IAtomContainer targetProducts, org.openscience.cdk.interfaces.IAtomContainer targetAgents) throws EmptyMoleculeException
reaction
- - this must be a valid SMIRKSReaction object created by parsing a valid SMIRKS expressiontargetReactants
- - the target reactants represented as a single atom containertargetProducts
- - the target products represented as a single atom containertagetAgents
- - the target agents may null (not specified)- in this case the agents are not matched ifEmptyMoleculeException
public boolean matchReaction(SMIRKSReaction reaction, org.openscience.cdk.interfaces.IAtomContainerSet targetReactants, org.openscience.cdk.interfaces.IAtomContainerSet targetProducts, org.openscience.cdk.interfaces.IAtomContainerSet targetAgents) throws EmptyMoleculeException
reaction
- targetReactants
- targetProducts
- tagetAgents
- EmptyMoleculeException
public boolean applyTransformation(org.openscience.cdk.interfaces.IAtomContainer target, SMIRKSReaction reaction) throws Exception
Exception
public boolean applyTransformation(org.openscience.cdk.interfaces.IAtomContainer target, IAcceptable selection, SMIRKSReaction reaction) throws Exception
Exception
public org.openscience.cdk.interfaces.IAtomContainerSet applyTransformationWithCombinedOverlappedPos(org.openscience.cdk.interfaces.IAtomContainer target, IAcceptable selection, SMIRKSReaction reaction) throws Exception
Exception
public org.openscience.cdk.interfaces.IAtomContainerSet applyTransformationWithSingleCopyForEachPos(org.openscience.cdk.interfaces.IAtomContainer target, IAcceptable selection, SMIRKSReaction reaction) throws Exception
Exception
public org.openscience.cdk.interfaces.IAtomContainerSet applyTransformationWithSingleCopyForEachPos(org.openscience.cdk.interfaces.IAtomContainer target, IAcceptable selection, SMIRKSReaction reaction, SmartsConst.SSM_MODE SSMode) throws Exception
Exception
public List<List<org.openscience.cdk.interfaces.IAtom>> getNonOverlappingMappings(org.openscience.cdk.interfaces.IAtomContainer target)
public List<List<org.openscience.cdk.interfaces.IAtom>> getNonIdenticalMappings(org.openscience.cdk.interfaces.IAtomContainer target)
public List<List<org.openscience.cdk.interfaces.IAtom>> getAllMappings(org.openscience.cdk.interfaces.IAtomContainer target)
public void applyTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target, List<org.openscience.cdk.interfaces.IAtom> rMap, SMIRKSReaction reaction)
public org.openscience.cdk.interfaces.IAtomContainer applyTransformationsAtLocationsWithCloning(org.openscience.cdk.interfaces.IAtomContainer target, List<List<org.openscience.cdk.interfaces.IAtom>> rMaps, SMIRKSReaction reaction) throws Exception
Exception
public List<SmartsAtomExpression> getRecursiveAtoms(org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer query)
public void mapRecursiveAtomsAgainstTarget(List<SmartsAtomExpression> recursiveAtoms, org.openscience.cdk.interfaces.IAtomContainer target) throws EmptyMoleculeException
EmptyMoleculeException
protected boolean matchCLG(List<org.openscience.cdk.isomorphism.matchers.IQueryAtomContainer> queryFragments, List<Integer> queryCLG, org.openscience.cdk.interfaces.IAtomContainerSet targetComponents) throws EmptyMoleculeException
EmptyMoleculeException
public void printSSMap(org.openscience.cdk.interfaces.IAtomContainer target, List<org.openscience.cdk.interfaces.IAtom> rMap)
public void printMappingClusters(List<List<Integer>> clusterIndexes, org.openscience.cdk.interfaces.IAtomContainer target)
public void processProduct(org.openscience.cdk.interfaces.IAtomContainer mol) throws Exception
Exception
public void checkInvalidatedDBStereo(org.openscience.cdk.interfaces.IAtomContainer target, List<org.openscience.cdk.interfaces.IStereoElement> invalidatedStereoElements, Map<org.openscience.cdk.interfaces.IStereoElement,StereoChange> stereoChanges)
public void applyStereoTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target, List<org.openscience.cdk.interfaces.IAtom> rMap, List<org.openscience.cdk.interfaces.IAtom> newProdAtoms, SMIRKSReaction reaction)
public void applyHAtomTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target, List<org.openscience.cdk.interfaces.IAtom> rMap, List<org.openscience.cdk.interfaces.IAtom> newProdAtoms, SMIRKSReaction reaction)
public void applyAromaticityTransformAtLocation(org.openscience.cdk.interfaces.IAtomContainer target, List<org.openscience.cdk.interfaces.IAtom> rMap, List<org.openscience.cdk.interfaces.IAtom> newProdAtoms, SMIRKSReaction reaction)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.