src/hg/instinct/hgHeatmap2/hgToolTip.c 1.10
1.10 2010/03/10 22:55:39 jsanborn
added profile to gh object for cancer public server
Index: src/hg/instinct/hgHeatmap2/hgToolTip.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/hgToolTip.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 4 -r1.9 -r1.10
--- src/hg/instinct/hgHeatmap2/hgToolTip.c 21 Aug 2009 22:22:35 -0000 1.9
+++ src/hg/instinct/hgHeatmap2/hgToolTip.c 10 Mar 2010 22:55:39 -0000 1.10
@@ -17,10 +17,8 @@
#include "json.h"
static char const rcsid[] = "$Id$";
-static char *heatMapDbProfile = "localDb"; // database profile to use
-
char *averageBed15ForId(struct bed *bedList, int orderId)
{
if (!bedList)
return NULL;
@@ -113,9 +111,9 @@
safef(query, sizeof(query),
"select * from %s where name=\"%s\"",
gh->name, probeId);
-struct sqlConnection *conn = hAllocConnProfile(heatMapDbProfile, gh->database);
+struct sqlConnection *conn = hAllocConnProfile(gh->profile, gh->database);
char **row = NULL;
struct sqlResult *sr = sqlGetResult(conn, query);
struct bed *nb, *bedList = NULL;
@@ -156,9 +154,9 @@
char *sampleField = gh->sampleField;
if (!db || !patField || !patTable || !sampleField)
return NULL;
-struct sqlConnection *conn = hAllocConnProfile(heatMapDbProfile, db);
+struct sqlConnection *conn = hAllocConnProfile(gh->profile, db);
char query[256];
safef(query, sizeof(query),
"select %s from %s where %s = \"%s\"",
@@ -198,9 +196,9 @@
//if (!raName || !db || !patField || !patTable || !sampleField)
if (!db || !patField || !patTable || !sampleField)
return NULL;
-struct sqlConnection *conn = hAllocConnProfile(heatMapDbProfile, db);
+struct sqlConnection *conn = hAllocConnProfile(gh->profile, db);
char query[256];
safef(query, sizeof(query),
"select %s from %s where %s = \"%s\"",