b622d147b7dbac52dbf3ba26928cd18e02d42bd8
braney
  Sat Feb 26 12:34:37 2022 -0800
add support for using a bigBed as the chromAlias file

diff --git src/inc/bigBed.h src/inc/bigBed.h
index e45945f..da7be40 100644
--- src/inc/bigBed.h
+++ src/inc/bigBed.h
@@ -47,31 +47,31 @@
 struct bigBedInterval
 /* A partially parsed out bed record plus some extra fields.  Use this directly
  * or convert it to an array of characters with bigBedIntervalToRow. */
     {
     struct bigBedInterval *next;	/* Next in list. */
     bits32 start, end;		/* Range inside chromosome - half open zero based. */
     char *rest;			/* Rest of line. May be NULL*/
     bits32 chromId;             /* ID of chromosome.  */
     };
 
 /*** Routines to open & close bigBed files, and to do chromosome range queries on them. ***/
 
 struct bbiFile *bigBedFileOpen(char *fileName);
 /* Open up big bed file.   Free this up with bbiFileClose. */
 
-struct bbiFile *bigBedFileOpenAlias(char *fileName, struct hash *aliasHash);
+struct bbiFile *bigBedFileOpenAlias(char *fileName, aliasFunc aliasFunc);
 /* Open up big bed file with chrom alias hash. */
 
 #define bigBedFileClose(a) bbiFileClose(a)
 
 struct bigBedInterval *bigBedIntervalQuery(struct bbiFile *bbi, char *chrom,
 	bits32 start, bits32 end, int maxItems, struct lm *lm);
 /* Get data for interval.  Return list allocated out of lm.  Set maxItems to maximum
  * number of items to return, or to 0 for all items. */
 
 int bigBedIntervalToRow(struct bigBedInterval *interval, char *chrom, char *startBuf, char *endBuf,
 	char **row, int rowSize);
 /* Convert bigBedInterval into an array of chars equivalent to what you'd get by
  * parsing the bed file. The startBuf and endBuf are used to hold the ascii representation of
  * start and end.  Note that the interval->rest string will have zeroes inserted as a side effect.
  * Returns number of fields in row.  */