Description Public fields Methods Examples
PhyloDiv and PhyloDivOne classes
PhyloDiv and PhyloDivOne classes
trees(list) list of phylogenetic trees
query(character) query string
dataignored for now
print()print method for 'PhyloDivOne' objects
PhyloDiv$print(x, ...)
xself
...ignored
new()Create a new 'PhyloDiv' object
PhyloDiv$new(...)
...any number of 'PhyloDivOne' objects
A new 'PhyloDiv' object
add_tree()add a tree
PhyloDiv$add_tree(tree)
nothing, adds a tree
fetch_hierarchies()fetch hierarchy data for all trees
PhyloDiv$fetch_hierarchies()
list
to_list()coerce to a list
PhyloDiv$to_list()
list of lists
to_json()coerce to JSON
PhyloDiv$to_json(...)
json/character
clone()The objects of this class are cloneable with this method.
PhyloDiv$clone(deep = FALSE)
deepWhether to make a deep clone.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
library(ape)
set.seed(132434)
tree <- rcoal(20)
pd1 <- PhyloDivOne$new(tree)
pd1
pd1$to_list()
pd1$to_json()
x <- "((Strix_aluco:4.2,Asio_otus:4.2):3.1,Athene_noctua:7.3);"
tree <- read.tree(text = x)
# xxx
x <- PhyloDiv$new(pd1, pd1, pd1)
x
x$to_list()
x$to_json()
x$to_json(pretty = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.