Description Usage Arguments Value
View source: R/check_clustering_on_tree.R
Get largest pure subtrees
1 2 3 4 5 6 7 | get_largest_subtree(
subtrs,
isolate_labels,
control_labels = NULL,
bootstrap = 90,
pureness = 1
)
|
subtrs |
Subtrees created using ape::subtrees to look for clustering on. Should include all isolates of interest. |
isolate_labels |
Named vector of labels by which pure clusters are defined. Names must be equivalent to tree tip label names. |
control_labels |
Named vector of labels known to cluster. Names must be equivalent to tree tip label names. This controls for clustering by requiring that the pure clusters must contain multiple of the control labels. |
bootstrap |
Bootstrap support to use to filter unconfident tree edges (keeps > bootstrap; NULL = keep all; default: 90). |
pureness |
How pure the subtree has to be to call it a "pure" subtree (default: 1; range 0-1). |
list containing the largest pure subtree that each isolate belongs to, the index of that subtree, and the edges in that subtree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.