OEGetPolymerType

Attention

This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.

unsigned int OEGetPolymerType(const OEMolBase& monomer_mol)
unsigned int OEGetPolymerType(const std::string& monomerSmiles)

Determines the polymer type of the monomer defined by its molecule or smiles representation. Returns OEPolymerType.Undefined if given monomer does not satisfy the requirement of any of the specific polymer type.

See also