src/hg/hgc/lowelab.c 1.37
1.37 2009/09/24 21:16:35 holmes
adding description to cdd
Index: src/hg/hgc/lowelab.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/lowelab.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -b -B -U 4 -r1.36 -r1.37
--- src/hg/hgc/lowelab.c 24 Sep 2009 16:44:25 -0000 1.36
+++ src/hg/hgc/lowelab.c 24 Sep 2009 21:16:35 -0000 1.37
@@ -88,8 +88,9 @@
#include "rnaHybridization.h"
#include "cddInfo.h"
#include "alignInfo.h"
#include "loweutils.h"
+#include "cddDesc.h"
static char const rcsid[] = "$Id$";
extern char *uniprotFormat;
@@ -2850,10 +2851,10 @@
wordCount = chopLine(dupe, words);
if (wordCount > 1)
bedSize = atoi(words[1]);
if (bedSize < 3) bedSize = 3;
- /*
- sprintf(query, "select * from centraldb.cddDesc where accession = '%s'", itemName);
+
+ sprintf(query, "select * from mgCommonDb.cddDesc where accession = '%s'", itemName);
//sprintf(query, "select * from %s where query = '%s'", blastpHitsTable, queryName);
struct sqlResult *srCddDesc = sqlGetResult(conn, query);
@@ -2864,9 +2865,9 @@
element = cddDescLoad(row);
slAddTail(&description, element);
}
sqlFreeResult(&srCddDesc);
-*/
+
genericHeader(tdb,itemName);
dupe = cloneString(tdb->type);
wordCount = chopLine(dupe, words);
@@ -2881,9 +2882,9 @@
printf("<B>Accession:</B> %s<A HREF=\"http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=%s\" TARGET=_blank>",
infoload->name, infoload->NCBInum);
printf(" Link to NCBI Site</A> <BR>\n");
printf("<B>E-value:</B> %0.0e<BR>\n", infoload->evalue);
- //printf("<B>Description:</B> %s<BR>\n", description->name);
+ printf("<B>Description:</B> %s<BR>\n", description->name);
printf("<B>Protein Identity:</B> %u%%<BR>\n", infoload->percentident);
printf("<B>Percent Length:</B> %u%%<BR>\n", infoload->percentlength);
printf("<B>Position:</B> "
"<A HREF=\"%s&db=%s&position=%s%%3A%d-%d\">",