countTrees | R Documentation |
This function counts the number of times that a set of topologies is present in a collection of trees.
countTrees(collection = NULL, ref = NULL, classes = T, verbose=T)
collection |
path to a collection of trees in a Newick format file |
ref |
path to a Newick format file with the topologies of interest |
classes |
if T then will return a vector with classification of each tree |
verbose |
returns intermediate progress messages if TRUE |
If classes is T returns a list with the first element being a numeric vector of the same length as the number of trees in the ref file. The elements of the returned vector correspond to the occurences of trees in the collection file that match the topologies supplied in the ref file. The second element is a vector the same length as the input tree collection and each tree is assigned a number based on the topology it matches.
Heath Blackmon
http://coleoguy.github.io/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.