src/hg/protein/kgBestRef2/kgPrepBestRef2.c 1.6

1.6 2009/03/17 19:54:57 markd
minor speed up of rendering of mRNA/ESTs by checking gbSeq table before seq table, avoiding two sql requests. Also simplified code.
Index: src/hg/protein/kgBestRef2/kgPrepBestRef2.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/protein/kgBestRef2/kgPrepBestRef2.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/hg/protein/kgBestRef2/kgPrepBestRef2.c	3 Sep 2008 19:20:56 -0000	1.5
+++ src/hg/protein/kgBestRef2/kgPrepBestRef2.c	17 Mar 2009 19:54:57 -0000	1.6
@@ -5,10 +5,8 @@
 #include "common.h"
 #include "hCommon.h"
 #include "hdb.h"
 
-extern int hRnaSeqAndIdx(char *acc, struct dnaSeq **retSeq, HGID *retId, char *gbdate, struct sqlConnection *conn);
-
 char proteinName[20], mrnaName[20];
 char mrnaNames[500][20];
 int  mrnaScore[500];
 char proteinNameOld[20] = {""};
@@ -184,9 +182,9 @@
 
 	printf("%s\t%s\n", proteinID, mrnaID);fflush(stdout);
 	sprintf(cond_str, "name='%s'", mrnaID);
 
-        if (hRnaSeqAndIdx(mrnaID, &mSeq, &id, mrnaDate, conn3)== -1)
+        if (hRnaSeqAndIdx(mrnaID, &mSeq, &id, conn3)== -1)
 	        {
 		printf("%s could not be found!!!\n", mrnaID);fflush(stdout);
 		}
 	else