Package schrodinger :: Package application :: Package desmond :: Module fep_scholar_util :: Class MappingAnnotator
[hide private]
[frames] | no frames]

Class MappingAnnotator

infra.canvas2d.ChemViewAnnotator --+
                                   |
                                  MappingAnnotator

This annotator allows to show atom numbers for a selected subset of atoms. In addition user can specify 'map to' list of atom numbers that will be used instead to as atom labels.

Instance Methods [hide private]
 
__init__(self, matches, map_to=None)
Instantiate a MappingAnnotator instance.
 
annotate(self, view, dm)
Add atom number to each atom
Method Details [hide private]

__init__(self, matches, map_to=None)
(Constructor)

 

Instantiate a MappingAnnotator instance.

Parameters:
  • matches (list) - list of atoms for which atom labels will be shown.
  • map_to (list) - list of atom numbers that will be used as atom labels. Atom indices in this list are zero-based.

annotate(self, view, dm)

 

Add atom number to each atom

Parameters:
  • view (Chemview) - the View this item goes in
  • dm (ChmDrawMol) - object that contains the list of atom and bond graphics