def __init__(self, *args, **kwargs):
     super(ExpressionDisplay, self).__init__(*args, **kwargs)
     svg = self.svg = canvas.SVGCanvasWidget()
     svg.add_style("background-color", "cornsilk")
     svg.svg_width = 550
     svg.svg_height = 550
     svg.watch_event = "click mousemove"
     svg.default_event_callback = self.svg_callback
     cc = self.color_chooser = color_widget.ColorChooser()
     #cc.svg.visible = False   # default
     set_visibility(cc.svg, False)
     tdd = self.transform_dropdown = widgets.Dropdown(
         options=TRANSFORM_TEXTS,
         value=NO_TRANSFORM
     )
     tdd.on_trait_change(self.draw_click, "value")
     tdd.layout.width = "100px"
     self.title_html = widgets.HTML("Expression Heat Map")
     self.text_assembly = self.make_text_displays()
     self.match_assembly = self.make_match_assembly()
     self.genes_assembly = self.make_genes_assembly(tdd)
     self.info_area = widgets.Textarea(description="status")
     self.assembly = widgets.VBox(children=[self.title_html,
                                            self.text_assembly,
                                            self.svg,
                                            self.color_chooser.svg,
                                            self.match_assembly,
                                            self.genes_assembly,
                                            self.info_area])
     self.dx = 10
     self.dy = 2
     self.data_heat_map = None
     self.display_heat_map = None
     self.row = self.col = None
     self.drawing = False
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super(ExpressionDisplay, self).__init__(*args, **kwargs)
     svg = self.svg = canvas.SVGCanvasWidget()
     svg.add_style("background-color", "cornsilk")
     svg.svg_width = 550
     svg.svg_height = 550
     svg.watch_event = "click mousemove"
     svg.default_event_callback = self.svg_callback
     cc = self.color_chooser = color_widget.ColorChooser()
     #cc.svg.visible = False   # default
     set_visibility(cc.svg, False)
     tdd = self.transform_dropdown = widgets.Dropdown(
         options=TRANSFORM_TEXTS,
         value=NO_TRANSFORM
     )
     tdd.on_trait_change(self.draw_click, "value")
     tdd.layout.width = "100px"
     self.title_html = widgets.HTML("Expression Heat Map")
     self.text_assembly = self.make_text_displays()
     self.match_assembly = self.make_match_assembly()
     self.genes_assembly = self.make_genes_assembly(tdd)
     self.info_area = widgets.Textarea(description="status")
     self.assembly = widgets.VBox(children=[self.title_html,
                                            self.text_assembly,
                                            self.svg,
                                            self.color_chooser.svg,
                                            self.match_assembly,
                                            self.genes_assembly,
                                            self.info_area])
     self.dx = 10
     self.dy = 2
     self.data_heat_map = None
     self.display_heat_map = None
     self.row = self.col = None
     self.drawing = False
Beispiel #3
0
 def maximize_changed(self, att_name, old, new):
     set_visibility(self.hideable, new)
     self.network.maximize = new
 def colors_click(self, b=None):
     #self.color_chooser.svg.visible = self.color_checkbox.value
     set_visibility(self.color_chooser.svg, self.color_checkbox.value)
     self.draw()
Beispiel #5
0
 def colors_click(self, b=None):
     #self.color_chooser.svg.visible = self.color_checkbox.value
     set_visibility(self.color_chooser.svg, self.color_checkbox.value)
     self.draw()