src/hg/instinct/hgHeatmap2/drawingCode.c 1.74
1.74 2009/10/05 19:47:53 jzhu
fix snp summary view
Index: src/hg/instinct/hgHeatmap2/drawingCode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/drawingCode.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -b -B -U 4 -r1.73 -r1.74
--- src/hg/instinct/hgHeatmap2/drawingCode.c 28 Sep 2009 20:21:06 -0000 1.73
+++ src/hg/instinct/hgHeatmap2/drawingCode.c 5 Oct 2009 19:47:53 -0000 1.74
@@ -2498,9 +2498,8 @@
int start, end;
char pixelStr[128];
struct hash *pixelHash = hashNew(0);
-struct hash *txLength = hashNew(0);
struct hmPixel *hm, *hmList = NULL;
struct slName *sl;
struct slInt *si, *siList = NULL;
@@ -2560,15 +2559,9 @@
int score = nb->score;
if (score == 0)
score = 1;
- safef(pixelStr, sizeof(pixelStr), "%d,%d", x, score);
- el = hashLookup(txLength, pixelStr);
- if (!el)
- {
hm->count += score * sampleCount;
- hashAddInt(txLength, pixelStr, score);
- }
for(si = siList; si; si = si->next)
{
int i = si->val;