12d5cbaaa39bb6a0f59f5ee9c25d9cfeacf0ccc0 mspeir Mon Mar 9 10:44:36 2026 -0700 Redoing initial section of page based on feedback, refs #37080 diff --git src/hg/htdocs/goldenPath/help/trackDb/trackDbHub.v3.html src/hg/htdocs/goldenPath/help/trackDb/trackDbHub.v3.html index dda2c794fed..8fe401321f0 100755 --- src/hg/htdocs/goldenPath/help/trackDb/trackDbHub.v3.html +++ src/hg/htdocs/goldenPath/help/trackDb/trackDbHub.v3.html @@ -45,65 +45,75 @@
  Track Database Definition

Hub Track Database Definition (v3)

How to declare Dataset Display Settings in Genome Browser Hubs

This page describes all of the settings one might use in creating a track or assembly hub. +Hubs display your own data in the Genome Browser by hosting your files on a web +server and connecting them with a simple text configuration file, giving you +more control and permanence than custom tracks. This initial section touches on the files and settings needed in creating a hub before providing a listing of settings separated by track type.

For those new to creating hubs: Our Hub Basics page provides an introduction to creating hubs.

+target"_blank">Hub Basics page provides a simple introduction to creating hubs.

For returning readers: We keep a list of changes to the trackDb specification below.

Start with a hub.txt

All hubs must include a top-level hub.txt file. This file contains general settings that identify your hub in our internal databases and in the Genome Browser interface. The URL to the hub.txt is used to load your hub. Our Hub Basics describes how to create a hub.txt. A full listing of hub.txt settings can be found in the General hub configuration settings section below.

If your hub contains tracks on a single genome assembly, then you can put all of the hub, genome, and track configuration settings into a single file with useOneFile.

Defining your hub's genomes

A genomes.txt is only necessary if you are NOT using the useOneFile setting -as described below. If your hub contains tracks for more than one +as described below. When using useOneFile, one only needs +to include the genome line. This line will reference +a UCSC assembly name (e.g. hg38) or a GenBank assembly available through our +GenArk archive +beginning with GCF or GCA (e.g. GCF_000891275.1). + +

+If your hub contains tracks for more than one genome, you will need to define a genomes.txt. A full listing of genomes.txt settings, including those needed for an assembly hub, settings can be found in the Assembly hub "genome" settings section below. +href="#assembly">Assembly hub "genome" settings section below.

Use useOneFile on for hubs with only one genome

If your hub is only displaying one genome, one can use the useOneFile on setting to put all hub, genome, and track configuration settings into a single file. Load a working example here.

Declaring track settings

This document describes how to set dataset display characteristics using "track database" or "trackDb" settings through name-value pair associations used in a Track Hub's trackDb.txt file. @@ -136,82 +146,76 @@ longLabel The data in this track is format "bigBed 3".

Every track stanza should have these five settings (track type bigDataUrl shortLabel longLabel). The first line's track key value (myFirstTrack) is the identifier for the dataset given to the Browser and it must be unique for each track within your data hub. After the track key, the most important setting is the type key. This value (bigBed 3) tells the Browser the type of format the data is in, defines how to display it, and determines which options are available for fine control of that display. For some configurable features, like filters, an additional period or plus may be needed (bigBed 5 .) or (bigBed 9 +).

-

While there are over 100 settings (providing a high level of flexibility for track -display) defined in this document and supported at UCSC, only the above five -are required -to define a track. The other support levels are: - - - - - - -
requiredrequired settings
basecommon settings supported - at other sites
deprecatedsettings that - are being retired (replacement is listed in details section)
newnew settings not yet assigned - a level (may be replaced)
fullother settings
-

-

See the list of changes to see -recent additions. -

-You can use the hubCheck utility to check the compatibility of your hub and its -trackDb settings with the UCSC Genome Browser or other genome browsers, such as Ensembl. -Our track hub help page -provides some examples of how you might use hubCheck to do this and -you can read more in this related +Running hubCheck on your hub.txt file identifies errors in settings, file +paths, and formatting that could prevent your hub from loading correctly. Download hubCheck from the utilities download page and +see the hubCheck +documentation and related blog post.

+target="_blank">blog post +for more information on validating hubs.

+

Using trackDb include statements

Hubs also support the use of include statements, allowing one to insert a file containing a set of trackDb stanzas into a primary trackDb. Use this when you have the same track across several assemblies, or several large, complex tracks.

Assembly Hubs

Assembly hubs can display novel genome assemblies and annotations in the UCSC -Genome Browser. Most genome assemblies deposited in GenBank are also available through -our GenArk archive -and can be referenced in your hub configuration.

- -

+Genome Browser. Note: Many genome assemblies available in GenBank are also available in our +GenArk archive. However, if your genome is not available in GenBank, you can make a custom assembly hub. -This involves creating a genomes.txt -using several settings described below in addition to a trackDb file for each -genome assembly. To create an assembly hub, refer to our +To create an assembly hub, refer to our Assembly Hub User Guide or our Quick Start Guide to Assembly Hubs.

+

Page Contents

+

The remainder of this document is divided into the following sections and should be -used as a ready reference.

+used as a ready reference. Settings are colored based on their support level: + + + + + + +
requiredrequired settings
basecommon settings supported + at other sites
deprecatedsettings that + are being retired (replacement is listed in details section)
newnew settings not yet assigned + a level (may be replaced)
fullother settings
+

+

See the list of changes to see +recent additions. +

 Expand/close descriptions of settings in the sections below.
  1. Common trackDb settings
  2. Settings by track type – with examples
    • bam/cram: Compressed Sequence Alignment/Map tracks
    • bigBed: Item or region tracks
    • bigBarChart: Bar charts of categorical variables displayed over genomic regions
    • bigChain: Genome-wide Pairwise Alignments
    • bigGenePred: Gene Annotations
    • bigInteract: Pairwise interactions
    • bigLolly: Lollipops
    • bigNarrowPeak: Peaks
    • @@ -1615,31 +1619,31 @@
      useOneFile <on>
      Example of an opening hub stanza


      -
       Assembly hub "genome" settings
      +
      genome <str>
      trackDb <url/relativePath>
      groups <url/relativePath>
      description <str>
      twoBitPath <url/relativePath>