a3e70739aa74b73a688d2638013eab96c2692dea
braney
  Thu Sep 5 11:46:00 2019 -0700
Use the string "Gencode Genes" instead of "Known Genes" in hgFind if the
track is Gencode

diff --git src/hg/lib/hgFind.c src/hg/lib/hgFind.c
index 76893cd..bbb03da 100644
--- src/hg/lib/hgFind.c
+++ src/hg/lib/hgFind.c
@@ -499,31 +499,33 @@
     pos->browserName = cloneString(row[3]);
     slAddHead(&table->posList, pos);
     }
 if (table != NULL) 
     slReverse(&table->posList);
 sqlFreeResult(&sr);
 hFreeConn(&conn);
 return ok;
 }
 
 static struct hgPosTable *addKnownGeneTable(char *db, struct hgPositions *hgp)
 /* Create new table for known genes matches, add it to hgp, and return it. */
 {
 struct hgPosTable *table;
 AllocVar(table);
-if (hTableExists(db, "kgProtMap2"))
+if (hTableExists(db, "knownAttrs"))
+    table->description = cloneString("Gencode Genes");
+else if (hTableExists(db, "kgProtMap2"))
     table->description = cloneString("UCSC Genes");
 else
     table->description = cloneString("Known Genes");
 table->name = cloneString("knownGene");
 slAddHead(&hgp->tableList, table);
 return table;
 }
 
 char *makeIndexPath(char *db)
 {
 /* create the pathname with the knowngene index for a db, result needs to be freed */
 char *path = needMem(PATH_LEN);
 safef(path, PATH_LEN, "/gbdb/%s/knownGene.ix", db);
 char *newPath = hReplaceGbdb(path);
 freez(&path);