* system/workflow.py: Loads and returns gene to GO term mapping.
This commit is contained in:
parent
2f2d54e5c8
commit
3668481562
3
fluent
3
fluent
|
@ -16,6 +16,7 @@ import workflow
|
||||||
import logger
|
import logger
|
||||||
import plots
|
import plots
|
||||||
import navigator
|
import navigator
|
||||||
|
import go_workflow
|
||||||
|
|
||||||
PROGRAM_NAME = 'fluent'
|
PROGRAM_NAME = 'fluent'
|
||||||
VERSION = '0.1.0'
|
VERSION = '0.1.0'
|
||||||
|
@ -33,7 +34,7 @@ class FluentApp:
|
||||||
|
|
||||||
gtk.glade.set_custom_handler(self.custom_object_factory)
|
gtk.glade.set_custom_handler(self.custom_object_factory)
|
||||||
self.widget_tree = gtk.glade.XML(GLADEFILENAME, APP)
|
self.widget_tree = gtk.glade.XML(GLADEFILENAME, APP)
|
||||||
self.workflow = workflow.EinarsWorkflow(self)
|
self.workflow = go_workflow.EinarsWorkflow(self)
|
||||||
|
|
||||||
def custom_object_factory(self, glade, function_name, widget_name,\
|
def custom_object_factory(self, glade, function_name, widget_name,\
|
||||||
str1, str2, int1, int2):
|
str1, str2, int1, int2):
|
||||||
|
|
|
@ -62,33 +62,6 @@ class Function:
|
||||||
def run(self, data):
|
def run(self, data):
|
||||||
pass
|
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):
|
class WorkflowView (gtk.VBox):
|
||||||
|
|
||||||
def __init__(self, wf):
|
def __init__(self, wf):
|
||||||
|
@ -106,7 +79,6 @@ class WorkflowView (gtk.VBox):
|
||||||
for fun in stage.functions:
|
for fun in stage.functions:
|
||||||
btn = gtk.Button(fun.name)
|
btn = gtk.Button(fun.name)
|
||||||
btn.connect('clicked', self.button_click_handler)
|
btn.connect('clicked', self.button_click_handler)
|
||||||
# btn.connect('clicked', lambda(w): logger.log('notice', fun.name))
|
|
||||||
btn.function = fun
|
btn.function = fun
|
||||||
|
|
||||||
btn_box.add(btn)
|
btn_box.add(btn)
|
||||||
|
|
Reference in New Issue