bool OEDrawPeptide(OEDepict::OEImageBase& image,
                   const OEChem::OEMolBase& mol)

Draws a molecule after performing substitutions in which standard amino acids components identified in the molecule are replaced by corresponding circular glyphs.

The image on which the molecule is drawn.
The molecule being draw.

The following code snippet shows how to use the OEDrawPeptide function. The image created is shown in Figure: Example of using the OEDrawPeptide function.


Example of using the OEDrawPeptide function


The OEDrawPeptide function is not implemented to visualize large proteins. The number of heavy atoms count is limited to 250.