Below is the alternate solution to phyloT (to save some money ;) to generate phylogenetic tree from NCBI taxonomical ids. Goto NCBI taxonomy browser. From the section Taxonomy Tools, select Common Tree. Upload NCBI taxonomy id list and download tree by the option save as --> phylip tree. The tree downloaded is in the multiline newick tree file format. One additional step need to be done to load that in the R.
treeText <- readLines(tree.phy)
treeText <- paste0(treeText, collapse="")
library(treeio)
tree <- read.tree(text = treeText) ## load tree
distMat <- cophenetic(tree) ## generate dist matrix
The
ete3toolkit has a taxonomy database tool which allows you to do various queries with taxids and plugs in to their Phylo tools. I can't tell you much more than that, but you might be able to start there. It can do some interesting things like return you the minimal tree which spans all your taxids, so you might be able to traverse the tree to get what you need.I think this is a good suggestion. Maybe you can have a look at link1, although I am not sure whether you can obtain species distances from ete3.
Hi, good to know such a useful resource
ete3.I will update here once I solve the problem. Thanks.