src/hg/instinct/hgHeatmap2/drawingCode.c 1.72

1.72 2009/09/18 21:06:30 jsanborn
fixed off by one in stats
Index: src/hg/instinct/hgHeatmap2/drawingCode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/drawingCode.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -b -B -U 4 -r1.71 -r1.72
--- src/hg/instinct/hgHeatmap2/drawingCode.c	11 Sep 2009 23:15:42 -0000	1.71
+++ src/hg/instinct/hgHeatmap2/drawingCode.c	18 Sep 2009 21:06:30 -0000	1.72
@@ -955,10 +955,10 @@
 struct hgStats *ibg = NULL;
 for(ibg = bg; ibg ; ibg = ibg->next)
     {
     chromName = ibg->chrom;
-    start = ibg->chromStart;
-    end = ibg->chromEnd;
+    start = ibg->chromStart + 1;
+    end = ibg->chromEnd + 1;
 
     if (!hashLookup(chromHashX, chromName))
         continue;
 
@@ -2429,10 +2429,10 @@
     /* Draw rest of points, connecting with line to previous point
      * if not too far off. */
     for(ibg = bg; ibg ; ibg = ibg->next)
         {
-        start = ibg->chromStart;
-        end = ibg->chromEnd;
+        start = ibg->chromStart + 1;
+        end = ibg->chromEnd + 1;
 	val = sqlFloat(ibg->name);
 	
 	valCol = shadesOfColor[0];
 	if (sameWord(gh->dataType, "bed 5"))