[codeface] [PATCH 1/7] Bug fix: incorrect data structure

  • From: Mitchell Joblin <joblin.m@xxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Fri, 17 Oct 2014 21:10:49 +0200

- recent changes to how community metrics are stored lead to
  incorrect data structure in the network visualization code

Signed-off-by: Mitchell Joblin <mitchell.joblin.ext@xxxxxxxxxxx>
---
 codeface/R/cluster/network_visualization.r | 1 +
 1 file changed, 1 insertion(+)

diff --git a/codeface/R/cluster/network_visualization.r 
b/codeface/R/cluster/network_visualization.r
index 03efbb3..a4f161f 100644
--- a/codeface/R/cluster/network_visualization.r
+++ b/codeface/R/cluster/network_visualization.r
@@ -261,6 +261,7 @@ mapCommSig2Color <- function(commSig) {
   ## Returns:
   ##   sig.color.vec: a vector of values representing the color code for each
   ##                                                community
+  commSig <- unlist(commSig)
   color.palette  <- colorRampPalette(c("#4DFF4D","#8FFFA9", "#FFFF6B", 
"#FFFF2E", "#FFB3B3","#FFB3B3"))
   color.gradient <- color.palette(256)
   commSig.scaled <- round(commSig*255) + 1
-- 
2.1.0


Other related posts: