OEDetectMonomers
Attention
This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.
bool OEDetectMonomers(OEMolBase& mol, const OEMonomerSet& monomers)
bool OEDetectMonomers(OEMolBase& mol, const OEMonomerSet& monomers,
const std::string& codeSet)
Detects the monomers defined in the specified monomer set in the given molecule. The function returns true if all atoms in the molecule are part of the defined monomers and false otherwise.
- mol
The molecule (
OEMolBase) to be searched for monomers.- monomers
The monomer set (
OEMonomerSet) that stores the monomers that are being detected.- code-set
The code set to use for detecting monomers, if not specified the primary code-set of the monomer set will be used.
The detected monomers are stored on the molecule as groups (OEGroupBase).
Example
See also
OEMonomerSetclassOEMolToHelmfunction