tooluniverse.tools.visualize_protein_structure_3d moduleΒΆ

visualize_protein_structure_3d

Visualize 3D protein structures using py3Dmol. Supports PDB IDs, PDB file content, and various vi…

tooluniverse.tools.visualize_protein_structure_3d.visualize_protein_structure_3d(pdb_id, pdb_content, style='cartoon', color_scheme='spectrum', width=800, height=600, show_sidechains=False, show_surface=False, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ

Visualize 3D protein structures using py3Dmol. Supports PDB IDs, PDB file content, and various vi…

Parameters:
  • pdb_id (str) – PDB identifier (e.g., β€˜1CRN’, β€˜7CGO’). Either pdb_id or pdb_content must be p…

  • pdb_content (str) – Raw PDB file content as string. Either pdb_id or pdb_content must be provided.

  • style (str) – Visualization style

  • color_scheme (str) – Color scheme for the structure

  • width (int) – Width of the visualization in pixels

  • height (int) – Height of the visualization in pixels

  • show_sidechains (bool) – Whether to show sidechain atoms

  • show_surface (bool) – Whether to show molecular surface

  • stream_callback (Callable, optional) – Callback for streaming output

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

dict[str, Any]