mb_attrs: Parse MrBayes-supplied attributes from a NEXUS file

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function takes a tree object and produces a dataframe containing attributes attached to each node by MrBayes.

Usage

1
mb_attrs(tree)

Arguments

tree

an object of type "phylo"

Details

The returned dataframe contains one row per node, and one column per attribute. The attributes parsed are prob, prob_stddev, length_mean, length_median, length_95_HPD_low, and length_95_HPD_high.

Attributes which are derivable from the others are not parsed (for example, the prob_percent attribute is not parsed, since it's prob times 100.

Value

A dataframe of attributes.

Author(s)

Anusha Beer anbeer29@gmail.com

See Also

parse_annotated, read_annotated

Examples

1
2
3
4
5
6
  # Parse the example data included with this package
  data(finches)
  t <- parse_annotated(finches, format="nexus")

  # Obtain a table of MrBayes attributes for each node
  attrs <- mb_attrs(t)

phylotate documentation built on June 30, 2019, 1:01 a.m.