cff0a237099d06f16896ec781a85cccb1a663849 braney Mon Dec 21 14:21:59 2020 -0800 make sure that trackDb cache on hubs keeps track of files that are included in the trackDb.txt file diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h index 3da2ee8..614b2c4 100644 --- src/hg/inc/trackHub.h +++ src/hg/inc/trackHub.h @@ -67,33 +67,34 @@ 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. */ struct trackHubGenome *trackHubFindGenome(struct trackHub *hub, char *genomeName); /* Return trackHubGenome of given name associated with hub. Return NULL if no * such genome. */ -struct trackDb *trackHubTracksForGenome(struct trackHub *hub, struct trackHubGenome *genome); +struct trackDb *trackHubTracksForGenome(struct trackHub *hub, struct trackHubGenome *genome, struct dyString *incFiles); /* Get list of tracks associated with genome. Check that it only is composed of legal - * types. Do a few other quick checks to catch errors early. */ + * types. Do a few other quick checks to catch errors early. If incFiles is not NULL, + * put the list of included files in there. */ void trackHubAddNamePrefix(char *hubName, struct trackDb *tdbList); /* For a hub named "xyz" add the prefix "hub_xyz_" to each track and parent field. * This is useful to the genome browser which directly puts tracks into it's * user settings name space.... */ void trackHubAddGroupName(char *hubName, struct trackDb *tdbList); /* Add group tag that references the hubs symbolic name. */ char *trackHubSetting(struct trackHub *hub, char *name); /* Return setting if it exists, otherwise NULL. */ char *trackHubRequiredSetting(struct trackHub *hub, char *name); /* Return named setting. Abort with error message if not found. */