54406b80d5d435970989acff7b22dd6146c6b411
braney
  Sat Jan 22 15:24:59 2022 -0800
adding chrom alias support to big files

diff --git src/lib/bwgQuery.c src/lib/bwgQuery.c
index da21237..3088092 100644
--- src/lib/bwgQuery.c
+++ src/lib/bwgQuery.c
@@ -11,34 +11,40 @@
 #include "sig.h"
 #include "sqlNum.h"
 #include "obscure.h"
 #include "dystring.h"
 #include "bPlusTree.h"
 #include "cirTree.h"
 #include "rangeTree.h"
 #include "udc.h"
 #include "zlibFace.h"
 #include "bbiFile.h"
 #include "bwgInternal.h"
 #include "bigWig.h"
 #include "bigBed.h"
 
 
+struct bbiFile *bigWigFileOpenAlias(char *fileName, struct hash *aliasHash)
+/* Open up big wig file. Using alias hash if not NULL */
+{
+return bbiFileOpenAlias(fileName, bigWigSig, "big wig", aliasHash);
+}
+
 struct bbiFile *bigWigFileOpen(char *fileName)
 /* Open up big wig file. */
 {
-return bbiFileOpen(fileName, bigWigSig, "big wig");
+return bigWigFileOpenAlias(fileName, NULL);
 }
 
 boolean bigWigFileCheckSigs(char *fileName)
 /* check file signatures at beginning and end of file */
 {
 return bbiFileCheckSigs(fileName, bigWigSig, "big wig");
 }
 
 #ifdef OLD
 static void bwgSectionHeadRead(struct bbiFile *bwf, struct bwgSectionHead *head)
 /* Read section header. */
 {
 struct udcFile *udc = bwf->udc;
 boolean isSwapped = bwf->isSwapped;
 head->chromId = udcReadBits32(udc, isSwapped);