Description Usage Arguments Value Examples
View source: R/check_clustering_on_tree.R
This function is used to test for clustering of a certain epi factor on a phylogenetic tree.
1 2 3 4 5 6 7 | check_tree_clustering(
tree,
isolate_labels,
nperm = 1000,
control_labels = NULL,
plot_path = "cluster.pdf"
)
|
tree |
Tree to look for clustering on. |
isolate_labels |
Named vector of labels by which pure clusters are defined. Names must be equivalent to tree tip label names. |
nperm |
Number of permutations to perform. |
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. |
plot_path |
Path to output histogram. No plot created if NA. |
Vector of real (1st element) and permuted (all other elements) pure cluster sizes.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.