chemaxon.structurechecker.structurechecker
StructureCheckerResult
colored molecule showing the errors, None if returnColoredHit is False
StuctureCheckerBatchResult
colored molecule showing all errors as union, None if returnedColoredHit is False or no errors found
StructureFixerResult
Creates a structurechecker object.
More info about structure checkers: https://docs.chemaxon.com/display/docs/structure-checker_index
Example:
structurechecker = StructureChecker("aromaticityerror:type=basic")
structurechecker = StructureChecker(["wedgeerror", "valenceerror"])
with open("config.xml") as f:
structurechecker = StructureChecker(f)
Configuration parameter in any of the following formats:
- xml string
- action string
- list of action strings
- file object of the configuration file.
Molecule structure checking.
Parameters
- mol: The molecule to be checked.
Raises
- RuntimeError: If the molecule contains more than 500 atoms / bonds.
Returns
StructureCheckerBatchResult- Structure checking batch result.
Fixes the given structure based on the config provided during StructureChecker construction.
Parameters
- mol:
Moleculeto be fixed.
Returns
StructureFixerResultobject containing the fixed molecule and a flag showing if the fix was successful. If fix was unsuccessful it returns the original mol.