Skip to main content

Basic usage

Linear genome view

To open a linear genome view (LGV), use the menu bar: AddLinear genome view

Scrolling

You can scroll using the mouse wheel or by clicking and dragging. The pan buttons in the LGV header also scroll left and right.

Zooming

The zoom buttons and slider in the LGV header can be used to zoom in and out. You can also:

  • hold Ctrl and use the mousewheel to zoom (on Mac, trackpad pinch-to-zoom also works)
  • hold Shift and click-and-drag to create a rubberband selection
  • hold Shift without dragging to reveal a red vertical guide bar

Re-ordering tracks

Click and drag up or down on the drag handle on the track labels (indicated by six vertical dots) to reorder tracks.

(1) Use Add, Linear genome view to add a new LGV. (2) The pan buttons can be used to scroll left or right. (3) The zoom buttons or the slider can be used to zoom on the view. (4) Tracks can be reordered by clicking and dragging the drag handle indicated by six vertical dots.
(1) Use Add, Linear genome view to add a new LGV. (2) The pan buttons can be used to scroll left or right. (3) The zoom buttons or the slider can be used to zoom on the view. (4) Tracks can be reordered by clicking and dragging the drag handle indicated by six vertical dots.

Re-ordering views

Unlike tracks, views cannot be reordered by drag-and-drop. Instead, use the view menu (hamburger icon) and select "Move up"/"Move down".

The location search box at the top of the LGV accepts several search formats:

  • Region and location, e.g. chr1:1..100 or chr1:1-100 or chr1 1 100
  • Assembly, region, and location, e.g. {hg19}chr1:1-100
  • Discontinuous regions (space-delimited, opened side-by-side), e.g. chr1:1..100 chr2:1..100
  • Any of the above with \[rev\] appended to horizontally flip the region, e.g. chr1:1-100\[rev\]
  • Gene name or feature keyword (if a text index is configured), e.g. BRCA1

To enable name searching, you or the instance admin will need to create a text index. See the configuration guide for more information.

When configured, you can search for gene names or other features via the location search box.
When configured, you can search for gene names or other features via the location search box.

Opening tracks

To open a new track or connection, use the menu bar: FileOpen track...

After opening the menu item for 'Open track..' a drawer widget for the 'Add a track' form will appear
After opening the menu item for 'Open track..' a drawer widget for the 'Add a track' form will appear

:::info Tip

There is a circular plus (+) icon button inside the "Available tracks" widget that can also be used to access the "Add a track" form.

:::

(1) Open the 'Available tracks' widget with the button on the far left of the linear genome view. (2) The orange plus (+) icon button in the bottom right the 'Available Tracks' widget can also be used to launch the 'Add a track' form.
(1) Open the 'Available tracks' widget with the button on the far left of the linear genome view. (2) The orange plus (+) icon button in the bottom right the 'Available Tracks' widget can also be used to launch the 'Add a track' form.

In the "Add a track" form, you can provide a URL or open a file from your local machine. Some formats require an index (BAM/CRAM and tabix-indexed files like VCF/GFF/BED do; BigWig does not). For remote files, the index is inferred automatically when the filename follows standard conventions (e.g. file.bamfile.bam.bai), but must be supplied manually for local files or non-standard names.

File format support

The following file formats are supported in core JBrowse 2:

General

  • CRAM
  • BAM
  • htsget (requires hand-edited config)
  • VCF (Tabix-indexed)
  • GFF3 (Tabix-indexed)
  • BED (Tabix-indexed)
  • BigBed
  • BigWig
  • BEDPE
  • JBrowse 1 nested containment lists (NCList)
  • .hic (Hi-C contact matrix visualization)

SV inspector

  • plain text VCF, BED, CSV, TSV, BEDPE, STAR-fusion output (tabular formats)

Synteny and dotplot

  • PAF (e.g. minimap2)
  • .delta (MUMmer)
  • .anchors (MCScan python version)
  • .out (MashMap)

Sequence adapters

  • Indexed FASTA
  • BGZip indexed FASTA
  • 2bit

Additional data formats can be supported via plugins; check out the plugin store.

For tabix files, TBI or CSI indexes are allowed. CSI or BAI is allowed for BAM. Only CRAI is allowed for CRAM. The index will be inferred for BAI or TBI files as filename+'.bai' for example, but if it is different from this, make sure to specify the index file explicitly.

:::info Note

If you are an administrator, you can add tracks with the command line (CLI) or with the admin server (GUI).

:::

Undo and redo

You can undo any action via Tools → Undo/Redo, or with the keyboard shortcuts ctrl+z/cmd+z (undo) and ctrl+y/cmd+shift+z (redo).

Sharing sessions

On JBrowse Web, the "Share" button in the main menu bar generates a URL you can send to other users.

You cannot copy the URL in your address bar and send it to other users, you must use the "Share" button to share your session.

:::info Note

Sharing sessions is not available for JBrowse Desktop.

:::

The session share dialog, which gives you a short URL to share your session with other users. It is important to use the URLs generated here, rather than copying and pasting your browser's URL to other users.
The session share dialog, which gives you a short URL to share your session with other users. It is important to use the URLs generated here, rather than copying and pasting your browser's URL to other users.

The session URL will contain the following:

  • what views are on the screen, and settings for the views (e.g. track labels overlapping or offset)
  • what tracks are in the view
  • extra tracks that you added with the "Add track workflow"
  • for the alignments track, the show soft clipping and sort settings on the pileup
  • ...and more

This means you can share links with custom tracks without being a JBrowse admin.

Track menu

The track menu (vertical "..." on the track selector or track label) provides access to track-specific functions. Some options are only available when the track is open (from the track label); basic options like "About track" are always available from the track selector.

Screenshot showing how to open the track menu (both in the track selector area and in the track label area of the linear genome view), and an example of a VCF track with its track menu open
Screenshot showing how to open the track menu (both in the track selector area and in the track label area of the linear genome view), and an example of a VCF track with its track menu open

Recently used and Favorite tracks

You can mark favorite tracks from the Track menu and view them using the star icon in the top right corner of the Available tracks widget.

Add a track to your list of favorite tracks from the Track menu, then view them in the top right menu.
Add a track to your list of favorite tracks from the Track menu, then view them in the top right menu.

Recently opened tracks are automatically added to the recently used list, viewable via the clock icon in the Available tracks widget.

Selected tracks will be added to a recently used list, then they can be viewed using the top right menu.
Selected tracks will be added to a recently used list, then they can be viewed using the top right menu.

About track dialog

The track menu provides access to the "About track" dialog.

Screenshot of the 'About track' dialog for a CRAM file, showing the full CRAM file header and config info. Having the full header of a BAM/CRAM file available is helpful to easily check what genome it was aligned to, for example.
Screenshot of the 'About track' dialog for a CRAM file, showing the full CRAM file header and config info. Having the full header of a BAM/CRAM file available is helpful to easily check what genome it was aligned to, for example.

Editing track configs

Non-admin users must copy a track before editing it. The copy is saved to your "session tracks", which you can modify freely.

Screenshot showing the procedure to copy the track before being able to edit the settings
Screenshot showing the procedure to copy the track before being able to edit the settings

Rubberband selection

Click and drag on either the main (lower) or overview (upper) scale bar to rubberband-select a region.

Screenshot of rubberbanding both the main and overview scalebars. The main scalebar produces extra options on selection, e.g. Zoom to region, Get sequence, etc..
Screenshot of rubberbanding both the main and overview scalebars. The main scalebar produces extra options on selection, e.g. Zoom to region, Get sequence, etc..

Track label positioning

Track labels can be positioned on their own row or overlapping the data to save vertical screen space. They can also be hidden. This is done by clicking on the hamburger menu for a specific view.

Example of using the overlap and offset track label positioning options.
Example of using the overlap and offset track label positioning options.

Horizontally flip

The view can be horizontally flipped (reverse complemented), reversing the coordinate direction. Triangles in the overview bar indicate the current orientation.

Before and after horizontally flipping.
Before and after horizontally flipping.

Toggle drawer widget on left or right side of screen

The drawer widget can be toggled to the left or right side of the screen using the header bar dropdown. It appears on the right by default.

Toggling drawer widget to the left side of the screen
Toggling drawer widget to the left side of the screen

Faceted track selector

The faceted track selector shows all tracks as a filterable table. Open it via the filter icon in the top right of the "Available tracks" widget.

Tracks with metadata fields in their config get extra filterable columns:

{
"trackId": "my_track",
"name": "My Track",
"metadata": { "origin": "public", "date_added": "2024-02-20" }
}

See the configuration guide for more.