Monday, November 26, 2007

Not practical, but pretty.


A nested set representation of a Newick tree loaded into mx (source in 0.1.1379). Even though this isn't the best way to visualize a phylogenetic tree I was happy to just get this far. Now to see if trees can be drawn using only margins of divs and position:relative, with maybe a little opacity: for good measure. Don't hold your breath on that one.

Friday, November 23, 2007

storing phylogenetic trees in mx

Turkey in belly I've sat down to flesh out the storage of phylogenetic trees in mx. Krishna's phylo_tree lexer/parser creates nice Ruby objects of newick formatted trees, all I had to do was incorporate another of his efforts better_nested_set, to translate the parsed tree to a database table, all in all just a couple lines of new code. Visualization is another can of worms. I think I'll likely wait till a nice Rails/Ruby graph (as in trees) generator comes out before attempting this. As a thought experiment its interesting to think about how to display a tree completely in ascii, and not just drawing the branches with _, -, and |, but rather displaying groups of terminals, or labeled internal nodes in some meaningful manner depending on where you are in the tree. Its late, so I envision starting with something like "you are in twisty set of passages all alike" ...

Wednesday, November 21, 2007

Morphbank updated, now with matrices

Morphbank has been updated with new features including the ability to create and score OTUs. They will also be rolling out some new searches that return RDF and XML in the very near future, and functionality for allowing external clients to upload images.

Wednesday, November 7, 2007

relation_browser plugin for Rails

The relation_browser plugin is a neat start at using a SWF plugin written by Moritz Stefaner in a Rails environment. I've implemented it in a crude manner in mx as a taxon name hierarchy browser. I'd like to get it to work with the simple ontology editor/displayer that's also in mx, though I'll likely wait to attempt this untill the plugin is a little more mature. Every once in a while its definitely worthwhile to check out Agile's catalog of Rail's plugins for gems like this.

Tuesday, November 6, 2007

Flare

First post, maybe last. The open source visualization toolkit Flare appears at first glance (and second) to have some potential as tool for rendering phylogenetic trees. A quick look at the demo reel should convince you of this, click on the "GraphView" button therein to jump to the trees bit.