src/hg/hgc/virusClick.c 1.5

1.5 2009/06/15 21:48:03 fanhsu
Minor update.
Index: src/hg/hgc/virusClick.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/virusClick.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/hgc/virusClick.c	15 Jun 2009 21:34:19 -0000	1.4
+++ src/hg/hgc/virusClick.c	15 Jun 2009 21:48:03 -0000	1.5
@@ -164,9 +164,9 @@
 tempNameFromPrefix(imageFile, &prefix, "_highlight.jpg");
 tempNameFromPrefix(chimeraScript, &prefix, "_highlight.cmd");
 }
 
-static void showProtH1n1(char *item)
+static void showProtH1n1(char *item, char *geneSymbol)
 {
 char query2[256];
 struct sqlResult *sr2;
 char **row2;
@@ -214,11 +214,10 @@
 printf("<B>Comparison to A H1N1 gene %s concensus:</B> ", gene);
 printf("<A HREF=\"%s/%s/%s/consensus_%s.mutate", h1n1StructUrl, gene, aaSeqId, aaSeqId);
 printf("\" TARGET=_blank>%s</A><BR>\n", aaSeqId);
 
-//printf("<BR><B>3D structure prediction:</B> ");
-
-printf("<BR><B>3D Structure Prediction (PDB file):</B> ");
+printf("<BR><B>3D Structure Prediction of %s concensus sequence (with variation of sequence %s highlighted):", geneSymbol, item);
+printf("<BR>PDB file:</B> ");
 char pdbUrl[PATH_LEN];
 safef(pdbUrl, sizeof(pdbUrl), "%s/%s/decoys/%s.try1-opt3.pdb.gz", h1n1StructUrl, item, item);
 
 
@@ -497,8 +496,9 @@
 struct sqlConnection *conn  = hAllocConn(database);
 struct sqlResult *sr;
 char query[256];
 char **row;
+char *geneSymbol=NULL;
 genericHeader(tdb, item);
 
 /*pslList = getAlignments(conn, track, item);
 printAlignmentsSimple(pslList, start, "h1n1Seq", track, item);
@@ -506,9 +506,9 @@
 sprintf(query, "select seqId, geneSymbol, strain, islId from h1n1SeqXref where seqId = '%s'", item);
 sr = sqlGetResult(conn, query);
 if ((row = sqlNextRow(sr)) != NULL)
     {
-    char *seqId, *geneSymbol, *strain, *islId;
+    char *seqId, *strain, *islId;
 
     seqId      = row[0];
     geneSymbol = row[1];
     strain     = row[2];
@@ -522,9 +522,9 @@
     	   islId, islId);
     }
 htmlHorizontalLine();
 //showSAM_h1n1(item);
-showProtH1n1(item);
+showProtH1n1(item, geneSymbol);
 
 htmlHorizontalLine();
 printTrackHtml(tdb);
 
@@ -560,9 +560,9 @@
 hFreeConn(&conn);
 htmlHorizontalLine();
 
 printf("<H3>Protein Structure Analysis and Prediction</H3>");
-printf("<B>3D Structure Prediction of consensus sequence (with variations of all selected sequences highlighted)");
+printf("<B>3D Structure Prediction of consensus sequence (with variations of all selected sequences highlighted):");
 printf("<BR>PDB file:</B> ");
 
 char pdbUrl[PATH_LEN];
 safef(pdbUrl, sizeof(pdbUrl), "%s/%s/decoys/%s.try1-opt3.pdb.gz", h1n1StructUrl, item, item);