06d7be056190c14b85e71bc12523f18ea6815b5e
markd
  Mon Dec 7 00:50:29 2020 -0800
BLAT mmap index support merge with master

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);