7302f9df405d8697c5a050c03bc148218e80dc11 dschmelt Tue Jun 30 12:40:03 2020 -0700 Updating documentation #25805 diff --git src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html index a490796..d82583d 100755 --- src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html +++ src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html @@ -630,49 +630,57 @@

As part of the track hub mechanism, UCSC caches data from the hub on the local server. The hub utility periodically checks the time stamps on the hub files, and downloads them again only if they have a time stamp newer than the UCSC one. For performance reasons, UCSC checks the time stamps every 300 seconds, which can result in a 5-minute delay between the time a hub file is updated and the change appears on the Genome Browser. Hub providers can work around this delay by inserting the CGI variable udcTimeout=1 into the Genome Browser URL, which will reduce the delay to one second. To add this variable, open the Genome Browser tracks page and zoom or scroll the image to display a full browser URL in which the CGI variables visible. Insert the CGI variable just after the "hgTracks" portion of the URL so that it reads http://genome.ucsc.edu/cgi-bin/hgTracks?udcTimeout=1& (with the remainder of the URL following the ampersand). To restore the default timeout, a warning message will appear on hgTracks with a link to clear the udcTimeout variable.

-

Check hub settings using Validate Hub tool

+

Check hub settings using Hub Development tool

Hubs can be checked for valid file configuration, trackDb keywords, and composite or super track -settings with the Validate Hub tool. This tool can be accessed from the Track Hub page under -the -Validate Hub tab. After entering your URL in the search box, -the tool runs hubCheck like so:

+settings with the Hub Development tool. This tool can be accessed from the Track Hub page under +the +Hub Development tab. After entering your URL in the search box, +the tool runs the hubCheck utility program equivalent to:

hubCheck -noTracks http://url.to.hub.txt

The noTracks setting speeds up the validation process but does not check for -the presence of your remotely hosted data track files. This tool checks your hub.txt, -genome.txt, and trackDb.txt settings and displays errors in bright red font, such -as "Missing required setting..." and "Cannot open...". The following picture shows +the presence or validity of your remotely hosted data track files. This tool checks your hub.txt, +genome.txt, and trackDb.txt settings and displays warnings and errors in bright red font, such +as "Missing required setting..." and +"Cannot open...". The "Display load times" and "Enable +hub refresh" optional settings show the load timing at the bottom of the Genome Browser page +and allow instant hub refresh instead of 5 minute refresh. These options can be checked and +activated by clicking "View Hub on Genome Browser". The following picture shows the example track grouping hub -with no configuration errors:

+with the warning that the hub has no hub description page, no configuration errors, +and "Dispay load times" checked:

- Validate hub tool checks config setting -

The Validate Hub tool checks for proper configuration files and track hub settings.

+ +

The Hub Development tool checks for proper configuration +files and track hub settings, and allows access to debugging settings.

Check hub settings using hubCheck utility

It is a good practice to run the command-line utility hubCheck on your track hub when you first bring it online and whenever you make significant changes. This utility by default checks that the files in the hub are correctly formatted, but it can also be configured to check a few other things including that various trackDb settings are correctly spelled and that they are supported by the UCSC Genome Browser. You can read more about using hubCheck to check the compatibility of your hub with other genome browsers below.

Here is the usage statement for the hubCheck utility:

hubCheck - Check a track data hub for integrity.
 usage:
@@ -738,40 +746,40 @@
 

By making your session file available over the Internet, you can build a URL that will load the session automatically by adding "&hgS_loadUrlName=" to the hgTracks CGI followed by the URL location of the saved session file. The location of the saved session file should be in the same directory that holds your hub.txt file. Finally add "&hgS_doLoadUrl=submit" to the URL to inform the browser to load the session.

There are four required variables for your URL to load a session with a hub and an example URL:

db - name of the assembly (e.g. hg19 or mm10)
 hubUrl - URL to your track hub
 hgS_loadUrlName - URL to your session file
 hgS_doLoadUrl - value should be "submit" 
http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19&hubUrl=http://myLab.org/myHub.txt&hgS_loadUrlName=http://mySession&hgS_doLoadUrl=submit 

Another feature one can use in place of "&hubUrl=" is -"&hubClear=", which will load a hub while simultaneously disconnecting +"&hubClear=", which will load a hub while simultaneously disconnecting or clearing, hubs located at the same location. For example adding &hubClear=http://university.edu/lab/folder/hub10.txt would connect the referenced hub10.txt while simultaneously disconnecting any hubs that might be displayed from the same http://university.edu/lab/folder/ directory (for example, hub1.txt, hub2.txt, ect.). This feature can be useful for dynamically generated hubs that might collect in the browser otherwise.

-Beyond the URL options of "&hubUrl=" and "&hubClear=" +Beyond the URL options of "&hubUrl=" and "&hubClear=" there are many other ways to link to the Browser including a list of URL optional parameters described in the the Custom Tracks User's Guide.

Registering a Track Hub with UCSC

If you would like to share your track hub with other Genome Browser users, you can register your hub with UCSC by contacting the Genome Browser technical support mailing list at genome@soe.ucsc.edu. Please include the URL of your hub.txt file in the message. Once registered, your hub will appear as a link on the Public Hubs tab on the Track Hubs page. To assist developers of Public Hubs, there is a Public Hubs Guidelines page. The page shares pointers and preferred style approaches, such as the need for creating