splitTop
gives the number of tip children of each of the nodes at the given distance from the node. Note that, in phylobase
, Depth is how far the node is from the root taking edge length into account. I have stuck with this convention so Dist is the number of steps required to go to that node from the root. Returns an error if there are no nodes of the given distance. Note that it has been ordered to make it a topological porperty; if there is no order then trees with the same topology can give different results.
sackin
gives the sum of the distance of each of the tips from the root. This is a form of Sackin Imbalance. You may need to check that the definition you are using is the same as the one given here.
widths
gives the number of nodes at each distance from the root. Note that the elements of the returned vector give the lenths of the splitTop
vectors for each distance. It uses dists
.
avgLadder
gives the average length of all the ladders in the tree. Uses internal function laddItr
.
nLadders
gives the number of distict ladders in the tree. Also uses laddItr
.
colless
returns the normalised Colless Imblanace. That is the sum of all the node imbalances divided by 2/((n-1)(n-2)) where n is the number of tips. See nodeImb
for the calculation of the imblalance for particular nodes. There is also an option to return the unnormalized Colless Imbalance.
nodeFrac
returns the fraction of nodes for which func(subtree)>=threshold
where subtree
is the subtree descending from that node.
topSumm
returns the result of each of the functions in topList
on the specified tree. Similar functions (mostly applied to many trees or a model for generating trees) can be found in modelSummary
.cherries
returns the number of cherries in the tree. A cherry is a node with two tip descendants.
pitchforks
returns the number of pitchforks in the tree. A pitchfork is a node with one cherry descendant and one tip descendant.
maxheight
returns the maximum height (discrete steps from the root, not taking branch length into account, or equivalently with branch lengths equal to 1) of any tip in the tree.
stairs
returns a vector containing two measures of "staircase-ness" suggested by Norstrom et al (2012) in Evol. Bioinf. Online. See also the PhyloTempo package.
ILnumber
returns the number of nodes with a single tip descendant in the tree.