Commit id: 71e927079cd39a6640648cb63817e21f0b2a91cc
add TODO
Commit id: c0e98b6afe6d0fd9b7bed0f92b5f909d1cb28f73
vertical_only parameter in scaleClade
Commit id: d2029e826227000f0112629b025a91e14831a79e
add apt_packages for compiling fftwtools pkg
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@104087 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -1,6 +1,11 @@ |
1 |
+## reference: http://docs.travis-ci.com/user/languages/r/ |
|
2 |
+ |
|
1 | 3 |
language: r |
2 | 4 |
bioc_required: true |
3 | 5 |
|
6 |
+apt_packages: |
|
7 |
+ - libfftw3-dev |
|
8 |
+ |
|
4 | 9 |
r_packages: |
5 | 10 |
- ape |
6 | 11 |
- phylobase |
... | ... |
@@ -18,7 +23,7 @@ bioc_packages: |
18 | 23 |
- Biostrings |
19 | 24 |
- EBImage |
20 | 25 |
- BiocStyle |
21 |
- |
|
26 |
+ |
|
22 | 27 |
after_failure: |
23 | 28 |
- ./travis-tool.sh dump_logs |
24 | 29 |
|
... | ... |
@@ -1,5 +1,7 @@ |
1 | 1 |
CHANGES IN VERSION 1.1.6 |
2 | 2 |
------------------------ |
3 |
+ o add vertical_only parameter to scaleClade and set to TRUE by default. |
|
4 |
+ only vertical will be scaled by default. <2015-05-22, Fri> |
|
3 | 5 |
o update add_colorbar & add_legend <2015-05-21, Thu> |
4 | 6 |
o add example of add_legend and gheatmap in vignette <2015-05-18, Mon> |
5 | 7 |
o gheatmap implementation of gplot <2015-05-18, Mon> |
... | ... |
@@ -302,10 +302,13 @@ hilight <- function(tree_view, node, fill="steelblue", alpha=0.5, ...) { |
302 | 302 |
##' @param tree_view tree view |
303 | 303 |
##' @param node clade node |
304 | 304 |
##' @param scale scale |
305 |
+##' @param vertical_only logical. If TRUE, only vertical will be scaled. |
|
306 |
+##' If FALSE, the clade will be scaled vertical and horizontally. |
|
307 |
+##' TRUE by default. |
|
305 | 308 |
##' @return tree view |
306 | 309 |
##' @export |
307 | 310 |
##' @author Guangchuang Yu |
308 |
-scaleClade <- function(tree_view, node, scale=1) { |
|
311 |
+scaleClade <- function(tree_view, node, scale=1, vertical_only=TRUE) { |
|
309 | 312 |
if (scale == 1) { |
310 | 313 |
return(tree_view) |
311 | 314 |
} |
... | ... |
@@ -320,8 +323,10 @@ scaleClade <- function(tree_view, node, scale=1) { |
320 | 323 |
## new_span <- span * scale |
321 | 324 |
old.sp.df <- sp.df |
322 | 325 |
sp.df$y <- df[node, "y"] + (sp.df$y - df[node, "y"]) * scale |
323 |
- sp.df$x <- df[node, "x"] + (sp.df$x - df[node, "x"]) * scale |
|
324 |
- |
|
326 |
+ if (vertical_only == FALSE) { |
|
327 |
+ sp.df$x <- df[node, "x"] + (sp.df$x - df[node, "x"]) * scale |
|
328 |
+ } |
|
329 |
+ |
|
325 | 330 |
scale_diff.up <- max(sp.df$y) - max(old.sp.df$y) |
326 | 331 |
scale_diff.lw <- min(sp.df$y) - min(old.sp.df$y) |
327 | 332 |
|
... | ... |
@@ -18,10 +18,6 @@ scale_color_ <- function(phylo, by, low=NULL, high=NULL, na.color=NULL, default. |
18 | 18 |
cols <- rainbow_hcl(n) |
19 | 19 |
} |
20 | 20 |
|
21 |
- ## if (by == "dN_vs_dS") { |
|
22 |
- ## interval <- seq(0, 1.5, length.out = 100) |
|
23 |
- ## } |
|
24 |
- |
|
25 | 21 |
idx <- getIdx(vals, MIN=MIN, MAX=MAX, interval=interval) |
26 | 22 |
interval <- attr(idx, "interval") |
27 | 23 |
|
28 | 24 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,12 @@ |
1 |
++ attach user specific data to existing tree object |
|
2 |
++ attach user specific data by node number |
|
3 |
++ mask function that accepts tree object, feature name and a function that specific how to mask. |
|
4 |
+ with this function, user can mask some of the features that are not needed to display on a tree. |
|
5 |
++ defined a function, compare_sequence, that accept a function that defined sequence feature, |
|
6 |
+ and compare the feature from parent to children and add store the info in tree object. |
|
7 |
+ So with ancestral sequences inferred by HYPHY or PAML, we can support any type of sequence feature comparison, |
|
8 |
+ not only substitution supported internally. |
|
9 |
++ support more features that can be plotted at the right hand side of the tree, |
|
10 |
+ not only matrix but also for example sequence alignment or specific window of alignment. |
|
11 |
+ |
|
12 |
+ |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
\alias{scaleClade} |
5 | 5 |
\title{scaleClade} |
6 | 6 |
\usage{ |
7 |
-scaleClade(tree_view, node, scale = 1) |
|
7 |
+scaleClade(tree_view, node, scale = 1, vertical_only = TRUE) |
|
8 | 8 |
} |
9 | 9 |
\arguments{ |
10 | 10 |
\item{tree_view}{tree view} |
... | ... |
@@ -12,6 +12,10 @@ scaleClade(tree_view, node, scale = 1) |
12 | 12 |
\item{node}{clade node} |
13 | 13 |
|
14 | 14 |
\item{scale}{scale} |
15 |
+ |
|
16 |
+\item{vertical_only}{logical. If TRUE, only vertical will be scaled. |
|
17 |
+If FALSE, the clade will be scaled vertical and horizontally. |
|
18 |
+TRUE by default.} |
|
15 | 19 |
} |
16 | 20 |
\value{ |
17 | 21 |
tree view |