... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
CHANGES IN VERSION 1.7.4 |
2 | 2 |
------------------------ |
3 |
+ o bug fixed of rm.singleton.newick, remove singleton parent instead of singleton <2016-12-01, Thu> |
|
3 | 4 |
o reorder phylo to postorder before ladderrize <2016-11-28, Mon> |
4 | 5 |
o allow yscale to use data stored in phylo4d object <2016-11-24, Thu> |
5 | 6 |
+ https://github.com/GuangchuangYu/ggtree/issues/98 |
... | ... |
@@ -87,9 +87,8 @@ rm.singleton.newick <- function(nwk, outfile = NULL) { |
87 | 87 |
p.singleton %<>% names %>% as.numeric |
88 | 88 |
edge <- tree$edge |
89 | 89 |
idx <- which(edge[,1] == p.singleton) |
90 |
- singleton <- edge[idx, 2] |
|
91 |
- sidx <- which(edge[,1] == singleton) |
|
92 |
- edge[sidx,1] <- p.singleton |
|
90 |
+ sidx <- which(edge[,2] == p.singleton) |
|
91 |
+ edge[sidx,2] <- edge[idx, 2] |
|
93 | 92 |
edge <- edge[-idx,] |
94 | 93 |
tree$edge <- edge |
95 | 94 |
tree$edge.length[sidx] %<>% add(., tree$edge.length[idx]) |
... | ... |
@@ -4,7 +4,7 @@ ggtree: an R package for visualization and annotation of phylogenetic trees with |
4 | 4 |
|
5 | 5 |
[](https://bioconductor.org/packages/ggtree) [](https://github.com/GuangchuangYu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) <img src="logo.png" align="right" /> |
6 | 6 |
|
7 |
-[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
7 |
+[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
8 | 8 |
|
9 | 9 |
[](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#archives) [](https://bioconductor.org/checkResults/devel/bioc-LATEST/ggtree/) [](https://travis-ci.org/GuangchuangYu/ggtree) [](https://ci.appveyor.com/project/GuangchuangYu/ggtree) [](http://bioconda.github.io/recipes/bioconductor-ggtree/README.html) |
10 | 10 |
|