def diri(table):
    """
    from SparCC - "randomly draw from the corresponding posterior
    Dirichlet distribution with a uniform prior"
    """
    t = []
    for i in table:
        a = [j + 1 for j in i]
        t.append(np.ndarray.tolist(np.random.mtrand.dirichlet(a)))
    return t
from SparCC - "randomly draw from the corresponding posterior
    Dirichlet distribution with a uniform prior"