bool OERenderUnpairedInteractionMap(OEDepict::OEImageBase &image,
                                    const OE2DActiveSiteDisplay &adisp)

Renders the protein-ligand map with clash and unpaired interactions.

The image in which the active site is drawn.
The OE2DActiveSiteDisplay object that holds the data necessary to depict the interactions of an active site.

The OERenderUnpairedInteractionMap function currently visualizes the following interactions:

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

OEInteractionHintContainer asite = new OEInteractionHintContainer(receptor, ligand);

OEImage image = new OEImage(600.0, 400.0);
OE2DActiveSiteDisplayOptions opts = new OE2DActiveSiteDisplayOptions(image.GetWidth(), image.GetHeight());
OE2DActiveSiteDisplay adisp = new OE2DActiveSiteDisplay(asite, opts);

OEGrapheme.OERenderUnpairedInteractionMap(image, adisp);
OEDepict.OEWriteImage("RenderUnpairedMap.svg", image);

Example of using the OERenderUnpairedInteraction function


Please note that unpaired interactions have no direction in 3D, therefore the linker representing these unpaired interactions in 2D have no real spatial meaning either. Ligand linkers are directed away from the ligand, while protein linkers are directed towards the ligand when rendered in 2D.

Code Example