In [99]:
microRNA = pd.read_table('/home/bioinfoboy/work/Jana_Flu_Mar15/differential_expression/microRNA log cpm.csv', header=0, index_col=0, sep=',')

In [100]:
from bokeh.plotting import figure, output_file, show, ColumnDataSource
import bokeh.plotting as bp
from bokeh.models import HoverTool, BoxSelectTool, WheelZoomTool, PanTool
bp.output_notebook()


BokehJS successfully loaded.

Warning: BokehJS previously loaded


In [106]:
output_file("scatter.html")
source = ColumnDataSource(
    data = dict(
        x = microRNA['MucAirEnglang091'],
        y = microRNA['MucAirEnglang092'],
        desc = list(microRNA.index)
    )
)
hover = HoverTool(
    tooltips = [
        ("(x,y)", "($x, $y)"),
        ("microRNA", "@desc"),
    ]
)

wheel_zoom = WheelZoomTool()
pan = PanTool()


2015-05-21 15:38:04 kashyap-workstation INFO Session output file 'scatter.html' already exists, will be overwritten.

In [107]:
p = figure(plot_width=500, plot_height=500, title=None, tools=[hover,wheel_zoom,pan])
p.circle('x', 'y', size=6, source=source)


Out[107]:
<bokeh.plotting.Figure at 0x7efdb5163860>

In [108]:
show(p)



In [ ]: