b94993d07e5d0ef24f17a40c9ca7f5b2ddb93701
braney
  Wed May 11 10:50:56 2022 -0700
allow hubs to specify a naming authority for the chromosome that's
displayed by the browser

diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c
index 81bb420..3ba9eb9 100644
--- src/hg/lib/trackHub.c
+++ src/hg/lib/trackHub.c
@@ -668,30 +668,31 @@
 	    errAbort("must have 'defaultPos' set in assembly hub in stanza ending line %d of %s",
 		     lf->lineIx, lf->fileName);
 	el->twoBitPath = trackHubRelativeUrl(url, twoBitPath);
         if (twoBitBptUrl != NULL)
             el->twoBitBptUrl = trackHubRelativeUrl(url, twoBitBptUrl);
 
 	char *htmlPath = hashFindVal(ra, "htmlPath");
 	if (htmlPath != NULL)
 	    hashReplace(ra, "htmlPath",trackHubRelativeUrl(url, htmlPath));
 	if (groups != NULL)
 	    el->groups = trackHubRelativeUrl(url, groups);
 	addAssembly(genome, el, hub);
 	}
     el->settingsHash = ra;
     hashAdd(ra, "hubName", hub->shortLabel);
+    el->chromAuthority = hashFindVal(ra, "chromAuthority");
     }
 
 /* Clean up and go home. */
 lineFileClose(&lf);
 slReverse(&list);
 slSort(&list, genomeOrderKeyCmp);
 return list;
 }
 
 char *trackHubSetting(struct trackHub *hub, char *name)
 /* Return setting if it exists, otherwise NULL. */
 {
 return hashFindVal(hub->settings, name);
 }