Browse code

update dependency of GlobalOptions

Zuguang Gu authored on 09/06/2018 08:10:32
Showing 5 changed files

... ...
@@ -2,12 +2,12 @@ Package: ComplexHeatmap
2 2
 Type: Package
3 3
 Title: Making Complex Heatmaps
4 4
 Version: 1.19.0
5
-Date: 2017-10-25
5
+Date: 2018-6-9
6 6
 Author: Zuguang Gu
7 7
 Maintainer: Zuguang Gu <z.gu@dkfz.de>
8 8
 Depends: R (>= 3.1.2), methods, grid, graphics, stats, grDevices
9 9
 Imports: circlize (>= 0.4.1), GetoptLong, colorspace,
10
-    RColorBrewer, GlobalOptions (>= 0.0.10)
10
+    RColorBrewer, GlobalOptions (>= 0.1.0)
11 11
 Suggests: testthat (>= 0.3), knitr, markdown, cluster, MASS, pvclust, 
12 12
     dendsort, HilbertCurve, Cairo, png, jpeg, tiff, fastcluster,
13 13
     dendextend (>= 1.0.1)
... ...
@@ -19,6 +19,6 @@ Description: Complex heatmaps are efficient to visualize associations
19 19
 biocViews: Software, Visualization, Sequencing
20 20
 URL: https://github.com/jokergoo/ComplexHeatmap
21 21
 License: MIT + file LICENSE
22
-Packaged: 2017-10-25 00:00:00 UTC; Administrator
22
+Packaged: 2018-6-9 00:00:00 UTC; Administrator
23 23
 Repository: Bioconductor
24
-Date/Publication: 2017-10-25 00:00:00
24
+Date/Publication: 2018-6-9 00:00:00
... ...
@@ -1,4 +1,10 @@
1
-CHANGES in VERSIONS 1.17.1
1
+CHANGES in VERSION 1.19.1
2
+
3
+* `Heatmap()`: no column name added if the input matrix is a one-column matrix.
4
+
5
+=======================
6
+
7
+CHANGES in VERSION 1.17.1
2 8
 
3 9
 * `Legend()`: add `by_row` argument to control the arrangement of legends
4 10
   if they are put in more than one columns
... ...
@@ -432,10 +432,10 @@ Heatmap = function(matrix, col, name,
432 432
     }
433 433
     .Object@name = name
434 434
 
435
-    if(ncol(matrix) == 1 && is.null(colnames(matrix))) {
436
-        colnames(matrix) = name
437
-        .Object@matrix = matrix
438
-    }
435
+    # if(ncol(matrix) == 1 && is.null(colnames(matrix))) {
436
+    #     colnames(matrix) = name
437
+    #     .Object@matrix = matrix
438
+    # }
439 439
 
440 440
     # color for main matrix
441 441
     if(ncol(matrix) > 0 && nrow(matrix) > 0) {
... ...
@@ -9,6 +9,7 @@
9 9
 # -READ.ONLY ``TRUE`` means only to return read-only values, ``FALSE`` means only to return non-read-only
10 10
 #          values, ``NULL`` means to return both.
11 11
 # -LOCAL switch local mode
12
+# -ADD add new options
12 13
 #
13 14
 # == details
14 15
 # You can set some parameters for all heatmaps/annotations simultaneously by this global function.
... ...
@@ -56,7 +57,7 @@
56 57
 # # no example for this function
57 58
 # NULL
58 59
 #
59
-ht_global_opt = function(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE) {}
60
+ht_global_opt = function(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE, ADD = FALSE) {}
60 61
 ht_global_opt = setGlobalOptions(
61 62
 	heatmap_row_names_gp = list(
62 63
 		.value = NULL,
... ...
@@ -7,7 +7,7 @@ Global graphic options for heatmaps
7 7
 Global graphic options for heatmaps
8 8
 }
9 9
 \usage{
10
-ht_global_opt(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE)
10
+ht_global_opt(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE, ADD = FALSE)
11 11
 }
12 12
 \arguments{
13 13
 
... ...
@@ -15,7 +15,7 @@ ht_global_opt(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE)
15 15
   \item{RESET}{reset all the option values}
16 16
   \item{READ.ONLY}{\code{TRUE} means only to return read-only values, \code{FALSE} means only to return non-read-only values, \code{NULL} means to return both.}
17 17
   \item{LOCAL}{switch local mode}
18
-
18
+  \item{ADD}{add new options}
19 19
 }
20 20
 \details{
21 21
 You can set some parameters for all heatmaps/annotations simultaneously by this global function.