tooluniverse.tools.visualize_molecule_3d moduleΒΆ
visualize_molecule_3d
Visualize 3D molecular structures using RDKit and py3Dmol. Supports SMILES, MOL files, SDF contenβ¦
- tooluniverse.tools.visualize_molecule_3d.visualize_molecule_3d(smiles, mol_content, sdf_content, style='stick', color_scheme='default', width=800, height=600, show_hydrogens=True, show_surface=False, generate_conformers=True, conformer_count=1, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ
Visualize 3D molecular structures using RDKit and py3Dmol. Supports SMILES, MOL files, SDF contenβ¦
- Parameters:
smiles (
str
) β SMILES string representation of the moleculemol_content (
str
) β MOL file content as stringsdf_content (
str
) β SDF file content as stringstyle (
str
) β Visualization stylecolor_scheme (
str
) β Color scheme for the moleculewidth (
int
) β Width of the visualization in pixelsheight (
int
) β Height of the visualization in pixelsshow_hydrogens (
bool
) β Whether to show hydrogen atomsshow_surface (
bool
) β Whether to show molecular surfacegenerate_conformers (
bool
) β Whether to generate multiple conformersconformer_count (
int
) β Number of conformers to generatestream_callback (
Callable
, optional) β Callback for streaming output
- Return type:
dict[str
,Any]