32df51bb0c13175b852fe149d7514bb3c3eb0fb8 gperez2 Wed Jul 3 10:11:15 2024 -0700 Incorporating Lou's feedback for the adding groups to a track hub documentation, refs #33580 diff --git src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html index 0cd7e0f..7524db7 100755 --- src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html +++ src/hg/htdocs/goldenPath/help/hgTrackHubHelp.html @@ -822,54 +822,53 @@
Both parent and child tracks within a super-track can have their own description files. If the description file is not present, the corresponding sections of the track settings and details pages are left blank. Only one description page can be associated with composite and multiWig tracks; the file name should correspond to the symbolic name of the top-level track in the composite.
You can add groups to your track hub by using the groups setting, which points to a separate text document that defines the track groups under the primary genome browser image display. As an example using the EPD Viewer Hub, here is how the track hub displays without the groups setting:
-Groups such as Histone, CAGE, RAMPAGE, and Fantom5 groups can be added. The text document that defines the track groups can be named groups.txt and specifies the groups such as the following:
name histone
label Histone
-priority 1
-defaultIsClosed 0
+priority 1
name cage
label CAGE
-priority 2
-defaultIsClosed 0
+priority 2
name rampage
label RAMPAGE
-priority 3
-defaultIsClosed 0
+priority 3
name fantom5
label Fantom5
priority 4
-defaultIsClosed 0
+defaultIsClosed 1
You would then add the group name to your tracks in the trackDb stanza. For example, adding the Histone Marks track to the Histone group:
track 1histone
type bigWig
@@ -879,32 +878,33 @@
priority 1
compositeTrack on
allButtonPair on
windowingFunction mean
shortLabel Histone Marks
visibility full
group histone
The groups.txt file then needs to be added to the genome stanza. The genome can be a UCSC genome or an assembly hub. The hg38 genome will be used as an example:
genome hg38
trackDb hg38/trackDb.txt
groups groups.txt
Attaching the EPD Viewer Hub with these group settings will then display the tracks within the groups:
-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=5 into the Genome Browser URL, which will reduce the delay to five seconds. 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