Package schrodinger :: Package application :: Package bioluminate :: Package ssv :: Module toolbars :: Class AntibodyNumberingToolBar
[hide private]
[frames] | no frames]

Class AntibodyNumberingToolBar

PyQt4.QtGui.QToolBar --+
                       |
                      AntibodyNumberingToolBar

Get the toolbar that has the combobox with the antibody numering schemes. This toolbar has a single action. When the combobox's index is changed the numbering scheme chosen is applied to the SimplifiedSequenceViewer

Instance Methods [hide private]
 
__init__(self, parent, title='Antibody numbering scheme')
 
_setup(self)
Private method to set up the combobox.
str
currentScheme(self, idx=None)
Returns the backend name of the scheme matching the specified index or the current index on the combobox, if no index is supplied.
 
showScheme(self, scheme=None)
Shows the specified scheme in the viewer, or, if no scheme is specified, shows the scheme currently selected in the combobox.
 
hideScheme(self)
Removes the antibody scheme from the viewer altogether
 
indexChanged(self, idx)
Slot called when the combobox's index is changed.
Class Variables [hide private]
  SCHEMES = [('Chothia', 'Chothia'), ('EnhancedChothia', 'Enhanc...
Antibody numbering schemes to choose from.
Method Details [hide private]

__init__(self, parent, title='Antibody numbering scheme')
(Constructor)

 
Parameters:
  • title (str) - The title of the toolbar. Used in right-click menu in a main window's toolbar area.

currentScheme(self, idx=None)

 

Returns the backend name of the scheme matching the specified index or the current index on the combobox, if no index is supplied.

Parameters:
  • idx (int) - The index of the scheme
Returns: str
The name of the requested backend scheme

showScheme(self, scheme=None)

 

Shows the specified scheme in the viewer, or, if no scheme is specified, shows the scheme currently selected in the combobox.

Parameters:
  • scheme (str) - The scheme to show

indexChanged(self, idx)

 

Slot called when the combobox's index is changed. This will change the SimplifiedSequenceViewer antibody numbering scheme.


Class Variable Details [hide private]

SCHEMES

Antibody numbering schemes to choose from. Each item in the list is a tuple of: (<backend name>, <display name>).

Value:
[('Chothia', 'Chothia'), ('EnhancedChothia', 'Enhanced Chothia'), ('Ka\
bat', 'Kabat'), ('IMGT', 'IMGT'), ('AHo', 'AHo')]