src/hg/hgc/hgc.c 1.1628
1.1628 2010/05/18 22:39:08 kent
Fixing mrna alignment click bug from recent refactoring. Also making listItemsAssayed cgi variable conform with prefix convention.
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1627
retrieving revision 1.1628
diff -b -B -U 4 -r1.1627 -r1.1628
--- src/hg/hgc/hgc.c 18 May 2010 22:07:52 -0000 1.1627
+++ src/hg/hgc/hgc.c 18 May 2010 22:39:08 -0000 1.1628
@@ -6504,8 +6504,9 @@
char **row;
struct psl *psl;
struct dnaSeq *rnaSeq;
char *type;
+char *rootTable;
int start;
unsigned int cdsStart = 0, cdsEnd = 0;
boolean hasBin;
char accChopped[512] ;
@@ -6515,8 +6516,9 @@
/* Print start of HTML. */
writeFramesetType();
puts("<HTML>");
type = cartString(cart, "aliTrack");
+rootTable = hGetTableForTrack(database,type);
printf("<HEAD>\n<TITLE>%s vs Genomic [%s]</TITLE>\n</HEAD>\n\n", accChopped, type);
/* Get some environment vars. */
start = cartInt(cart, "o");
@@ -6538,9 +6540,9 @@
sqlFreeResult(&sr);
}
/* Look up alignments in database */
-hFindSplitTable(database, seqName, type, table, &hasBin);
+hFindSplitTable(database, seqName, rootTable, table, &hasBin);
sprintf(query, "select * from %s where qName = '%s' and tName=\"%s\" and tStart=%d",
table, acc, seqName, start);
sr = sqlGetResult(conn, query);
if ((row = sqlNextRow(sr)) == NULL)
@@ -22123,9 +22125,9 @@
else if (sameWord(table, "htcGetDnaExtended1"))
{
doGetDnaExtended1();
}
-else if (sameWord(table, "hgcListItemsAssayed"))
+else if (sameWord(table, "htcListItemsAssayed"))
{
doPeakClusterListItemsAssayed();
}