c09c891ffe34df8d4980e13bfbdd3c3dc239a296 kate Fri May 15 08:11:15 2015 -0700 Add 'did you mean' suggestion to hubCheck settings check. Similarity test from JK based on axt alignment scoring. refs #10015 diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h index ee5cb7e..646d324 100644 --- src/hg/inc/trackHub.h +++ src/hg/inc/trackHub.h @@ -58,35 +58,36 @@ char *twoBitPath; /* URL to twoBit. If not null, this is an assmebly hub*/ 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 */ }; struct trackHubCheckOptions /* How to check track hub */ { char *version; /* hub spec version to check */ boolean strict; /* check hub is valid to 'core' level for version */ - char *extraFile; /* name of extra file/url with additional settings to accept */ boolean checkFiles; /* check remote files exist and are correct type */ + char *extraFile; /* name of extra file/url with additional settings to accept */ /* intermediate data */ struct hash *settings; /* supported settings for this version */ struct hash *extra; /* additional trackDb settings to accept */ + struct slName *suggest; /* list of supported settings for suggesting */ }; struct trackHubSetting /* Setting name and support level, from trackDbHub.html (the spec) */ { struct trackHubSetting *next; char *name; /* setting name */ char *level; /* support level (core, full, new, deprecated) */ }; struct trackHubSetting *trackHubSettingsForVersion(char *version); /* Return list of settings with support level */ char *trackHubVersionDefault(); /* Return current hub version */