ea82eeb86ad5cf92ddf795f2d6f9ce84e33e52d5
chmalee
  Wed Jul 29 11:20:16 2026 -0700
Stop hubApi /search from crashing on position matches and curated hub genomes. refs #37956

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index 0b662157061..f7354f116a4 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -152,31 +152,32 @@
 
 char *trackHubAliasBbFile(char *database);
 /* see if this assembly hub has an alias bigBed file, return url if present
  * returns NULL when not present
  */
 
 char *trackHubAliasFile(char *database);
 /* see if this assembly hub has an alias file, return url if present
  * returns NULL when not present
  */
 
 struct chromInfo *trackHubAllChromInfo(char *database);
 /* Return a chromInfo structure for all the chroms in this database. */
 
 struct chromInfo *trackHubMaybeChromInfo(char *database, char *chrom);
-/* Return a chromInfo structure for just this chrom in this database. 
+/* Return a chromInfo structure for just this chrom in this database.  The database
+ * may be decorated with a hub_<id>_ prefix or undecorated.
  * Return NULL if chrom doesn't exist. */
 
 struct chromInfo *trackHubChromInfo(char *database, char *chrom);
 /* Return a chromInfo structure for just this chrom in this database. 
  * errAbort if chrom doesn't exist. */
 
 char *trackHubGenomeNameToDb(char *genome);
 /* Return assembly name given a genome name if one exists, otherwise NULL. */
 
 struct dbDb *trackHubGetDbDbs(char *clade);
 /* Get a list of dbDb structures for all the tracks in this clade/hub. */
 
 struct slPair *trackHubGetCladeLabels();
 /* Get a list of labels describing the loaded assembly data hubs. */