View source: R/addReplicatesOnTree.R
addReplicatesOnTree | R Documentation |
Utility function to add replicates to a tree, as tips with zero length branches.
addReplicatesOnTree(
tree,
traits,
species = "species",
id = "id",
eps = .Machine$double.eps^2
)
tree |
A phylogenetic tree with n tips. |
traits |
A data frame containing at least two columns, one with sample ids, and on with species names for each samples. |
species |
Name of the column containing species names. Default to "species". |
id |
Name of the column containing samples ids. Default to "id". |
eps |
A small number to add to terminal branch lengths to avoid true zeros. Default to |
A phylogenetic tree with as many tips as the number of rows in traits
,
and clusters of tips with zero branch lengths corresponding to replicates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.