* fluent, *.py: Data and plots returned from functions will now show up in
the navigator window.
This commit is contained in:
@@ -2,6 +2,7 @@ import gtk
|
||||
import logger
|
||||
from annotations import Annotations
|
||||
from workflow import *
|
||||
import plots
|
||||
#import geneontology
|
||||
#import gostat
|
||||
from scipy import array
|
||||
@@ -14,6 +15,7 @@ class EinarsWorkflow (Workflow):
|
||||
|
||||
load = Stage('load', 'Load Data')
|
||||
load.add_function(Function('load', 'Load Microarrays'))
|
||||
load.add_function(TestDataFunction())
|
||||
self.add_stage(load)
|
||||
|
||||
preproc = Stage('preprocess', 'Preprocessing')
|
||||
@@ -83,3 +85,12 @@ class GODistanceFunction(Function):
|
||||
|
||||
return gene_distances
|
||||
|
||||
class TestDataFunction(Function):
|
||||
|
||||
def __init__(self):
|
||||
Function.__init__(self, 'test_data', 'Generate Test Data')
|
||||
|
||||
def run(self, data):
|
||||
logger.log('notice', 'Injecting foo test data')
|
||||
return [plots.SinePlot(None)]
|
||||
|
||||
|
Reference in New Issue
Block a user