schrodinger.application.jaguar.html_report.graphics module

schrodinger.application.jaguar.html_report.graphics.get_2d_structure_svg(st: Structure, scale: float | None = None) str | None

Given a Structure, use sketcher to render an SVG string of the 2D chemical structure.

Parameters:
  • st – The structure to render.

  • scale – Fixed scale for rendering. None (default) for auto-scaling, or a positive value for consistent bond lengths across multiple images.

Returns:

The SVG string, or None if rendering failed.

schrodinger.application.jaguar.html_report.graphics.get_favicon_uri(product_name: str = 'jaguar') str

Maps a product name to its specific favicon file and returns the Base64 encoded Data URI string. We must use Base64 encoded SVG as the browser will ignore raw SVG tags in the favicon.

Parameters:

product_name – The product to select the favicon for.

Returns:

The favicon as a base64 encoded URI, or empty string if this was not possible.