IGV-Web Documentation

igv.org/app

About IGV-Web

IGV-Web is a web application for exploring genomic datasets. Data can be loaded directly from a user’s local file system, or via URL from web servers and cloud providers. The application runs only in the web browser and no data is ever uploaded to the host site.

IGV-Web is developed by the same team that develops the IGV desktop application. Links to all versions of IGV can be found at https://igv.org.

Developers: IGV-Web is implemented using igv.js, our JavaScript component for embedding IGV in web pages. All IGV code is open source and available at https://github.com/igvteam

Quick Start

1. Open the IGV-Web app

In a web browser, navigate to https://igv.org/app.

Note: Make sure that popups are not disabled in your web browser as some features rely on them. For example, loading tracks and genomes from files in Google Drive may pop up a login window. Also note that some options may not be available if cookies have been disabled in the web browser preferences.

2. Load a reference genome

IGV displays data mapped to the genomic coordinates of a reference genome. When the IGV-Web page first loads, it will load the default reference genome hg19. To load a different genome, click on the Genome dropdown menu and either select from the list of pre-defined genomes, or use one of the options to load a genome sequence file that you specify.

Note: You must first load the reference genome, before loading data tracks. Switching genomes will clear out any loaded tracks.

Selecting a pre-defined genome

The available pre-defined genomes are listed in the menu. If you select any of these genomes, a corresponding gene annotation track will also be loaded.

Note: The menu includes the complete list of available pre-defined genomes. Unlike IGV-Desktop, there is no More... entry at the bottom of the menu to access a longer list.

Loading a genome sequence file

If you have an indexed FASTA file of your reference genome sequence, you can load it using one of the options in the top part of the menu:

Selecting the URL option will present a dialog where you enter the full web link URL to the FASTA file and to the corresponding index file. For the other options, both the FASTA file and the index file must be selected from the file chooser that pops up.

Note: A FASTA file only has the sequence data and IGV cannot display the cytoband ideogram in the chromosome ruler or automatically load a corresponding gene annotation track. You can load a gene annotation file directly via the Tracks menu.

You will be prompted to sign into a Google account if you select the Google Drive option, and a Dropbox account is needed for the Dropbox option. The Google Drive option will not be presented if cookies are disabled in the web browser.

Developers: Another option is to create and load a .json genome file, which can include references to a cytoband file and a default gene annotation track. See the igv.js developer documentation for details on creating a reference genome object in JSON format.

3. Load data tracks

To load data and genomic annotations, click on the Tracks dropdown menu and either select from the selection of pre-defined tracks or choose one of the options to load files that you specify.

Selecting a pre-defined track

Categories of available pre-defined tracks are listed in the menu. Clicking on a category will open a list of datasets. For example, if ENCODE is one of the menu items, clicking on it will bring up a list of datasets available from the ENCODE data portal (Encyclopedia of DNA Elements, https://www.encodeproject.org).

Note: The set of pre-defined tracks presented in the menu varies depending on the current reference genome. Some genomes do not come with any pre-defined tracks.

Loading a track file

To load track data from a file, use one of the options in the top part of the menu:

Selecting the URL option will present a dialog where you enter the full web link URL to one data file and the corresponding index file, if there is one. For the other options, a file chooser pops up and you can select files for mulitple tracks, along with the corresponding index files.

Note: For indexed files, e.g. BAM files, you must explicitly select the index file along with the data file. If you also use IGV-Desktop, you may be used to IGV automatically finding and loading the index file. This is not always possible from a web browser, so the behavior is different in IGV-Web.

You will be prompted to sign into a Google account if you select the Google Drive option, and a Dropbox account is needed for the Dropbox option. The Google Drive option will not be presented if cookies are disabled in the web browser.

See information on supported file types.

Note: Make sure to load only data files that correspond to the current reference genome. In general, a genomic data file does not include information about the genome it aligns to, which means IGV cannot automatically check if they match.

4. Navigate

IGV-Web provides several navigation controls for specifying the genomic region to view. A ruler indicating the extent of the current region is displayed below the toolbar, and the size of the region and its genomic coordinates are displayed in the toolbar.

More about tracks

Moving and deleting tracks

When you load a track it will be added to the bottom of the IGV track panel. To change the track order, just click on the grey grab-bar on the right edge of the track and drag it up or down to the new location.

To remove a track from the IGV browser, click on the gear icon to the right of the track and select Remove track from the menu that pops up.

Note: Removing a track does not just hide the track. If you want to show it again you must reload the data file.

Loading a new reference genome will also delete all loaded data tracks. Refreshing the IGV-Web page in the browser will delete all loaded data and reset to the default reference genome. Or, if you launched IGV-Web from a shared URL or browser bookmark, refreshing the page will go back to the initial session state defined by the URL or bookmark.

Track attributes: the gear menu

Clicking on a track’s gear menu reveals a number of attributes. The set of attributes is determined by the type of file that was loaded into the track. For example, for a track displaying paired-end sequence alignments from a BAM file, the menu includes an option View as pairs. In addition to Remove track, all tracks will include the menu items Set track name and Set track height.

Track actions: the popup menu

Right-clicking on a data track brings up a popup menu with actions you can perform. The set of menu items is determined by the type of file that was loaded into the track. For example, for a track displaying copy number data from a multi-sample SEG file, the menu includes an option Sort by value, which sorts the samples by copy number value at the locus where you clicked on the track. The sort order is toggled on each selection.

Special tracks

Sequence track

When zoomed in sufficiently, the reference genome sequence track appears just below the chromosome ruler. Depending on the zoom level, the sequence is represented by colored bars: or colored letters: with adenine (A) in green, cytosine (C) in blue, guanine (G) in yellow, and thymine (T) in red.

The gear menu for sequence tracks includes two options:

The sequence track cannot be removed, but it can be dragged to a different position, just like any other track.

Gene annotation track

If you load a reference genome from the list of hosted genomes provided in the Genome menu, a special gene annotation track is also automatically loaded. For most of the hosted genomes, these annotations are from NCBI’s Reference Sequence Database (RefSeq). You cannot remove this track, but it will be automatically unloaded if you select a different reference genome.

When you load a data track, it will be positioned just above this gene annotation track. So by default, the gene annotations are always displayed at the bottom. You can however move the gene annotation track at any time by dragging it to a different position, just like any other track.

By default, the annotations are displayed in a compact mode, where overlapping transcripts are collapsed into a single line: The track gear menu provides two different options for expanding the display to show the overlapping features on separate lines:

Note: Changing the display mode does not affect the track height. A scrollbar will be added to the track if it is too short to display all the lines. To increase or decrease the track height, select Set track height from the gear menu.

Saving Sessions

IGV-Web has a number of options for saving the state of your IGV session: you can save a file in IGV session format, bookmark the page in your browser, or create a web link URL that you can share with others.

Be aware that the saved state of an IGV session includes pointers to the data files for any loaded tracks. So to fully restore the state, you must have access to the same files that were loaded when the IGV session was saved.

Note: Due to security restrictions on web browsers, if you loaded any files from the local file system, IGV cannot automatically load them for you when you restore the session even if you run the session in the same environment on the same computer where you saved the session.

Session files

To save a file that contains the state of the current IGV session, click on the Session dropdown menu, select Save, and enter a filename into the dialog that pops up. The filename must have the .json suffix, or it will not be recognized as a session file when later loaded into IGV-Web. Depending on your web browser settings, the file will be saved to your default downloads folder or you will be prompted to specify a destination folder.

You can share your session with others, for example by emailing it to them, or copying the saved file to a shared file system, or uploading it to Dropbox, Google Drive, or a web server.

To restore a session from a saved file, click on the Session dropdown menu and select one of the options in the top part of the menu:

Selecting the URL option will present a dialog to enter the full web link URL to the session file. For the other options, a file chooser pops up. If you select the Google Drive option, you will be prompted to sign into a Google account, and a Dropbox account is needed for the Dropbox option. The Google Drive option will not be presented if cookies are disabled in the web browser.

Session files from IGV-Desktop

Session files that were saved in the Java desktop version of IGV can also be loaded into IGV-Web via the Session dropdown menu. However, IGV-Desktop supports more features and file types than the IGV-Web app, and so the session may not be completely restored. Also note that session files saved in IGV-Web currently cannot be loaded into IGV-Desktop.

Bookmarks

To bookmark the current state of the IGV page in your web browser, first click on Bookmark in the IGV-Web menu bar. This will update the URL in the web browser’s address bar. Then you can use your browser to save a bookmark for the page (in most web browsers use Command+D on MacOS, Ctrl+D on Windows).

To restore a bookmarked session, use your browser’s mechanism for going back to a bookmarked page.

To create a web link URL that will open the IGV-Web app with all the same data tracks and settings as the current session, click on Share in the menu bar. A dialog will pop up and display a short URL that encodes the current state of the IGV session.

To restore a session from URL, paste it into a browser address bar, or click on the URL in an email message, tweet, etc.

Saving Images

Two options are provided for saving images from the IGV-Web app:

Depending on your web browser settings, the image files will be saved to your default downloads folder or you will be prompted to specify a destination folder.

Miscellaneous Tools

Regions of Interest

(Introduced in IGV-Web version 1.12.9)

You can identify one or more genomic regions as special Regions of Interest.

Regions of interest are visually indicated by a green bar below the ruler and a light grey area across all tracks, as shown in the screenshot below.

BLAT

(Introduced in IGV-Web version 1.13.0)

IGV-Web supports BLAT (BLAST-like Alignment Tool) for on-the-fly alignment of query sequences from reads in alignment tracks.

The sequence query is sent to an external BLAT search engine hosted at the UCSC Genome Browser. UCSC’s BLAT search supports most UCSC derived genomes including human and mouse genomes.

The results of a BLAT search are presented in two different ways:

If you select a row in the results table and click on the Go To button, the IGV browser will change the view to that region. Selecting multiple rows will set the view to a multi-locus view of all selected regions side by side.

Circular View

(Introduced in IGV-Web version 1.9.0)

In collaboration with the JBrowse development team, we integrated the JBrowse 2 circular view component for exploring structural variants, chromatin interactions, and other long-distance interactions. Currently this integration supports structural variants from VCF files, paired-end and split-read alignments from BAM/CRAM files, and interaction pairs from bedPE and interact tracks. See here for more information about using the circular view with IGV-Web. The circular view will not be available if the web browser preferences have been set to disable all cookies.

Help Menu

The Help dropdown menu provides links to:

Supported Browsers

IGV-Web requires a modern web browser with support for JavaScript ECMAScript 2015. We try to test on the latest versions of Chrome, Safari, Firefox, and Edge. The Internet Explorer (IE) browser is not supported.

GitHub Pages theme adapted from mattgraham