Package schrodinger :: Package application :: Package phase :: Module phase_markers :: Class PhaseFeatureMarker
[hide private]
[frames] | no frames]

Class PhaseFeatureMarker

object --+
         |
        PhaseFeatureMarker

Class defining a single Phase marker.

Instance Methods [hide private]
 
__init__(self, sites, color, selected, entry_id, feature_name)
Feature marker initializer.
 
getHypoID(self)
Return the hypothesis name/ID for the hypothesis from which this feature is from.
tuple
_createFeature(self, sites, color, opacity, entry_id)
Create markers for the given pharmacophore sites.
tuple
_createAromaticFeature(self, sites, color, opacity, entry_id)
Create markers for the given aromatic feature.
 
setRightClickHandler(self, pick_category)
Sets right click handler for a given pick category.
 
drawLabels(self)
Draw the labels for the sites of this features in the Workspace.
 
show(self)
 
hide(self)
 
clear(self)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
int ARROW_RADII = 0.15
radius of the arrow that is drawn between pharmacophore site and projected points.
int SPHERE_RADII = 0.8
radius of the pharmacophore site
  TORUS_RADII = 0.5
  TORUS_TUBE_RADII = 0.15
  OPACITY_DEFAULT = 0.7
  OPACITY_SELECTED = 1.0
  feature_counter = 1
Instance Variables [hide private]
  _phase_features
A dictionary containing all pharmacophore feature
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sites, color, selected, entry_id, feature_name)
(Constructor)

 

Feature marker initializer.

Parameters:
  • sites (list) - list of PhpSite objects for this feature
  • color (list) - feature marker color defined as a list of rgb values
  • selected (bool) - flag defining whether this marker should be highlighted as 'selected'
  • entry_id (int) - entry id of structure this feature belongs to
  • feature_name (str) - feature name
Overrides: object.__init__

_createFeature(self, sites, color, opacity, entry_id)

 

Create markers for the given pharmacophore sites.

Parameters:
  • sites (list) - list of PhpSite objects, where the first element is always pharmacophore site, which is followed by one or more sites for projected points ('Q' site type).
  • color (list) - list of float rgb values that define color of this feature's markers
  • opacity (float) - feature marker opacity
  • entry_id (int) - entry id of the structure that this feature is associated with
Returns: tuple

_createAromaticFeature(self, sites, color, opacity, entry_id)

 

Create markers for the given aromatic feature.

Parameters:
  • sites (list) - list of PhpSite objects, where the first element is always pharmacophore site, which is followed by one or more sites for projected points ('Q' site type).
  • color (list) - list of float rgb values that define color of this feature's markers
  • opacity (float) - feature marker opacity
  • entry_id (int) - entry id of the structure that this feature is associated with
Returns: tuple

setRightClickHandler(self, pick_category)

 

Sets right click handler for a given pick category.

Parameters:
  • pick_category - picking category of markers
  • type - str