Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_readwrite_v1.R
Various programs (annoyingly) label internal nodes in different ways. This function shows the corresponding node numbers for several different systems. This table can then be used to translate, when the user wishes to plot the output from various programs on the nodes of a tree. In particular, the last column contains the DIVA node-numbering scheme (Ronquist (1996), Ronquist (1997)).
1 |
tr4 |
A tree object in |
There are many ways of numbering nodes in a tree. This
returns a matrix containing (column 1) R's native
internal numbering scheme, and (column 2) the node
numbers in the downpass numbering used by C++
LAGRANGE
, in particular in their .bgkey output
file. Note that this is different from
ape
's pruningwise
downpass
ordering (see get_pruningwise_nodenums
).
The python version of LAGRANGE labels internal nodes
differently (sigh), but they are in the same order at
least, so can just be renumbered from 1 to
tr$Nnode
to get them to match the C++
LAGRANGE
node numbering.
DIVA has yet a different node numbering scheme; see
postorder_nodes_phylo4_return_table
postorder_table
A data.frame showing the various
corresponding node numbers.
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster https://code.google.com/p/lagrange/
Ronquist1996_DIVA
Ronquist_1997_DIVA
Matzke_2012_IBS
ReeSmith2008
get_pruningwise_nodenums
,
get_lagrange_nodenums
, prt
1 | test=1
|
Loading required package: rexpokit
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: Rcpp
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase
Attaching package: 'phylobase'
The following object is masked from 'package:ape':
edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.