src/hg/hgc/hgc.c 1.1574
1.1574 2009/09/24 23:05:10 hiram
Eliminate use of chainDbNormScoreAvailable() function and use the trackDb variable instead
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1573
retrieving revision 1.1574
diff -b -B -U 4 -r1.1573 -r1.1574
--- src/hg/hgc/hgc.c 23 Sep 2009 18:42:19 -0000 1.1573
+++ src/hg/hgc/hgc.c 24 Sep 2009 23:05:10 -0000 1.1574
@@ -2794,9 +2794,15 @@
printf("<B>Approximate Score within browser window:</B> %1.0f<BR>\n",
subSetScore);
printf("<BR>Fields above refer to entire chain or gap, not just the part inside the window.<BR>\n");
-if (chainDbNormScoreAvailable(database, chain->tName, track, &foundTable))
+boolean normScoreAvailable = FALSE;
+char * normScoreTest =
+ trackDbSettingClosestToHomeOrDefault(tdb, "chainNormScoreAvailable", "no");
+if (differentWord(normScoreTest, "no"))
+ normScoreAvailable = TRUE;
+
+if (normScoreAvailable)
{
char query[256];
struct sqlResult *sr;
char **row;