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()
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()
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]:
In [108]:
show(p)
In [ ]: