csbio (biocs tumbled) RSS

a tumblelog to supplement my real blog

Things too long to tweet and too unimportant to blog go here.

Archive

May
31st
2010
Mon
permalink

Newick TreeVisitor cheat sheet

pre_visit_tree(t) — callback called before exploring (sub-)tree t.

post_visit_tree(t) — callback called after exploring (sub-)tree t.

pre_visit_edge(src, bo,le, dst) — callback called before exploring an edge. Here src is the source node and dst is the destination node, bo is the bootstrap support of the edge and le is the length of the edge.

post_visit_edge(src, bo,le, dst) — callback called before exploring an edge. Here src is the source node and dst is the destination node, bo is the bootstrap support of the edge and le is the length of the edge.

visit_leaf(l) — callback called when exploring leaf l.

(From the Newick source)