Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

* system/workflow.py: Loads and returns gene to GO term mapping.

This commit is contained in:
Einar Ryeng 2006-04-17 12:35:31 +00:00
parent 2f2d54e5c8
commit 3668481562
2 changed files with 2 additions and 29 deletions

3
fluent
View File

@ -16,6 +16,7 @@ import workflow
import logger
import plots
import navigator
import go_workflow
PROGRAM_NAME = 'fluent'
VERSION = '0.1.0'
@ -33,7 +34,7 @@ class FluentApp:
gtk.glade.set_custom_handler(self.custom_object_factory)
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,\
str1, str2, int1, int2):

View File

@ -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)