eb4b6546550cba82f0031c043ee4f55bdbec8c30
hiram
  Tue Mar 21 13:43:21 2023 -0700
expose chromAliasSetupBb for use in hubApi refs #30544

diff --git src/hg/lib/chromAlias.c src/hg/lib/chromAlias.c
index 0f49981..87769d8 100644
--- src/hg/lib/chromAlias.c
+++ src/hg/lib/chromAlias.c
@@ -245,31 +245,31 @@
 }
 
 static char * gbdbBbExists(char *database)
 /* use a gbdb bigBed as our alias file. */
 {
 // not supported at the moment
 /*
 char buffer[4096];
 safef(buffer, sizeof buffer, "/gbdb/%s/chromAlias.bb", database);
 if (fileExists(buffer))
     return cloneString(buffer);
     */
 return NULL;
 }
 
-static void chromAliasSetupBb(char *database, char *bbFile)
+void chromAliasSetupBb(char *database, char *bbFile)
 /* Look for a chromAlias bigBed file and open it. */
 {
 chromAliasGlobals.bbi = bigBedFileOpen(bbFile);
 struct slName *fieldNames = bbFieldNames(chromAliasGlobals.bbi);
 chromAliasGlobals.fieldCount = slCount(fieldNames) - chromAliasGlobals.bbi->definedFieldCount;
 AllocArray(chromAliasGlobals.fields, chromAliasGlobals.fieldCount);
 int ii;
 for(ii=0; ii < chromAliasGlobals.bbi->definedFieldCount; ii++, fieldNames = fieldNames->next)
     ;
 for(ii=0; ii < chromAliasGlobals.fieldCount; ii++, fieldNames = fieldNames->next)
     chromAliasGlobals.fields[ii] = fieldNames->name;
 chromAliasGlobals.bptList = bbiAliasOpenExtra(chromAliasGlobals.bbi);
 chromAliasGlobals.lm = lmInit(0);
 }