Skip to main content

Basic usage

Linear genome view

To open a linear genome view (LGV), use the menu bar: Add -> Linear genome view

Scrolling

You can scroll side to side using your mouse wheel or via click and drag. Left and right pan buttons found in the header of the LGV can also be used to scroll in their respective directions.

Zooming

The zoom buttons and the slider bar found in the header of the linear genome view can be used to zoom in and out on the view

You can also

  • hold the Ctrl key and use your mousewheel or trackpad to scroll to zoom in and out of the linear genome view
  • hold the Shift key and click and drag the linear genome view to create a "rubberband" selection
  • hold the Shift key without click and drag to just reveal a red vertical guide bar on the linear genome view

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.
Figure: (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

Re-ordering views doesn't use a drag and drop like re-ordering tracks does, but instead, you can click the view menu (the "hamburger" menu that is available for each view) and select "Move up"/"Move down"

The location search box is located at the top of the LGV.

You can search a location in several ways when typing in the search box:

  1. Searching by region and location, e.g. chr1:1..100 or chr1:1-100 or chr1 1 100
  2. Searching by assembly, region, and location, e.g. {hg19}chr1:1-100
  3. Searching discontinuous regions, delimited by a space, and opening them side-by-side, e.g. chr1:1..100 chr2:1..100
  4. Searching in any of the above ways and appending [rev] to the end of the region will horizontally flip it, e.g. chr1:1-100\[rev\]
  5. If configured, searching by gene name or feature keywords, e.g. BRCA1

To configure name searching, you or the admin of the instance 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.
Figure: 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: File -> Open track..

After opening the menu item for 'Open track..' a drawer widget for the 'Add a track' form will appear
Figure: After opening the menu item for 'Open track..' a drawer widget for the 'Add a track' form will appear
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.
Figure: (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 to a file to load, or you can also open files from your local machine. In some cases, you need to provide an index (bigwig files for example have no index, but BAM/CRAM or tabix filetypes like VCF/GFF/BED tabix do). In some cases we can automatically infer the index e.g. if you provide a URL for a BAM and the index filename is bamfilename +'.bai' but you may need to manually supply it in some cases (index inference can't be done with files from your local machine)

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; checkout 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 than this, make sure to specify the index file explicitly.

Note

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

Undo and redo

You can undo the closing of a view, track, or any other action in the UI with the Tools->Undo/Redo buttons. The keyboard shortcut "ctrl+z"/"cmd+z"(mac) work for undo as well as "ctrl+y"/"cmd+shift"z"(mac)

Sharing sessions

On JBrowse Web, the main menu bar has a "Share" button to enable users to share their sessions with other people. The share button generates a URL that can be sent 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.

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.
Figure: 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 your custom tracks with other users, without being a JBrowse admin!

Track menu

Users can access track-specific functions by using the track menu, which is accessible from the track selecter itself ("..." icon) or on the track label (vertical "..."). Some functions are only available when the track is open e.g. from the track label, but more basic options like "About track" are available from the track menu on 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 it's track menu open
Figure: 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 it's track menu open

Recently used and Favorite tracks

Users can specify favorite tracks using the Track menu, and view them using the star icon button 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.
Figure: Add a track to your list of favorite tracks from the Track menu, then view them in the top right menu.

Tracks that have been recently opened will be automatically added to the list of recently used tracks, and can be viewed using the clock icon button in the top right corner of the Available tracks widget.

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

About track dialog

Using the track menu as described above, you can access 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.
Figure: 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

As a non-admin user, in order to edit a track config, you have to make a copy of the track. This will copy it to your "session tracks", which you can edit freely.

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

Rubberband selection

The scale bars accept a click-and-drag action to select a region. Rubberband selection can be performed on both the main (lower) and overview (upper) scale bars.

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..
Figure: 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.
Figure: Example of using the overlap and offset track label positioning options.

Horizontally flip

The view can be horizontally flipped, or reverse complemented, to make the coordinates go from right to left instead of left to right.

We use triangles pointing in the direction of the orientation in the overview bar to help indicate whether the app is horizontally flipped or not.

Here is an example of before and after horizontally flipping the view:

Before and after horizontally flipping.
Figure: Before and after horizontally flipping.

Toggle drawer widget on left or right side of screen

Using a drop-down menu in the header bar, you can toggle the drawer widget to the left or right side of the screen. It is on the right side by default

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