Package schrodinger :: Package application :: Package desmond :: Module feputils :: Class ProteinCheckLabelSpinner
[hide private]
[frames] | no frames]

Class ProteinCheckLabelSpinner

  object --+    
           |    
LabelSpinner --+
               |
              ProteinCheckLabelSpinner

Instance Methods [hide private]
 
__init__(self, protein, label, protein_health_btn, use_cache=False)
Construct a protein checker that takes a protein and a warning label and shows a spinning animation in the label while the check is running.
 
start(self)
Start the animation
 
stop(self)
Stop the animation and restore the original icon
 
update(self)
Check if the reliability calculation is finished and if so, stop the spinner and display the results.
 
_getProcessResults(self)
Pull down the results of the finished process
 
setProtein(self, protein)
Set the protein for the spinner, stopping and restarting the spinner with the new protein if it has changed or if _use_cache is False.
 
finish(self)
Display the results of the protein reliability check.
 
showProteinHealthReport(self)
Bring up protein reliability panel to show results of protein check.

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

Class Variables [hide private]
  results_cache = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, protein, label, protein_health_btn, use_cache=False)
(Constructor)

 

Construct a protein checker that takes a protein and a warning label and shows a spinning animation in the label while the check is running.

Parameters:
  • protein (schrodinger.structure.Structure) - the protein to check
  • label (PyQt4.QtWidgets.QLabel) - the warning label
  • protein_health_btn (QtWidgets.QToolButton) - toolbutton that is used to bring up protein relaiability report panel.
  • use_cache (bool) - whether or not to cache results based upon the string representation, which introduces latency in the string generation, but saves completed results and checks if the protein changes before starting a new check thread when calling `setProtein`. Defaults to False.
Overrides: object.__init__

start(self)

 

Start the animation

Overrides: LabelSpinner.start
(inherited documentation)

stop(self)

 

Stop the animation and restore the original icon

Overrides: LabelSpinner.stop

update(self)

 

Check if the reliability calculation is finished and if so, stop the spinner and display the results.

Overrides: LabelSpinner.update

setProtein(self, protein)

 

Set the protein for the spinner, stopping and restarting the spinner with the new protein if it has changed or if _use_cache is False.

Parameters:
  • protein (structure.Structure) - the new protein

finish(self)

 

Display the results of the protein reliability check. If there are any problems, the warning label is set to visible and the tooltop set to the problem report. If there are no problems, the label is hidden.