Closed crazyhottommy closed 7 years ago
library(ggtree)
tree <- read.tree('outtree')
ggtree(tree)
should works.
Thanks! was using read.phlip
...
A side question is that what's the real differences between a phylogenetic tree constructed by par
or packages such as ape
and phangorn
and a hierarchal clustering dendrogram using hclust?
I know the underlying algorithms are different. but in my case the phylogenetic trees look very similar to the dendrogram. (for binary values, I used dist for binary distance and use hclust for clustering)
Thanks, Tommy
read.phylip
is for phylip tree format (phylip sequence + tree text). Your tree is actually in newick format.
dendrogram is currently not supported by ggtree
.
Hi Guangchuan,
I am testing ggtree for tumor evolution. I am still learning phylogenetics. Forgive me if it sounds naive.
I have sequenced say 20 patients using whole exome and identified mutations across the samples. what I can do is to make a binary table to indicate whether a certain mutations is present or absent in each sample:
Then, I could use http://evolution.genetics.washington.edu/phylip/doc/pars.html in phylip package to construct a tree. How can I import the tree output from
par
to ggtree?Two outputs from par:
outfile:
outtree:
Thanks, Tommy