tooluniverse.tools.visualize_molecule_2d moduleΒΆ
visualize_molecule_2d
Visualize 2D molecular structures using RDKit. Supports SMILES, InChI, molecule names, and variouβ¦
- tooluniverse.tools.visualize_molecule_2d.visualize_molecule_2d(smiles, inchi, molecule_name, width=400, height=400, output_format='png', show_atom_numbers=False, show_bond_numbers=False, include_stereo=True, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ
Visualize 2D molecular structures using RDKit. Supports SMILES, InChI, molecule names, and variouβ¦
- Parameters:
smiles (
str
) β SMILES string representation of the moleculeinchi (
str
) β InChI string representation of the moleculemolecule_name (
str
) β Common name of the molecule (will be resolved to SMILES via PubChem)width (
int
) β Width of the visualization in pixelsheight (
int
) β Height of the visualization in pixelsoutput_format (
str
) β Output formatshow_atom_numbers (
bool
) β Whether to show atom numbersshow_bond_numbers (
bool
) β Whether to show bond numbersinclude_stereo (
bool
) β Whether to include stereochemistry informationstream_callback (
Callable
, optional) β Callback for streaming output
- Return type:
dict[str
,Any]