Description Usage Arguments Value Distinguishing different primary methods
Assign taxon labels to nodes in a tree when there is a consensus of IDs on descendant tips.
1 2 3 4 5 6 7 8 |
tree |
( |
taxa |
( |
ranks |
( |
method |
(a single |
cons_method |
(a single |
fallback |
( |
an S3 object with class "phylotax
", with five elements:
"assigned
a tibble::tibble()
with the same format as taxa
, containing
taxonomy assignments made by PHYLOTAX to tips.
"node_assigned
" a tibble::tibble()
with columns "node
", "label
",
"rank
" and "taxon
" giving taxonomy assignments made by PHYLOTAX to
internal nodes.
"rejected
" a tibble::tibble()
with the same format as taxa
giving
primary assignments which have been rejected by PHYLOTAX.
"retained
" a tibble::tibble()
with the same format as taxa
giving
primary assignments which have not been rehected by PHYLOTAX. These may
contain inconsistencies that PHYLOTAX was unable to resolve.
"missing
" a tibble::tibble()
with the same format as taxa
, giving the
primary assignments which have not been assessed by PHULOTAX because they
have labels which are not present on the tree.
Primary methods can be distinguished in three ways:
Not at all. For this option, taxa
should not have a column named
"method
", and the the method
argument to phylotax()
should be
NULL
.
A single column named "method
" in taxa
. If method=NULL
but taxa
has a "method
" column, then this column is assumed to uniquely
identify the methods. Assignments made by phylotax()
will have
"PHYLOTAX
" in the method column. This value can be changed by setting
the method
argument to an unnamed character
string, e.g.,
"method = 'consensus'
".
Custom columns. If the method
argument is a named character vector,
then the names are taken to be columns in taxa
(which must exist) and
the values are taken to be the values for each column which should be
used for PHYLOTAX annotations, e.g.,
"method = c(algorithm = "PHYLOTAX", region = "ITS2")
". PHYLOTAX will
treat each unique combination of values in these columns as a distinct
method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.