e63eaf218669b968f124b81ca45ea0c287943f75
braney
  Fri Mar 11 16:26:26 2022 -0800
use bpt index if available for 2bit assembly hubs

diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index e40505b..667f49b 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -49,30 +49,31 @@
 
     char *descriptionUrl;  /* URL to description file */
     char *email;           /* email address of contact person */
     char *version;  /* version compliance of hub ("V1.0", etc.) */
     char *level;    /* support level of hub ("core", "full") */
     };
 
 struct trackHubGenome
 /* A genome serviced within a track hub. */
     {
     struct trackHubGenome *next;
     char *name;	/* Something like hg18 or mm9, a UCSC assembly database name. */
     char *trackDbFile;	/* The base trackDb.ra file. */
     struct hash *settingsHash;	/* Settings from hub.ra file. */
     char *twoBitPath;  /* URL to twoBit.  If not null, this is an assmebly hub*/
+    char *twoBitBptUrl;  /* URL to twoBit bpt.  May be NULL if no such index exists */
     struct twoBitFile *tbf;  /* open handle to two bit file */
     char *groups;	     /* URL to group.txt file */
     char *defaultPos;        /* default position */
     char *organism;          /* organism name, like Human */
     char *description;       /* description, also called freeze name */
     struct trackHub *trackHub; /* associated track hub */
     unsigned orderKey;   /* the orderKey for changing the order from the order in the file */
     };
 
 void trackHubClose(struct trackHub **pHub);
 /* Close up and free resources from hub. */
 
 struct trackHub *trackHubOpen(char *url, char *hubName);
 /* Open up a track hub from url.  Reads and parses hub.ra and the genomesFile. 
  * The hubName is generally just the asciified ID number. */