be8645fb43ba545dc342deb80cff297c5b677a5e
braney
  Tue Sep 6 11:11:15 2016 -0700
allow bigGenePred to be used to optimize knownGene on hgTracks  #15259

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index 646913f..953b850 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -5353,30 +5353,32 @@
 	errAbort("Missing fileName in %s table", table);
     }
 
 char *rewrittenFname = hReplaceGbdb(fileName);
 freez(&fileName);
 return rewrittenFname;
 }
 
 char *bbiNameFromSettingOrTableChrom(struct trackDb *tdb, struct sqlConnection *conn, char *table,
 				     char *seqName)
 /* Return file name from bigDataUrl or little table that might have a seqName column.
  * If table does have a seqName column, return NULL if there is no file for seqName. */
 {
 char *fileName = hReplaceGbdb(trackDbSetting(tdb, "bigDataUrl"));
 if (fileName == NULL)
+    fileName = hReplaceGbdb(trackDbSetting(tdb, "bigGeneDataUrl"));
+if (fileName == NULL)
     fileName = bbiNameFromTableChrom(conn, table, seqName);
 return fileName;
 }
 
 char *bbiNameFromSettingOrTable(struct trackDb *tdb, struct sqlConnection *conn, char *table)
 /* Return file name from bigDataUrl or little table. */
 {
 return bbiNameFromSettingOrTableChrom(tdb, conn, table, NULL);
 }
 
 char *hFindLatestSnpTableConn(struct sqlConnection *conn, char *suffix)
 /* Return the name of the 'snp1__<suffix>' table with the highest build number, if any.
  * suffix may be NULL to get the 'All SNPs' table (as opposed to Common, Flagged, Mult). */
 {
 if (suffix == NULL)