src/hg/hgTracks/pslTrack.c 1.32
1.32 2009/06/09 21:45:27 fanhsu
Added logic to support gisaid.
Index: src/hg/hgTracks/pslTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/pslTrack.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -b -B -U 4 -r1.31 -r1.32
--- src/hg/hgTracks/pslTrack.c 9 Jun 2009 21:21:16 -0000 1.31
+++ src/hg/hgTracks/pslTrack.c 9 Jun 2009 21:45:27 -0000 1.32
@@ -305,9 +305,16 @@
int lineSize;
char *subjListFileName;
-subjListFileName = cartOptionalString(cart, gsidSubjList);
+if (hIsGisaidServer())
+ {
+ subjListFileName = cartOptionalString(cart, gisaidSubjList);
+ }
+else
+ {
+ subjListFileName = cartOptionalString(cart, gsidSubjList);
+ }
if (subjListFileName)
{
lf = lineFileOpen(subjListFileName, TRUE);
@@ -337,9 +344,16 @@
if (!gsidSelectedSubjListLoaded) initializeGsidSubjList();
conn= hAllocConn(database);
-sprintf(query,"select subjId from gsIdXref where dnaSeqId='%s'", seqId);
+if (hIsGsidServer())
+ {
+ sprintf(query,"select subjId from gsIdXref where dnaSeqId='%s'", seqId);
+ }
+else
+ {
+ sprintf(query,"select subjId from gisaidXref where dnaSeqId='%s'", seqId);
+ }
sr = sqlMustGetResult(conn, query);
row = sqlNextRow(sr);
if (row != NULL)
{