OK, I just posted a new version of drop.tip.simmap which modifies both the $maps and $mapped.edge elements of the modified tree object created by (say) read.simmap or sim.history. Direct link to the code is here, but I have also built a new version (0.1-81) of phytools containing this update. You can download and install from source here.
Nothing spectacular, I just created this function from the tree pruning function that I completed (with some errors, now fixed in this version) this afternoon. Let's check it out:
> # first load from source or install new phytools
> install.packages("phytools_0.1-81.tar.gz",type="source", repos=NULL)
* installing *source* package 'phytools' ...
* DONE (phytools)
Loading required package: phytools
> # now simulate tree or read from file (here simulated)
> # this is the full, unpruned tree
 "t20" "t8" "t5" "t16" "t14"
Well, this seems to work - but I welcome feedback from users that try it on their own data or from trees read from file. Good luck!
Post a Comment
Note: due to the very large amount of spam, all comments are now automatically submitted for moderation.