OEInChIToMol¶
bool OEInChIToMol(OEMolBase &mol, const std::string &str)
Converts an InChI string into a molecule. After constructing the molecule the following properties are perceived:
- Rings are perceived by calling the - OEFindRingAtomsAndBondsfunction.
- The aromaticity is assigned by calling the - OEAssignAromaticFlagsfunction using the- OEChem::OEAroModelOpenEyearomaticity model.
- The chirality is perceived by calling the - OEPerceiveChiralfunction.
The molecule object is cleared before parsing so the resulting molecule
object only contains atoms and bonds from the InChI.  If one
wishes to add atoms and bonds to an existing molecule, one can use
the lower-level OEParseInChI function, which preserves
any existing atoms and bonds in the molecule.
See also
- OEMolToInChIfunction
- OEMolToSTDInChIfunction
- InChI section