Skip to content

Commit

Permalink
add new pymol visualisation options to the main class
Browse files Browse the repository at this point in the history
  • Loading branch information
DomFijan committed Oct 6, 2023
1 parent 44a0ba4 commit 6c65f4d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ConservedWaterSearch/water_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,9 @@ def visualise_pymol(
ligand_resname: str | None = None,
dist: float = 10.0,
density_map: str | None = None,
polar_contacts: bool = False,
lunch_pymol: bool = True,
reinitialize: bool = True,
) -> None:
"""Visualise results using `pymol <https://pymol.org/>`__.
Expand All @@ -1143,7 +1146,17 @@ def visualise_pymol(
dist (float): distance from the centre of ligand around which
crystal waters shall be selected. Defaults to 10.0.
density_map (str | None, optional): Water density map to add to
visualisation session (usually .dx file). Defaults to None.
visualisation session (usually .dx file). Defaults to
None.
polar_contacts (bool, optional): If `True` polar contacts
between waters and protein will be visualised. Defaults to
False.
lunch_pymol (bool, optional): If `True` pymol will be lunched
in interactive mode. If `False` pymol will be imported
without lunching. Defaults to True.
reinitialize (bool, optional): If `True` pymol will be
reinitialized (defaults restored and objects cleaned).
Defaults to True.
"""
visualise_pymol(
self._water_type,
Expand All @@ -1157,6 +1170,9 @@ def visualise_pymol(
ligand_resname=ligand_resname,
dist=dist,
density_map=density_map,
polar_contacts=polar_contacts,
lunch_pymol=lunch_pymol,
reinitialize=reinitialize,
)

def visualise_nglview(
Expand Down

0 comments on commit 6c65f4d

Please sign in to comment.