Opening track hubs by URL
The &hubURL= query parameter opens a
UCSC track hub
straight from a link, with the hub's assemblies and tracks already available to
whoever opens it.
Basic usage
https://jbrowse.org/code/jb2/latest/?config=none&hubURL=https://example.com/hub.txthubURL=points directly at the hub'shub.txtfile (the same URL you would paste into the connection form).config=noneskips loading a JBrowse config, because an assembly hub supplies the assemblies and tracks. A track hub names its genomes without their sequence, so it goes with a config that defines them. See?config=.
JBrowse reads the hub's shortLabel and uses it as the session name.
Combining with a config
Drop config=none and point ?config= at a real
config when the launch needs something the hub does not have, such as plugins or
extra assemblies:
?config=myconfig.json&hubURL=https://example.com/hub.txtJBrowse adds the hub's tracks on top of whatever the config already defines.
Opening the hub at a specific location
By default a hub opens at the location defaultPos states, in its genomes
stanza. Add &loc= and
&assembly= to land somewhere else:
?config=none&hubURL=https://example.com/hub.txt&assembly=GCF_019202715.1&loc=chr1:1-100000&assembly=is required with&loc=and takes the hub's genome ID, as in itsgenomes.txt(or itsgenomeline, for a one-file hub). Without it, JBrowse opens the hub at its default location and says why.&tracks=works the same way, naming track IDs the hub defines.
Loading several hubs
Pass a comma-separated list to open more than one hub at once:
?config=none&hubURL=https://example.com/hubA.txt,https://example.com/hubB.txtEach hub appears in the track selector as a separate category.
How a loaded hub behaves
Each hub URL becomes a UCSC track hub connection in the session, the same as one added by hand. It loads lazily, gets a separate track selector category, and the session stores only the tracks you open from it.
Hub tracks match assemblies by genome ID, against the hub's own assemblies plus
any a combined ?config= defines, so a hub opened with config=none shows only
the tracks on the hub's assemblies.
See also
- User guide: Connections - adding the same hubs through the UI, the CLI, or a config
- Docs: URL parameter API - the full list of launch
parameters, including
&hubURL= - Live demo: a GenArk hub with no config