In [1]:
%pylab inline
%config InlineBackend.figure_format = 'retina'


Populating the interactive namespace from numpy and matplotlib

In [2]:
import pandas as pd
import seaborn as sns
from ficus import FigureManager
from IPython.display import FileLink

In [3]:
meta_cols = ['full', 'tip', 'island', 'trivial']
data = pd.read_csv('fishpoo.cdbg.meta.csv')
del data['unknown']

In [4]:
with FigureManager(filename='fishpoo.16s.n_unode_meta.png', ncols=2, figsize=(16,8), show=True) as (fig, ax_mat):
    data[meta_cols].plot(ax=ax_mat[0], title='Number of Unitig-Node Types', lw=4)
    ax_mat[0].set_xlabel('Read Number')
    
    data[meta_cols].divide(data['n_unodes'], axis=0).plot(ax=ax_mat[1], lw=4,
                                                          title='Proportion of Unitig-Node Types')
    ax_mat[1].set_xlabel('Read Number')
FileLink('fishpoo.16s.n_unode_meta.png')





In [13]:
A = np.arange(25).reshape(5,5)
A


Out[13]:
array([[ 0,  1,  2,  3,  4],
       [ 5,  6,  7,  8,  9],
       [10, 11, 12, 13, 14],
       [15, 16, 17, 18, 19],
       [20, 21, 22, 23, 24]])

In [15]:
A[np.ix_(np.arange(1,4), np.arange(0,2))]


Out[15]:
array([[ 5,  6],
       [10, 11],
       [15, 16]])

In [16]:
A[1:4, 2:3]


Out[16]:
array([[ 7],
       [12],
       [17]])

In [ ]: