Browse code

add mc.cores in densityHeatmap()

Zuguang Gu authored on 13/03/2019 17:39:11
Showing3 changed files

... ...
@@ -7,7 +7,7 @@ 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.5), GetoptLong, colorspace,
10
-    RColorBrewer, GlobalOptions (>= 0.1.0)
10
+    RColorBrewer, GlobalOptions (>= 0.1.0), parallel
11 11
 Suggests: testthat (>= 0.3), knitr, markdown, dendsort, 
12 12
     Cairo, png, jpeg, tiff, fastcluster,
13 13
     dendextend (>= 1.0.1), grImport, grImport2, glue
... ...
@@ -269,4 +269,4 @@ importFrom("utils", "combn")
269 269
 importFrom("utils", "getFromNamespace")
270 270
 importFrom("utils", "packageDescription")
271 271
 importFrom("utils", "str")
272
-
272
+importFrom("parallel", "mclapply")
... ...
@@ -33,6 +33,7 @@ densityHeatmap(data,
33 33
     cluster_columns = FALSE,
34 34
     clustering_distance_columns = "ks",
35 35
     clustering_method_columns = "complete",
36
+    mc.cores = 1,
36 37
     
37 38
     ...)
38 39
 }
... ...
@@ -60,6 +61,7 @@ densityHeatmap(data,
60 61
   \item{cluster_columns}{Whether cluster columns?}
61 62
   \item{clustering_distance_columns}{There is a specific distance method \code{ks} which is the Kolmogorov-Smirnov statistic between two distributions. For other methods, the distance is calculated on the density matrix.}
62 63
   \item{clustering_method_columns}{Pass to \code{\link{Heatmap}}.}
64
+  \item{mc.cores}{Multiple cores for calculating ks distance.}
63 65
   \item{...}{Pass to \code{\link{Heatmap}}.}
64 66
 
65 67
 }