pypath.inputs.hmdb.visual.structure_svg§

pypath.inputs.hmdb.visual.structure_svg(hmdb_id: str, path: str | None = None) str[source]§

Retrieve the picture of the 2D structure of a metabolite in SVG format.

Parameters:
  • hmdb_id – Identifier of a metabolite.

  • path – Save the SVG file to this path (optional).

Returns:

The SVG file as a string.