read_tree | R Documentation |
This function is a convenience wrapper around the
read.tree
(Newick-format) and
read.nexus
(Nexus-format) importers provided by
the ape-package
. This function attempts to return a valid
tree if possible using either format importer. If it fails, it silently
returns NULL
by default, rather than throwing a show-stopping error.
read_tree(treefile, errorIfNULL=FALSE, ...)
treefile |
(Required). A character string implying a file |
errorIfNULL |
(Optional). Logical. Should an error be thrown if no tree
can be extracted from the connection?
Default is |
... |
(Optional). Additional parameter(s) passed to the relevant tree-importing function. |
If successful, returns a phylo
-class object as defined
in the ape-package
. Returns NULL if neither tree-reading function worked.
read_tree_greengenes
phylo
read.tree
read.nexus
read_tree(system.file("extdata", "esophagus.tree.gz", package="phyloseq")) read_tree(system.file("extdata", "GP_tree_rand_short.newick.gz", package="phyloseq"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.