diff --git a/workflows/gobrowser.py b/workflows/gobrowser.py index a3abe38..662bf08 100644 --- a/workflows/gobrowser.py +++ b/workflows/gobrowser.py @@ -333,14 +333,34 @@ class GOWeightFunction(workflow.Function): return options -class Options(dict): +class TTestOptionsDialog(workflow.OptionsDialog): + + def __init__(self, data, options): + workflow.OptionsDialog.__init__(self, data, options, + ['X', 'Categories']) + +class TTestFunction(workflow.Function): def __init__(self): - dict.__init__(self) + workflow.Function.__init__(self, 't-test', 't-test') + self.options = TTestOptions() + + def run(self, x, categories): + self.show_gui(x, categories) + + def show_gui(self, x, categories): + dlg = TTestOptionsDialog([x, categories], self.options) + dlg.run() -class GOWeightOptions(Options): +class TTestOptions(workflow.Options): + def __init__(self): - Options.__init__(self) + workflow.Options.__init__(self) + + +class GOWeightOptions(workflow.Options): + def __init__(self): + workflow.Options.__init__(self) self['similarity_threshold'] = 0.0 self['rank_threshold'] = 0.0