Changed how the selection list works. CategoryDatasets can be dragged down to
the selection list, and will then be converted to Selections.
This commit is contained in:
@@ -2,7 +2,7 @@ import gtk
|
||||
from system import dataset, logger, plots, workflow
|
||||
#import geneontology
|
||||
#import gostat
|
||||
from scipy import array,randn,log
|
||||
from scipy import array, randn, log, ones
|
||||
import cPickle
|
||||
import networkx
|
||||
|
||||
@@ -43,6 +43,7 @@ class TestWorkflow (workflow.Workflow):
|
||||
save.add_function(DatasetSaveFunction())
|
||||
self.add_stage(save)
|
||||
|
||||
|
||||
class LoadAnnotationsFunction(workflow.Function):
|
||||
|
||||
def __init__(self):
|
||||
@@ -112,9 +113,10 @@ class TestDataFunction(workflow.Function):
|
||||
graph.add_edge(x, y, 3)
|
||||
ds = dataset.GraphDataset(array(networkx.adj_matrix(graph)))
|
||||
ds_plot = plots.NetworkPlot(ds)
|
||||
|
||||
|
||||
cds = dataset.CategoryDataset(ones([3, 3]))
|
||||
ds_scatter = plots.ScatterMarkerPlot(ds, ds, 'rows_0', 'rows_0', '0_1', '0_2')
|
||||
return [X, ds, p, ds_plot, ds_scatter,p2]
|
||||
return [X, ds, p, ds_plot, ds_scatter, p2, cds]
|
||||
|
||||
class SelectFunction(workflow.Function):
|
||||
def __init__(self):
|
||||
|
Reference in New Issue
Block a user