In [1]:
import matplotlib as mpl
mpl.get_backend()


Out[1]:
'TkAgg'

In [2]:
%matplotlib notebook
# for caching results to prevent recalculation
# %load_ext ipycache

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.pyplot import *

import heatsequer as hs

%run '~/Python/git/heatsequer/startanalysisnoontology.py'


/Users/amnon/anaconda/envs/juphub/lib/python3.5/site-packages/matplotlib/__init__.py:1350: UserWarning:  This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

  warnings.warn(_use_error_msg)
('loading cooldb',)
('cooldb loaded',)
('loading bactdb',)
('bactdb loaded',)

In [3]:
mpl.get_backend()


Out[3]:
'nbAgg'

In [4]:
bear=hs.load('test_data/bears.clean.new.withtax.biom','test_data/map.txt')


('Loading biom table',)
('Loading mapping file test_data/map.txt',)
('number of samples in map is 96',)
('number of samples in table is 96',)
('removing 0 samples',)
('deleted. number of samples in table is now 96',)
('number of samples in mapping file is now 96',)
Samples with 0 reads: 18

In [5]:
bear=hs.filterorigreads(bear,1000)
bear=hs.filterminreads(bear,10)
bear=hs.clusterbacteria(bear,10)


('72 Samples left',)
('354 Bacteria left',)
('354 Bacteria left',)

In [7]:
hs.plotexp(bear,sortby="host_subject_id",numeric=False,usegui=True,cdb=cdb,seqdb=bdb,showline=True,ontofig='BODY_SITE',minreads=4,uselog=True,rangeall=True)


('354 Bacteria left',)
/Users/amnon/Python/git/heatsequer/ui/plotguiwindow.py
/Users/amnon/anaconda/envs/juphub/lib/python3.5/site-packages/matplotlib/artist.py:221: MatplotlibDeprecationWarning: This has been deprecated in mpl 1.5, please use the
axes property.  A removal date has not been set.
  warnings.warn(_get_axes_msg, mplDeprecation, stacklevel=1)
Out[7]:
(<heatsequer.experiment.expclass.Experiment at 0x122e080f0>,
 <matplotlib.axes._subplots.AxesSubplot at 0x122e2f1d0>)

In [19]:
import ipywidgets as widgets
from IPython.display import display

In [27]:
a=widgets.Text(description='pita',value='tata')
display(a)
for x in ['asdf','sdfsdf','sdfsdfsdfsdf','googo']:
    a.value=x

In [25]:
b=widgets.Text(description=x,value=x)
display(b)

In [28]:
a.value='amnon'

In [ ]: