View source: R/addReplicatesOnTree.R
parse_species | R Documentation |
Utility function to add replicates to a tree, as tips with zero length branches.
parse_species(tree, ids, pattern = "(_|\\.).*$")
tree |
A phylogenetic tree with n tips. |
ids |
a vector of sample ids. |
pattern |
a regular expression to find species from sample names. Default to removing everything after a dot or underscore. |
A vector of the same length as 'ids', with the species of each sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.