Performs Hierarchical Clustering on a distance matrix
(i.e. calculated with vcf2dist
or fasta2dist)
and generates a phylogenetic tree (complete linkage by default;
single, complete, and average linkage are supported by the Java backend).
Arguments
- inputDist
Input distances file location (generated with
vcf2distorfasta2dist). File can be gzip compressed. Or adistdistances object.- verbose
Logical. If TRUE, enables verbose output from the Java backend.
Value
A character vector of the generated
phylogenetic tree in Newick format.
References
Java implementation: https://github.com/gkanogiannis/BioInfoJava-Utils
Author
Anestis Gkanogiannis, anestis@gkanogiannis.com
Examples
my.tree <- dist2tree(
inputDist =
system.file("extdata", "samples.vcf.dist.gz", package = "fastreeR"),
verbose = TRUE
)