R: Associate values to tips in phylogeny -


i have phylogeny , data (traits values). i've reconstructed trait values nodes using ace in caper.

i used makenodelabel in ape associate reconstructed trait values appropriate nodes.

what want export nexus file (phylogeny) r contains both node values (recontructed values) and tip labels (emperical data).

i want use color codes (in figtree) indicate values, right i'm able nodes, i.e. tip-branches not have data , hence not "color codable".

i need associate values tips in order this, haven't been able figure out how this. need data associate phylogeny in "similar category", i.e. example how theta values *beast coded in nexus files.

any , appreciated.

i've found workaround:

export tree (nexus format) r reconstructed traits associated nodes. open in figtree , define "label" trait "trait". import tip annotations text file contain empirical data in column header "trait". export tree figtree new file nexus-block , include annotations. lasty, copy names name block in nexus file (animal/organism[&trait=2.35754]) , exchange names ones in coded tree. have trait values coded through [&trait=value] both nodes , tips. can color code entire tree includes empirical values associated tips of phylogeny.

sooo, that's stupid way of doing it. if has better way, i'd love hear it.


Comments

Popular posts from this blog

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -