jeetsukumaran/DendroPy — pull request #5 by evoling (2012-11-15 20:30:34+00:00)
Title: Taxlabels

This pull gets the node_label_compose_func working in the nexus TAXLABELS listing, using the same technique as (and including the code from) my pull request for the translate table (https://github.com/jeetsukumaran/DendroPy/pull/4)

```python
# usage:
# python setup.py build
# cd build/lib
# ipython
# %run /path/to/test_setup.py
from dendropy import TaxonSet, Tree, TreeList
from StringIO import StringIO

t1 = Tree(stream=StringIO("((A,B),(C,D))"), schema="newick")
t2 = Tree(stream=StringIO("((A,C),(B,D))"), schema="newick")
tlist = TreeList([t1,t2])

t3 = Tree(stream=StringIO("((A,C),(B,D,E))"), schema="newick")
tlist.append(t3)
print "#### make translate block when tree #1 doesn't contain all taxa"
print tlist.as_string("nexus", translate_in_trees_block=True)
```