schrodinger.application.livedesign.two_d_render module

Create 2D ligand rendered images, highlighting annotated atoms

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.application.livedesign.two_d_render.create_2d_img(st: Structure, file_name: str, annotation_property: str | None = None, highlight_smarts: list[str] | None = None, ref_st: Structure | None = None)

Create the 2D rendered image of the ligand

Parameters:
  • st – Ligand structure

  • file_name – Name of the output file

  • annotation_property – Maestro property to annotate

  • highlight_smarts – List of SMARTS strings to highlight

  • ref_st – Reference structure to align to

schrodinger.application.livedesign.two_d_render.convert_svg_to_png(svg: str, img_file: str) None

Create a PNG image from a SVG image

Parameters:
  • svg – SVG string

  • img_file – Image file name