openpharmacophore.Viewer
- class openpharmacophore.Viewer[source]
Bases:
object
Class to visualize molecular systems and pharmacophores.
Wrapper around nglview NGLWidget
Methods
Add chemical features to the viewer.
Add multiple components to the viewer, such as Proteins, Ligands and BindingSites.
Add a pharmacophore to the viewer
Load a component to the viewer, such as a Protein, Ligand or BindingSite so, it can be visualized.
Set the style of the protein.
Shows the visualization.
Get an NGLView widget representing the view.
Attributes
Returns true if the visualization contains chemical features.
Returns true if the visualization contains a ligand.
Returns true if the visualization contains a pharmacophore.
Returns true if the visualization contains a protein.
n_components
- add_chem_feats(chem_feats)[source]
Add chemical features to the viewer.
- Parameters:
chem_feats (ChemFeatContainer)
- add_components(components)[source]
Add multiple components to the viewer, such as Proteins, Ligands and BindingSites.
- Parameters:
components (list[Any])
- add_pharmacophore(pharmacophore)[source]
Add a pharmacophore to the viewer
- Parameters:
pharmacophore (Pharmacophore)
- property has_chem_feats: bool
Returns true if the visualization contains chemical features.
- property has_ligand: bool
Returns true if the visualization contains a ligand.
- property has_pharmacophore: bool
Returns true if the visualization contains a pharmacophore.
- property has_protein: bool
Returns true if the visualization contains a protein.
- load_component(component, struct)[source]
Load a component to the viewer, such as a Protein, Ligand or BindingSite so, it can be visualized.
- Parameters:
component (Any)
struct (int, optional) – Structure, frame or conformer index.
- set_protein_style(style)[source]
Set the style of the protein.
- Parameters:
style (str) – Name of the style