* system/workflow.py: Loads and returns gene to GO term mapping.
This commit is contained in:
@@ -62,33 +62,6 @@ class Function:
|
||||
def run(self, data):
|
||||
pass
|
||||
|
||||
def foo():
|
||||
print "foo"
|
||||
|
||||
class EinarsWorkflow (Workflow):
|
||||
|
||||
def __init__(self, app):
|
||||
Workflow.__init__(self, app)
|
||||
self.name = 'Einar\'s Workflow'
|
||||
|
||||
load = Stage('load', 'Load Data')
|
||||
load.add_function(Function('load', 'Load Microarrays'))
|
||||
self.add_stage(load)
|
||||
|
||||
preproc = Stage('preprocess', 'Preprocessing')
|
||||
preproc.add_function(Function('rma', 'RMA'))
|
||||
self.add_stage(preproc)
|
||||
|
||||
go = Stage('go', 'Gene Ontology Data')
|
||||
go.add_function(Function('godist', 'GO Distances'))
|
||||
self.add_stage(go)
|
||||
|
||||
regression = Stage('regression', 'Regression')
|
||||
regression.add_function(Function('pls', 'PLS'))
|
||||
self.add_stage(regression)
|
||||
|
||||
logger.log('debug', '\tEinar\'s workflow is now active')
|
||||
|
||||
class WorkflowView (gtk.VBox):
|
||||
|
||||
def __init__(self, wf):
|
||||
@@ -106,7 +79,6 @@ class WorkflowView (gtk.VBox):
|
||||
for fun in stage.functions:
|
||||
btn = gtk.Button(fun.name)
|
||||
btn.connect('clicked', self.button_click_handler)
|
||||
# btn.connect('clicked', lambda(w): logger.log('notice', fun.name))
|
||||
btn.function = fun
|
||||
|
||||
btn_box.add(btn)
|
||||
|
Reference in New Issue
Block a user