Description Usage Arguments Details Value Author(s) References See Also Examples
This function takes the given text string, containing data in either NEXUS or Newick format, and returns annotated phylogenetic trees.
1 | parse_annotated(str, format="nexus")
|
str |
a text string, containing tree data |
format |
a format specifier; either |
The given file text is parsed and a tree object is constructed which can be used with the functions in the ape package. Annotations of the kind produced by, for example, MrBayes, are parsed and preserved in the returned object.
In addition to edge
, edge.length
and tip.label
,
two additional vectors are added. These are node.comment
and
node.distance.comment
. These contain annotations associated
with nodes and their distance values. These arrays are indexed by node
number, not by edge. The reason for this is that this ensures that the
object will remain in a valid state after a call to reorder
which might change the ordering of the edge arrays without being aware
of annotations. If you need to obtain annotations in edge-order,
subset by the second column of the edge
array.
an object of type "phylo"
or "multiPhylo"
, augmented with
node annotations.
Daniel Beer dlbeer@gmail.com
Paradis, E. Definition of Formats for Coding Phylogenetic Trees in R. http://ape-package.ird.fr/misc/FormatTreeR_24Oct2012.pdf
print_annotated
,
read_annotated
,
write_annotated
,
finches
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.