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

  • From: Wolfgang Mauerer <wm@xxxxxxxxxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Mon, 17 Nov 2014 21:30:07 +0100

Am 17/10/2014 21:10, schrieb Mitchell Joblin:
> - 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

Thanks, looks good. --Wolfgang

Other related posts: