2292f9dea942be082a90d741927df1ff18a51574
braney
  Tue Apr 5 15:49:22 2022 -0700
get hgLiftOver and liftOver to work with genark hubs where the liftOver
chain may be a URL

diff --git src/hg/lib/liftOver.c src/hg/lib/liftOver.c
index b4772c0..843fcd6 100644
--- src/hg/lib/liftOver.c
+++ src/hg/lib/liftOver.c
@@ -34,35 +34,34 @@
     return '+';
 else if (c == '+')
     return '-';
 else
     return c;
 }
 
 // The maximum number of words per line that can be lifted:
 #define LIFTOVER_MAX_WORDS 2048
 
 void readLiftOverMap(char *fileName, struct hash *chainHash)
 /* Read map file into hashes. */
 {
 
 struct lineFile *lf;
-struct netParsedUrl *npu;
 if (udcIsLocal(fileName))
     lf = lineFileOpen(fileName, TRUE);
 else
-    lf = netHttpLineFileMayOpen(fileName, &npu);
+    lf = netLineFileOpen(fileName);
 
 struct chain *chain;
 struct chromMap *map;
 int chainCount = 0;
 
 while ((chain = chainRead(lf)) != NULL)
     {
     if ((map = hashFindVal(chainHash, chain->tName)) == NULL)
 	{
 	AllocVar(map);
 	map->bk = binKeeperNew(0, chain->tSize);
 	hashAddSaveName(chainHash, chain->tName, map, &map->name);
 	}
     binKeeperAdd(map->bk, chain->tStart, chain->tEnd, chain);
     ++chainCount;