f43bcb8fb4ae5a1c6ba6efec394fcdc1050e1ad8 braney Fri Oct 30 06:47:08 2020 -0700 fix some bugs with getting sequence in hgNear and hgGene diff --git src/hg/hgGene/sequence.c src/hg/hgGene/sequence.c index 98b3f3a..8df3c2a 100644 --- src/hg/hgGene/sequence.c +++ src/hg/hgGene/sequence.c @@ -24,30 +24,32 @@ /* Print genomic sequence anchor. */ { hPrintf("<A HREF=\"%s?%s", hgcName(), cartSidUrlString(cart)); hPrintf("&g=htcGeneInGenome&i=%s", itemName); hPrintf("&c=%s&l=%d&r=%d", chrom, start, end); hPrintf("&o=%s&table=%s", table, table); hPrintf("\" class=\"toc\">"); } void printGenomicSeqLink(struct sqlConnection *conn, char *geneId, char *chrom, int start, int end) /* Figure out known genes table, position of gene, link it. */ { char *table = genomeSetting("knownGene"); +if (globalTdb) + table = globalTdb->table; webPrintWideCellStart(3, HG_COL_TABLE); printGenomicAnchor(table, geneId, chrom, start, end); hPrintf("Genomic Sequence (%s:", chrom); printLongWithCommas(stdout, start+1); hPrintf("-"); printLongWithCommas(stdout, end); hPrintf(")</A>"); webPrintLinkCellEnd(); } static void printSeqLink(struct sqlConnection *conn, char *geneId, char *tableId, char *command, char *label, int colCount) /* Print out link to mRNA or protein. */ { char *table = genomeSetting(tableId);