示例#1
0
 def default_traits_view(self):
     return View(
         VGroup(
             VGroup(Item('channel', label="Channel", style="readonly"),
                    Item('scale'),
                    Item('huefacet',
                         editor=ExtendableEnumEditor(
                             name='handler.previous_conditions_names',
                             extra_items={"None": ""}),
                         label="Color\nFacet"),
                    label="Range Setup View",
                    show_border=False),
             VGroup(Item('subset_list',
                         show_label=False,
                         editor=SubsetListEditor(
                             conditions="context.previous_wi.conditions")),
                    label="Subset",
                    show_border=False,
                    show_labels=False),
             Item('context.view_warning',
                  resizable=True,
                  visible_when='context.view_warning',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ffff99")),
             Item('context.view_error',
                  resizable=True,
                  visible_when='context.view_error',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ff9191"))))
示例#2
0
 def default_traits_view(self):
     return View(
         Item('name', editor=TextEditor(auto_set=False)),
         Item('xchannel',
              editor=EnumEditor(name='context.previous_wi.channels'),
              label="X Channel"),
         Item('ychannel',
              editor=EnumEditor(name='context.previous_wi.channels'),
              label="Y Channel"), Item('xscale', label="X Scale"),
         Item('yscale', label="Y Scale"),
         VGroup(Item('num_clusters', editor=TextEditor(auto_set=False)),
                Item('by',
                     editor=CheckListEditor(
                         cols=2, name='handler.previous_conditions_names'),
                     label='Group\nEstimates\nBy',
                     style='custom'),
                VGroup(Item(
                    'subset_list',
                    show_label=False,
                    editor=SubsetListEditor(
                        conditions="context.previous_wi.conditions")),
                       label="Subset",
                       show_border=False,
                       show_labels=False),
                Item('do_estimate',
                     editor=ButtonEditor(value=True, label="Estimate!"),
                     show_label=False),
                label="Estimation parameters",
                show_border=False), shared_op_traits)
示例#3
0
 def default_traits_view(self):
     return View(VGroup(Item('controls_list',
                             editor = VerticalListEditor(editor = InstanceEditor(view = self.control_traits_view()),
                                                         style = 'custom',
                                                         mutable = False),
                             style = 'custom'),
                 Item('handler.add_control',
                      editor = ButtonEditor(value = True,
                                            label = "Add a control")),
                 Item('handler.remove_control',
                      editor = ButtonEditor(value = True,
                                            label = "Remove a control")),
                 label = "Controls",
                 show_labels = False),
                 Item('mixture_model',
                      label = "Use mixture\nmodel?"),
                 VGroup(Item('subset_list',
                             show_label = False,
                             editor = SubsetListEditor(conditions = "context.previous_wi.conditions",
                                                       metadata = "context.previous_wi.metadata",
                                                       when = "'experiment' not in vars() or not experiment")),
                        label = "Subset",
                        show_border = False,
                        show_labels = False),
                 Item('do_estimate',
                      editor = ButtonEditor(value = True,
                                            label = "Estimate!"),
                      show_label = False),
                 shared_op_traits)
示例#4
0
    def default_traits_view(self):
        return View(Item("channels",
                         editor = CheckListEditor(cols = 2,
                                                  name = 'context.previous_wi.channels'),
                         style = 'custom'),
                    VGroup(
                        Item('blank_file'),
                        label = "Autofluorescence"),
                    VGroup(
                        Item('bleedthrough_list',
                                editor = VerticalListEditor(editor = InstanceEditor(view = self.bleedthrough_traits_view()),
                                                            style = 'custom',
                                                            mutable = False),
                                style = 'custom'),
                        label = "Bleedthrough Correction",
                        show_border = False,
                        show_labels = False),
                    VGroup(
                        Item('beads_name',
                             editor = EnumEditor(name = 'handler.beads_name_choices'),
                             label = "Beads",
                             width = -125),
                        Item('beads_file'),
                        Item('beads_unit', 
                             editor = EnumEditor(name = 'handler.beads_units')),
                        Item('bead_peak_quantile',
                             label = "Peak\nQuantile"),
                        Item('bead_brightness_threshold',
                             label = "Peak\nThreshold "),
                        Item('bead_brightness_cutoff',
                             label = "Peak\nCutoff"),
                        label = "Bead Calibration",
                        show_border = False),
                    VGroup(
                        Item('to_channel',
                             editor = EnumEditor(name = 'channels')),
                        Item('mixture_model',
                             label = "Use mixture\nmodel?"),
                           label = "Color Translation"),
                    VGroup(
                        Item('translation_list',
                                editor = VerticalListEditor(editor = InstanceEditor(view = self.translation_traits_view()),
                                                            style = 'custom',
                                                            mutable = False),
                                style = 'custom'),

                        show_labels = False),
                    VGroup(Item('subset_list',
                                show_label = False,
                                editor = SubsetListEditor(conditions = "context.previous_wi.conditions",
                                                      metadata = "context.previous_wi.metadata",
                                                      when = "'experiment' not in vars() or not experiment")),
                           label = "Subset",
                           show_border = False,
                           show_labels = False),
                    Item('do_estimate',
                         editor = ButtonEditor(value = True,
                                               label = "Estimate!"),
                         show_label = False),
                    shared_op_traits)
示例#5
0
 def default_traits_view(self):
     return View(
         VGroup(
             VGroup(Item('channel', style='readonly'),
                    Item('huefacet', style='readonly'),
                    label="Binning Default Plot",
                    show_border=False)),
         VGroup(Item(
             'subset_list',
             show_label=False,
             editor=SubsetListEditor(
                 conditions="handler.context.previous_wi.conditions")),
                label="Subset",
                show_border=False,
                show_labels=False),
         Item('context.view_warning',
              resizable=True,
              visible_when='context.view_warning',
              editor=ColorTextEditor(foreground_color="#000000",
                                     background_color="#ffff99")),
         Item('context.view_error',
              resizable=True,
              visible_when='context.view_error',
              editor=ColorTextEditor(foreground_color="#000000",
                                     background_color="#ff9191")))
示例#6
0
 def default_traits_view(self):
     return View(
         VGroup(
             VGroup(
                 Item('xstatistic',
                      editor=EnumEditor(
                          name='handler.numeric_statistics_names'),
                      label="X Statistic"),
                 Item('xscale', label="X Scale"),
                 Item('ystatistic',
                      editor=EnumEditor(
                          name='handler.numeric_statistics_names'),
                      label="Y Statistic"),
                 Item('yscale', label="Y Scale"),
                 Item('variable',
                      editor=EnumEditor(name='handler.indices')),
                 Item('xfacet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Horizontal\nFacet"),
                 Item('yfacet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Vertical\nFacet"),
                 Item('huefacet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Color\nFacet"),
                 Item('huescale', label="Hue\nScale"),
                 Item('x_error_statistic',
                      editor=ExtendableEnumEditor(
                          name='handler.statistics_names',
                          extra_items={"None": ("", "")}),
                      label="X Error\nStatistic"),
                 Item('y_error_statistic',
                      editor=ExtendableEnumEditor(
                          name='handler.statistics_names',
                          extra_items={"None": ("", "")}),
                      label="Y Error\nStatistic"),
                 label="Two-Dimensional Statistics Plot",
                 show_border=False),
             VGroup(Item(
                 'subset_list',
                 show_label=False,
                 editor=SubsetListEditor(conditions="handler.levels")),
                    label="Subset",
                    show_border=False,
                    show_labels=False),
             Item('context.view_warning',
                  resizable=True,
                  visible_when='context.view_warning',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ffff99")),
             Item('context.view_error',
                  resizable=True,
                  visible_when='context.view_error',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ff9191"))))
示例#7
0
 def default_traits_view(self):
     return View(
         VGroup(Item('channels_list',
                     editor=VerticalListEditor(editor=InstanceEditor(
                         view=self.channel_traits_view()),
                                               style='custom',
                                               mutable=False),
                     style='custom'),
                Item('handler.add_channel',
                     editor=ButtonEditor(value=True,
                                         label="Add a channel")),
                Item('handler.remove_channel',
                     editor=ButtonEditor(value=True,
                                         label="Remove a channel")),
                show_labels=False),
         VGroup(Item('xfacet',
                     editor=ExtendableEnumEditor(
                         name='handler.conditions_names',
                         extra_items={"None": ""}),
                     label="Horizontal\nFacet"),
                Item('yfacet',
                     editor=ExtendableEnumEditor(
                         name='handler.conditions_names',
                         extra_items={"None": ""}),
                     label="Vertical\nFacet"),
                Item('huefacet',
                     editor=ExtendableEnumEditor(
                         name='handler.conditions_names',
                         extra_items={"None": ""}),
                     label="Color\nFacet"),
                Item('huescale', label="Color\nScale"),
                Item('plotfacet',
                     editor=ExtendableEnumEditor(
                         name='handler.conditions_names',
                         extra_items={"None": ""}),
                     label="Tab\nFacet"),
                label="2D Histogram",
                show_border=False),
         VGroup(Item(
             'subset_list',
             show_label=False,
             editor=SubsetListEditor(conditions="context.conditions")),
                label="Subset",
                show_border=False,
                show_labels=False),
         Item('context.view_warning',
              resizable=True,
              visible_when='context.view_warning',
              editor=ColorTextEditor(foreground_color="#000000",
                                     background_color="#ffff99")),
         Item('context.view_error',
              resizable=True,
              visible_when='context.view_error',
              editor=ColorTextEditor(foreground_color="#000000",
                                     background_color="#ff9191")))
示例#8
0
 def default_traits_view(self):
     return View(
         VGroup(
             VGroup(Heading("WARNING: Very slow!"),
                    Item('xchannel',
                         editor=EnumEditor(name='context.channels'),
                         label="X Channel"),
                    Item('xscale', label="X Scale"),
                    Item('ychannel',
                         editor=EnumEditor(name='context.channels'),
                         label="Y Channel"),
                    Item('yscale', label="Y Scale"),
                    Item('xfacet',
                         editor=ExtendableEnumEditor(
                             name='handler.conditions_names',
                             extra_items={"None": ""}),
                         label="Horizontal\nFacet"),
                    Item('yfacet',
                         editor=ExtendableEnumEditor(
                             name='handler.conditions_names',
                             extra_items={"None": ""}),
                         label="Vertical\nFacet"),
                    Item('huefacet',
                         editor=ExtendableEnumEditor(
                             name='handler.conditions_names',
                             extra_items={"None": ""}),
                         label="Color\nFacet"),
                    Item('huescale', label="Color\nScale"),
                    Item('plotfacet',
                         editor=ExtendableEnumEditor(
                             name='handler.conditions_names',
                             extra_items={"None": ""}),
                         label="Tab\nFacet"),
                    label="2D Kernel Density Estimate",
                    show_border=False),
             VGroup(Item(
                 'subset_list',
                 show_label=False,
                 editor=SubsetListEditor(conditions="context.conditions")),
                    label="Subset",
                    show_border=False,
                    show_labels=False),
             Item('context.view_warning',
                  resizable=True,
                  visible_when='context.view_warning',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ffff99")),
             Item('context.view_error',
                  resizable=True,
                  visible_when='context.view_error',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ff9191"))))
示例#9
0
 def default_traits_view(self):
     return View(
         VGroup(
             VGroup(Item('channel',
                         editor=EnumEditor(name='context.channels'),
                         label="Channel"),
                    Item('scale'),
                    Item('xfacet',
                         editor=ExtendableEnumEditor(
                             name='context.conditions_names',
                             extra_items={"None": ""}),
                         label="Horizontal\nFacet"),
                    Item('yfacet',
                         editor=ExtendableEnumEditor(
                             name='context.conditions_names',
                             extra_items={"None": ""}),
                         label="Vertical\nFacet"),
                    Item('huefacet',
                         editor=ExtendableEnumEditor(
                             name='context.conditions_names',
                             extra_items={"None": ""}),
                         label="Color\nFacet"),
                    Item('huescale', label="Color\nScale"),
                    Item('plotfacet',
                         editor=ExtendableEnumEditor(
                             name='context.conditions_names',
                             extra_items={"None": ""}),
                         label="Tab\nFacet"),
                    label="Histogram Plot",
                    show_border=False),
             VGroup(Item(
                 'subset_list',
                 show_label=False,
                 editor=SubsetListEditor(conditions="context.conditions",
                                         mutable=False)),
                    label="Subset",
                    show_border=False,
                    show_labels=False),
             Item('context.view_warning',
                  resizable=True,
                  visible_when='context.view_warning',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ffff99")),
             Item('context.view_error',
                  resizable=True,
                  visible_when='context.view_error',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ff9191"))))
示例#10
0
文件: table.py 项目: cehnjun/cytoflow
 def default_traits_view(self):
     return View(
         VGroup(
             VGroup(
                 Item('statistic',
                      editor=EnumEditor(name='handler.statistics_names'),
                      label="Statistic"),
                 Item('row_facet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Rows"),
                 Item('subrow_facet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Subrows"),
                 Item('column_facet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Columns"),
                 Item('subcolumn_facet',
                      editor=ExtendableEnumEditor(name='handler.indices',
                                                  extra_items={"None": ""}),
                      label="Subcolumn"),
                 Item('export',
                      editor=ButtonEditor(label="Export..."),
                      enabled_when='result is not None',
                      show_label=False),
                 label="Table View",
                 show_border=False),
             VGroup(Item(
                 'subset_list',
                 show_label=False,
                 editor=SubsetListEditor(conditions="handler.levels")),
                    label="Subset",
                    show_border=False,
                    show_labels=False),
             Item('context.view_warning',
                  resizable=True,
                  visible_when='context.view_warning',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ffff99")),
             Item('context.view_error',
                  resizable=True,
                  visible_when='context.view_error',
                  editor=ColorTextEditor(foreground_color="#000000",
                                         background_color="#ff9191"))))
示例#11
0
 def default_traits_view(self):
     return View(
         Item('name', editor=TextEditor(auto_set=False)),
         Item('statistic',
              editor=EnumEditor(name='handler.previous_statistics_names'),
              label="Statistic"),
         Item('statistic_name',
              editor=EnumEditor(values=sorted(transform_functions.keys())),
              label="Function"),
         Item('by',
              editor=CheckListEditor(cols=2, name='handler.indices'),
              label='Group\nBy',
              style='custom'),
         VGroup(Item('subset_list',
                     show_label=False,
                     editor=SubsetListEditor(conditions="handler.levels")),
                label="Subset",
                show_border=False,
                show_labels=False), shared_op_traits)
示例#12
0
 def default_traits_view(self):
     return View(Item('blank_file'),
                 Item('channels',
                      editor = CheckListEditor(cols = 2,
                                               name = 'context.previous_wi.channels'),
                      style = 'custom'),
                 VGroup(Item('subset_list',
                             show_label = False,
                             editor = SubsetListEditor(conditions = "context.previous_wi.conditions",
                                                       metadata = "context.previous_wi.metadata",
                                                       when = "'experiment' not in vars() or not experiment")),
                        label = "Subset",
                        show_border = False,
                        show_labels = False),
                 Item('do_estimate',
                      editor = ButtonEditor(value = True,
                                            label = "Estimate!"),
                      show_label = False),
                 shared_op_traits)
示例#13
0
 def default_traits_view(self):
     return View(Item('name',
                      editor = TextEditor(auto_set = False)),
                 Item('channel',
                      editor=EnumEditor(name='context.previous_wi.channels'),
                      label = "Channel"),
                 Item('statistic_name',
                             editor = EnumEditor(values = list(summary_functions.keys())),
                             label = "Function"),
                 Item('by',
                      editor = CheckListEditor(cols = 2,
                                               name = 'handler.previous_conditions_names'),
                      label = 'Group\nBy',
                      style = 'custom'),
                 VGroup(Item('subset_list',
                             show_label = False,
                             editor = SubsetListEditor(conditions = "context.previous_wi.conditions")),
                        label = "Subset",
                        show_border = False,
                        show_labels = False),
                 shared_op_traits)
示例#14
0
 def default_traits_view(self):
     return View(Item('name',
                      editor = TextEditor(auto_set = False)),
                 VGroup(Item('channels_list',
                             editor = VerticalListEditor(editor = InstanceEditor(view = self.channel_traits_view()),
                                                         style = 'custom',
                                                         mutable = False),
                             style = 'custom'),
                 Item('handler.add_channel',
                      editor = ButtonEditor(value = True,
                                            label = "Add a channel"),
                      show_label = False),
                 Item('handler.remove_channel',
                      editor = ButtonEditor(value = True,
                                            label = "Remove a channel")),
                 show_labels = False),
                 VGroup(Item('num_components',
                             editor = TextEditor(auto_set = False),
                             label = "Num\nComponents"),
                        Item('whiten'),
                        Item('by',
                             editor = CheckListEditor(cols = 2,
                                                      name = 'handler.previous_conditions_names'),
                             label = 'Group\nEstimates\nBy',
                             style = 'custom'),
                        label = "Estimate parameters"),
                 VGroup(Item('subset_list',
                             show_label = False,
                             editor = SubsetListEditor(conditions = "context.previous_wi.conditions",
                                                       metadata = "context.previous_wi.metadata",
                                                       when = "'experiment' not in vars() or not experiment")),
                        label = "Subset",
                        show_border = False,
                        show_labels = False),
                 Item('do_estimate',
                      editor = ButtonEditor(value = True,
                                            label = "Estimate!"),
                      show_label = False),
                 shared_op_traits)