View source: R/place_tips_taxonomically.R
place_tips_taxonomically | R Documentation |
Given a rooted tree with associated tip & node taxonomies, as well as a list of query taxonomies, place the queries on nodes of the tree based on taxonomic identity. Each query is placed at the deepest possible node (furthest from the root in terms of splits) for which it is certain that the query is a descendant of.
place_tips_taxonomically( tree,
query_labels,
query_taxonomies = NULL,
tip_taxonomies = NULL,
node_taxonomies = NULL,
tree_taxon_delimiter = ";",
query_taxon_delimiter = ";",
include_expanded_tree = TRUE)
tree |
Rooted tree of class "phylo". |
query_labels |
Character vector of length Nqueries, listing labels for the newly placed tips. |
query_taxonomies |
Optional character vector of length Nqueries, listing the taxonomic paths of the queries. If |
tip_taxonomies |
Optional character vector of length Ntips, listing taxonomic paths for the tree's tips. If |
node_taxonomies |
Optional character vector of length Nnodes, listing taxonomic paths for the tree's nodes. If |
tree_taxon_delimiter |
Character, the delimiter between taxonomic levels in the tree's tip & node taxonomies (e.g., ";" for SILVA taxonomies). |
query_taxon_delimiter |
Character, the delimiter between taxonomic levels in |
include_expanded_tree |
If |
This function assumes that the tip & node taxonomies are somewhat consistent with each other and with the tree's topology.
A named list with the following elements:
placement_nodes |
Integer vector of length Nqueries, with values in 1,..,Nnodes, specifying for each query the node on which it was placed. For queries that could not be placed on the tree, the value 0 is used. |
If include_expanded_tree
was TRUE
, the following additional elements are included:
tree |
Object of class "phylo", the extended tree constructed by adding the placements on the original tree. |
placed_tips |
Integer vector of length Nqueries, specifying which tips in the returned tree correspond to placements. For queries that could not be placed on the tree, the value 0 is used. |
Stilianos Louca
expanded_tree_from_jplace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.