e2628a7934646bf31d8fedb840e03177790d8bf1 mspeir Tue Oct 14 08:35:25 2025 -0700 changes based on input from Max + Lou, refs #29810 diff --git src/hg/htdocs/goldenPath/help/hubBasics.html src/hg/htdocs/goldenPath/help/hubBasics.html index 8380bda450e..143f6668adf 100755 --- src/hg/htdocs/goldenPath/help/hubBasics.html +++ src/hg/htdocs/goldenPath/help/hubBasics.html @@ -16,64 +16,68 @@
This page covers the basics of setting up your own hub:
As you build your hub, use the "Hub Development" tab on the Track Data Hub page to +href="/cgi-bin/hgHubConnect#hubDeveloper">Track Data Hub page to check your hub for errors or to disable file caching to see your changes immediately, rather than after the 300ms refresh rate.
To begin, we want to provide an example hub.txt that has been created in a way to make it easy to swap in your data URLs in place of our examples. It indicates what settings are required and includes many optional settings that can help elevate your tracks beyond the basics. Alongside these settings, it includes short explanations of how those settings work and how to configure them, but there is also a version provided without these.
The first step in creating a track hub is to create your hub.txt file. Download the example hub.txt and use this as a starting point, changing our default values to those for your hub. But, we'll also provide the necessary settings here. These settings control how your hub is labeled in the interface and contact information: -
hub myExampleHub # a short, unique identifier for your hub, no spaces +hub myExampleHub # a short, unique internal identifier for your hub, no spaces +# shortLabel and longLabel are how your hub is labeled in the Genome Browser interface +# shortLabels should be under 20 characters and longLabels under 70 shortLabel Example Hub longLabel Example Hub for useOneFile option useOneFile on email genome-www@soe.ucsc.edu genome hg38If you have tracks across multiple assemblies, see the full track hub documentation.
Common Track Types
The most common track types are bigBed and bigWig, compressed, binary versions of @@ -95,34 +99,37 @@
- Download the
bedToBigBedutility for your system type from our download server.- Use
bedToBigBedto build your bigBed:bedToBigBed -sort in.bed chrom.sizes myBigBed.bb-
- If your assembly is a UCSC-hosted assembly (e.g. hg38), chrom.sizes can be a URL (replace "genNom" with the assembly name (e.g. hg38)): http://hgdownload.soe.ucsc.edu/goldenPath/genNom/bigZips/genNom.chrom.sizes. If you're working with a GenArk assembly hub, then the chrom.sizes file can be found under the "Data file downloads" section on the assembly gateway page.
- If you have custom fields in your bed file, you will need to create a custom .as file. - You can download the basic BED .as and modify this by adding new fields - below those in your file. + You can download the basic BED .as + and modify this by adding new fields below those in your file.
- Put your bigBed file alongside your hub.txt in a web-accessible location +
- Put your bigBed file alongside your hub.txt in a web-accessible location, + either through the 10GB of space we + make available to users or through one of several + other services
- You will use the file name (e.g. "myBigBed.bb") with the
bigDataUrlsetting in your hub.txtbigBed track hub configuration
Once you have built your bigBed files, it is time to create a stanza in your hub.txt file for that track. Here is what the required settings discussed above might look like for a basic bigBed track:
track bigBedRequiredSettings shortLabel bigBed Required Settings longLabel A bigBed Example with Required Settings visibility pack type bigBed 12 + bigDataUrl gtexCaviar.chr7_155799529-155812871.bb @@ -189,31 +196,34 @@
- Download the
wigToBigWigutility for your system type from our download server.- Use this utility to build your bigWig:
wigToBigWig in.bedGraph chrom.sizes myBigWig.bw-
- If your assembly is a UCSC-hosted assembly (e.g. hg38), chrom.sizes can be a URL (replace "genNom" with the assembly name (e.g. hg38)): http://hgdownload.soe.ucsc.edu/goldenPath/genNom/bigZips/genNom.chrom.sizes. If you're working with a GenArk assembly hub, then the chrom.sizes file can be found under the "Data file downloads" section on the assembly gateway page.
- Place your bigWig file in a web-accessible location alongside your hub.txt +
- Put your bigWig file alongside your hub.txt in a web-accessible location, + either through the 10GB of space we + make available to users or through one of several + other services
- You will use the file name (e.g. "myBigWig.bw") with the
bigDataUrlsettingbigWig track hub configuration
The basic trackDb configuration for a bigWig track is similar to a bigBed track as all tracks required the same basic settings (
track, shortLabel, longLabel, type, bigDataUrl). This is what the configuration for a bigWig track might look like (the example hub.txt includes other useful settings):track bigWigExample shortLabel bigWig Example longLabel A bigWig Example with Commonly Used Settings visibility pack type bigWig -20 10.003 bigDataUrl hg38.phyloP100way.chr7_155799529-155812871.bw @@ -368,21 +378,24 @@ you can share with others.The other option is to create a URL to the Genome Browser that loads your hub on the assembly of interest. There are three URL parameters you will want to use:
db- UCSC assembly name (e.g. hg38)position- chromosome position to loadhubUrl- URL to your hubYou will then append these to a genome browser URL. For example, this url with load the example hub:
- +If you feel that your hub would be of general use to the research community, +you can contact us about making it a public hub. Note that public hubs have to meet +more stringent requirements than the basics described here. +Check that your hub meets the public hub requirements +and then follow the directions on that page for submitting it to us for review.https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&position=chr7:155799529-155812871&hubUrl=https://genome.ucsc.edu/goldenPath/help/examples/hubExamples/hubBasicSettings/hub.txt