IGV Overview

  • Introduction to IGV.
    • What is IGV.
    • How to run IGV Desktop.
  • Navigating IGV.
    • The IGV user interface.
    • Moving around genomes.
  • Loading and visualizing data.
    • Genome information and annotation.
    • User supplied data.
    • Sample information.
    • External data.
  • Displaying genomics data
    • Basic visualization.
    • Data dependent visualization. ]
  • IGV web
    • How to run IGV web
  • Navigating IGV web
  • Loading and visualizing data
  • Sharing web sessions ]

What is IGV?

  • Created by the Broad institute.
  • Desktop Genome browser.
    • Visualizes genomic data (expression, ChIP, resequencing, multiple alignment, shRNA).
    • Handles most common genomic data types.
    • Local java application
    • No dependence on server.
    • Loads data locally or from URL, consumes local memory and CPU.

How to get IGV?

  • Desktop, Web app and Juicebox
    • Desktop - Runs locally on desktop using Java
    • Web app - Runs locally in web browser using JavaScript
    • Juicebox - For Hi-C like data, runs locally on desktop using Java

igv

http://www.broadinstitute.org/software/igv/download

How to run IGV Desktop?

  • Download to computer (recommend those including Java).
    • Runs locally out of the box.
  • Archived versions available.
    • In case you liked functionality of previous version better.
  • Snapshots of development versions available.
    • These may be unstable and/or have features which are not included in release version. ]

igv

]

IGV GUI

IGV GUI

  • Sample information panel <1>
  • Genome Navigation panel <2>
  • Data panel <3>
  • Attribute panel <4>

Moving around genomes

  • Cytoband selection and zooming
  • Scrolling
  • Selection of region of interest

igv

Moving around genomes

Zoom

Scrolling

Jump to region

“Bookmarking” regions of interest

  • Regions may be added to “Regions of interest”.

  • These act as bookmarks for areas of particular interest.

  • Bookmarks can be added by:

    • Bookmarking visible window.
    • Selecting region within window.

Bookmarking - Visible window

Bookmarking

igv

Bookmarking

  • Bookmarks may be created quickly by selecting “region of interest” button.
  • Once selected just point-and-click where you want each edge to be.

igv

Sequences from regions of interest

  • A useful feature of “regions of interest” is to retrieve the sequence.
  • You can even directly BLAT sequences.

igv

Sequences from regions of interest

  • BLAT results present as table of hits.

igv

Viewing sequences

  • At a predefined resolution, sequence information becomes available.

igv

Viewing sequences

  • Strand of sequence can be altered.
  • Differing translation tables can be selected.

igv

Gene Lists

  • When you do not have a region of interest but a group of genes you can use Gene Lists (“Regions” > “Gene Lists”).
  • You create your own list or use one of the curated lists.

igv

Gene Lists

Using gene lists you can visualize several genes concurrently.

igv

class: inverse, center, middle

Loading data in IGV


Loading Genome Information

  • Many genomes can be selected from dropdown.

Loading Genome Information

  • Genomes not included may be downloaded from repository
    • Users can select whether to download sequence/annotation or use version hosted online for many genomes.

Loading Genome Information

  • For supported genomes, gene positions are automatically included in “feature” panel.
  • Additional gene positions can be loaded into IGV in gff format

igv

Loading custom genomes

IGV allows users to load their own custom genomes.

Custom genomes can be loaded from - FASTA - Chromosome sizes file (fai) - JSON file for genome+annotation ]

]

Loading genomes from GenomeArk

Genomes can also loaded directly from UCSC Genome Archive

]

]

Loading Sample data

  • Most common formats can be loaded into IGV through file menu
  • Acceptable data formats include:-
    • BED (.bed)
    • BAM and index (.bam with .bai/.bam.bai)
    • BigWig (.bw)
    • BedGraph/Wig (.bedGraph, .wig)
    • And many more…
  • For a full list of compatible file formats check out the IGV website

Loading Sample Metadata

  • IGV allows the inclusion of information on samples.
  • Sample information is included in sample information panel. ]

]

Loading Sample Metadata

Example Sample information file http://www.broadinstitute.org/igvdata/exampleFiles/exampleSampleInfo.txt

igv

Sample Metadata with TrackTables

  • Tracktables is a R/Bioconductor package.
  • Creates HTML reports with sample information for use with IGV.

igv

Creating SampleMetadata in excel

The most straightforward way to build is most often to use excel/openoffice.

  • Create an ID column containing names of files you want to load.
  • Add additional columns of metadata
  • Export file as a tab separated file for loading into IGV.

igv

Using sample information

  • Sample information can include discrete and continuous.

    • Can be used to “sort” and “filter” tracks.

    • Can split tracks across panels by “group”

Using sample Information

igv

igv

Loading external data and annotation

** Load data from a URL ** - As with UCSC, IGV supports data hosted on external servers. - Data accessible from a URL such as HTTP and FTP can be loaded using “File” > “Load from URL”.

Loading external data and annotation

** Load data from a server (IGV/Encode servers)**

  • Unlike UCSC, IGV comes with few external tracks.

  • External tracks (relevant to the genome) can be loaded from the IGV server or Encode-IGV server.

Load data from a server (IGV)

Load data from a server (Encode)

Grabbing encode data directly

  • Encode data can be downloaded from UCSC.
  • This however does not come with sample information provided through IGV interface.

class: inverse, center, middle

Viewing Data


Viewing data

  • IGV associates common file formats with default display methods.

  • Most of the time IGV will make a sensible choice how we wish to display data.

Accepted formats and default display.

  • Information on accepted file formats and default display can be found at:

http://www.broadinstitute.org/software/igv/RecommendedFileFormats

igv

Bed/bigBed

  • Basic
  • Tab-delimited
  • Chrom,Start,End
  • Bed6
  • bigBed (recommended)

igv

Wig, BedGraph and BigWig

  • Wig/bedGraph require high memory load.
  • Recommended format is bigWig.

igv

BAM alignment files

  • BAM files contain alignment information.
  • Require an accompanying .bai index file for display.

igv

Finer control of display

  • IGV allows for customization of track display.

  • “View” > “Preferences”

  • Select track (right click)

Display preferences

** General **

igv

Display preferences

** Tracks **

igv

Display preferences

** Alignments **

igv

Track display options

** Graph/interval files** - Track colour/appearance

igv

Track display options

** Graph/interval files** - Graph type

igv

Track display options

Data Scaling

igv

Track display options

Autoscaling adjusts to track’s visible signal maximum.

igv

class: inverse, center, middle

Some more useful IGV features


IGV displays splicing

igv

IGV - Overlay tracks

igv

Overlay tracks

igv

Track summarisation

IGV can be used to combine tracks

igv

Sum of two tracks

igv

Create new summed track

There are also options for subtract, divide and multiply.

igv

IGVtools

  • IGVTools can be used to post-process genomics data.
  • Includes indexing, sorting and genome graph creation.

igv ]

igv ]

Saving images of tracks

  • “File” > “Save Image”
  • You can easily save images from IGV to vector based svg format. This means you can further customize your tracks and assemble them into figures using Inkscape or Illustrator.

Saving your session

  • If you want to revisit your tracks at a later date, you can save the entire session.
  • When you restart later on you just have to reopen the session and you will be right back where you were.
  • “File” > “Save Session”

IGV web

IGV web is a refactoring of much of the functionality of IGV desktop into JavaScript.

This means that we can now access an IGV desktop like genome browser in a modern web browser without the need for any downloading or installing of components.

It is is still running locally so will consume memory and CPU as you load more data. ]

IGV web is available at https://igv.org/app/

]

IGV web

The web app looks like the desktop version in your web browser but has some of the functionality stripped away (i.e.. preferences are limited, no group autoscale).

If does however contain everything we need to quickly visualize our genomic data from both local and remote files.

IGV web

We can load genomes from local files, remote files, IGV servers and UCSC genome archive

We can also provide Dropbox and Google drive paths but these need to be public and not password controlled.

IGV web

Similarly we can load sample data in from local or remote sources and have access to server data (such as Encode) depending on the genome loaded.

Additional databases for human hg38 include data from 4D genome project and GTEx eQTLs.

IGV web

With our genome and data loaded we can configure our tracks in many ways we did within the Desktop browser, although not with as many options yet.

IGV web

IGV Web has some nice ways of sharing sessions which weren’t available to us in IGV desktop.

Here we can share a URL to collaborators who can then review the data as we have setup.

Note nothing we have loaded from a local file will be able to be captured by this method.

IGV web

We can even share a QR code with people on our posters/t-shirts of our favorite IGV sessions

IGV web

A final neat features of sharing sessions is the ability to create iframes which can be embedded in our HTML reports to show/highlight our IGV sessions of choice

IGV web

We can easily integrate these iframes into our R reports for instance using Rmarkdown and adding a simple tag (data-external=“1”) to the end of the iframe.

]

]