Simplifies a newick tree by keeping only the specified subset of tips and the internal nodes joining them. Useless internal branches are merged by simple addition.
1 | SubsetNewick(tipnames, newicktree)
|
tipnames |
A character vector with the names of the tips to keep, which must be a subset of the tip names in 'newicktree' |
newicktree |
The newick-format tree. Tip names (leaf node names) must not contain punctuation marks besides dashes or underscores |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.