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 stylecolor_scheme (
str
) β Color scheme for the structurewidth (
int
) β Width of the visualization in pixelsheight (
int
) β Height of the visualization in pixelsshow_sidechains (
bool
) β Whether to show sidechain atomsshow_surface (
bool
) β Whether to show molecular surfacestream_callback (
Callable
, optional) β Callback for streaming output
- Return type:
dict[str
,Any]