powered by
Builds trees based on the environment around the indicated amino acid(s).
envnj(data, r = 10, aa = 'all', metric = "cosine", clustering = "nj", outgroup = 'any')
input data must be a dataframe where each row corresponds to a protein sequence and each column to a species.
a positive integer indicating the radius of the sequence segment considered as environment.
the amino acid(s) to be used to encoded the species.
character string indicating the metric (see metrics() to see the methods allowed).
string indicating the clustering method, either "nj" or "upgma".
when a rooted tree is desired, it indicates the species to be used as outgroup.
A list with two objects, the first one is an inter-species distance matrix. The second one is an object of class 'phylo'.
This function builds alignment-independent phylogenetic trees.
otu.space(), metrics()
# NOT RUN { data(bovids) envnj(bovids[, 7:11], aa = "all", outgroup = "Pseudoryx_nghetinhensis") # }
Run the code above in your browser using DataLab