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