Skip to content

Instantly share code, notes, and snippets.

View jolespin's full-sized avatar

Josh L. Espinoza jolespin

View GitHub Profile
@jolespin
jolespin / plot_eteTree.py
Created March 28, 2020 19:29 — forked from fransua/plot_eteTree.py
use matplotlib to draw phylogenetic trees from ETE3
from itertools import chain
from matplotlib.collections import LineCollection
from matplotlib import markers
from matplotlib.path import Path
import numpy as np
from ete3 import Tree, NodeStyle
@jolespin
jolespin / lda_gibbs.py
Created October 5, 2016 23:57 — forked from mblondel/lda_gibbs.py
Latent Dirichlet Allocation with Gibbs sampler
"""
(C) Mathieu Blondel - 2010
License: BSD 3 clause
Implementation of the collapsed Gibbs sampler for
Latent Dirichlet Allocation, as described in
Finding scientifc topics (Griffiths and Steyvers)
"""