This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to make a phylogenetic tree using numerical values

I am trying to make a phylogenetic tree using numerical dataset in text file. I have total 71 samples and 3003 row in the input file. I tried iqtree, it requires a phylip format but not sure how to convert the dataset in phylip format. Please suggest any way to get the tree. example file:

4 11
Sample1 11 - - - - 89 678 9 2 3 55
Sample2 11 8 7 6 5 - - 78 765 9 -
Sample3 12 - - - - 45 786 - - -
Sample4 23 8 8 7 - - - 6 5 5-
phylogenetic phylip tree mlst genome

1 answer

In R, you can use dist() to make a distance matrix and then hclust() to perform hierarchical clustering. After that, you can plot the resulting dendrogram.

Log in to answer this question.