Connections
A connection is a reusable pointer to an external track hub or data directory. Point JBrowse at a hub once and its tracks become available in the track selector.
JBrowse supports three built-in connection types:
- UCSC Track Hub: any UCSC Genome Browser track hub reachable over the network
- JB2 Track Hub: a track hub based on a JBrowse 2 config file
- JBrowse 1 data directory: a legacy JBrowse 1 data directory with a
trackList.json
Connections in the track selector
Every connection appears as a separate category in the track selector, listed below your regular tracks and named after the connection.
A connection is loaded lazily: expanding its category fetches the hub's track list, and its tracks open with their checkboxes like any other track. JBrowse fetches nothing for a collapsed connection, so adding several makes no requests until you expand them.
Opening a connection
Open the form from either route:
- File → Open connection... in the menu bar
- Add connection... in the track selector's ☰ menu
Choose the connection type, then replace the example location with the hub URL (format below) and give the connection a name. A newly added connection loads right away, and one whose hub cannot be read is not kept.
Connections and saved sessions
The session stores the tracks you opened from a connection, and only those, so after a reload they reopen without re-fetching the hub, and a shared session stays small however large the hub is. The connection's category shows collapsed; expand it again to browse the rest.
Removing a connection
Delete connection... in the menu on the connection's row of the track selector removes it. On a JBrowse website an admin can remove any connection and a visitor the ones they added. JBrowse Desktop and the embedded components keep connections in the one config they opened, so there anyone can remove any of them.
When a hub loads in part
When a hub loads only some of its tracks, JBrowse names what it skipped:
- Left out tracks of a type this JBrowse has no plugin for: the message names each track type. Install the plugin that provides it from the plugin store and reload.
- Could not read the tracks of these assemblies: the hub's track list for
that genome (its
trackDbfile) did not download, though the hub's other genomes loaded. - Skipped data from these assemblies: a track hub names a genome this JBrowse does not have. Add the assembly, then expand the connection again.
UCSC track hub URL format
The URL must point directly to the hub.txt file of the hub, for example:
https://hgdownload.soe.ucsc.edu/hubs/GCA/009/914/755/GCA_009914755.4/hub.txtPublic hubs are listed in the UCSC Public Hub directory; paste the URL from its "URL" column into the connection form.
JBrowse matches hub tracks to assemblies by genome ID. An assembly hub supplies
each genome's sequence (twoBitPath), so a genome your JBrowse instance lacks
is added with the hub. A track hub names a genome without supplying it, so its
tracks appear only when that assembly is already configured. assemblyNames in
the connection form limits which of the hub's genomes load.
A composite track's subgroups, such as cell line, antibody or view, become
columns and filters in the track table, named as the hub titles them. The rest
of each track's trackDb settings are under ucsc in its About dialog.
JBrowse 1 connection URL format
For the legacy JBrowse 1 connection type, point the URL at the JBrowse 1 data
directory containing trackList.json (e.g. https://myhost/jbrowse1/data/) and
supply the assembly name it corresponds to. See the
JBrowse1Connection config docs for details.
Adding a connection via the CLI
# UCSC track hub
jbrowse add-connection https://example.com/hub.txt \
--type UCSCTrackHubConnection \
--name "My Hub"
# JBrowse 1 data directory
jbrowse add-connection https://myhost/jbrowse1/data/ \
--type JBrowse1Connection \
--assemblyNames hg19 \
--name "JBrowse 1 data"See jbrowse add-connection --help or the
CLI reference for all options.
See also
- User guide: Opening track hubs by URL
- User guide: Basic usage: opening tracks
- User guide: Installing plugins
- Config guide: Configuring connections
- Config guide: Text searching configuration