src/hg/instinct/hgHeatmap2/hgCircleMaps.c 1.11

1.11 2009/06/04 03:50:36 jsanborn
added copyright notices, removed cluster library
Index: src/hg/instinct/hgHeatmap2/hgCircleMaps.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/hgCircleMaps.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/hg/instinct/hgHeatmap2/hgCircleMaps.c	3 Mar 2009 00:40:13 -0000	1.10
+++ src/hg/instinct/hgHeatmap2/hgCircleMaps.c	4 Jun 2009 03:50:36 -0000	1.11
@@ -1,4 +1,8 @@
+/********************************************************************************/
+/* Copyright 2007-2009 -- The Regents of the University of California           */
+/********************************************************************************/
+
 /* hgCircleMaps.c - circular heatmaps to visualize genomic high-throughput data for 
  * multiple samples in a concise image suitable for placement in a pathway diagram
  * This file is copyright 2009 J. Zachary Sanborn.  All rights reserved. */  
 
@@ -234,8 +238,9 @@
     if (!nb)
 	continue;
     slAddHead(&nbList, nb);
     }
+slSort(nbList, bedCmp);
 
 int i = 0;
 struct slName *sl;
 struct slDouble *ad, *allData = NULL;
@@ -255,8 +260,9 @@
 
 	sd = slDoubleNew(val);
 	slAddHead(&sdList, sd);
 	}
+    slReverse(&sdList);
 
     hashAdd(rg->data, sl->name, sdList);
     rg->numSamples += 1;
     i++;  // increment expId pointer.