src/hg/instinct/lib/hgHeatmapLib.c 1.70
1.70 2010/05/07 05:40:35 jsanborn
fixed bugs
Index: src/hg/instinct/lib/hgHeatmapLib.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/lib/hgHeatmapLib.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -b -B -U 4 -r1.69 -r1.70
--- src/hg/instinct/lib/hgHeatmapLib.c 17 Apr 2010 16:25:10 -0000 1.69
+++ src/hg/instinct/lib/hgHeatmapLib.c 7 May 2010 05:40:35 -0000 1.70
@@ -434,9 +434,9 @@
char *sample;
char *patStr = sqlStrFromSlNameList(slPerson);
-struct dyString *query=newDyString(2000);
+struct dyString *query = newDyString(2000);
dyStringPrintf(query,
"select %s from %s where %s in (%s) order by FIELD(%s, %s)",
val, labTable, key, patStr, key, patStr);
@@ -495,21 +494,20 @@
struct maGrouping *allA= NULL;
if(gh->custom)
allA = maGetGroupingFromCt(gh->ct);
else
-{
-struct microarrayGroups *maGs = maGroupings(gh->database, gh->name);
-if (!maGs)
+ {
+ struct microarrayGroups *maGs = maGroupings(gh->database, gh->name);
+ if (!maGs)
return;
-//struct maGrouping *allA= maGs->allArrays;
-allA= maGs->allArrays;
-}
+ allA= maGs->allArrays;
+ }
int counter = 0;
int expId; // bed15 format expId
char *sample;
struct slName *sl;
-for(sl=sampleList; sl; sl=sl->next)
+for(sl = sampleList; sl; sl = sl->next)
{
sample = sl->name;
expId = -1;
for (i=0; i< allA->size; i++)