vect2tree {EnvNJ} | R Documentation |
Converts a set of vectors into a tree.
vect2tree(path, metric = "cosine", clustering = "nj")
path |
path to the working directory. This directory must contain a txt file per vector and an additional txt file named vlist.txt that provides the names (one per line) of the vector txt files. |
metric |
character string indicating the metric (see metrics() to see the methods allowed). |
clustering |
string indicating the clustering method, either "nj" or "upgma". |
This function computes the distance matrix and builds the corresponding tree.
a list with two elements: a distance matrix and a tree.
envnj(), fastaconc(), envfascpp()
## Not run: vec2tree("./data_t")