> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.latch.bio/llms.txt
> Use this file to discover all available pages before exploring further.

# Using IGV on Latch

> The Integrative Genomics Viewer (IGV) is a high-performance, easy-to-use, interactive tool for the visual exploration of genomic data. BAM, Fasta, etc. files can be opened in an IGV Browser natively within the Latch Platform. 

<img src="https://mintcdn.com/latchbio/H6zlCTun8E59mJDX/images/visualizer/igv/igv-screenshot.png?fit=max&auto=format&n=H6zlCTun8E59mJDX&q=85&s=42b82085a5f212c00cd91ac53706d146" className="h-40  border-slate-100 border rounded-md" width="2482" height="1526" data-path="images/visualizer/igv/igv-screenshot.png" />

## Opening Files in IGV

### From Latch Data

Nucleotide aequence (Fasta) and alignment files (BAM) files can be opened in the IGV browser from Latch Data. Simply double click a file to open it.

<img src="https://mintcdn.com/latchbio/H6zlCTun8E59mJDX/images/visualizer/igv/list-bam-files.png?fit=max&auto=format&n=H6zlCTun8E59mJDX&q=85&s=322bfcf7b4e52cdc43ae34ea3ba17933" className="h-28 border-slate-100 border rounded-md" width="1186" height="302" data-path="images/visualizer/igv/list-bam-files.png" />

### BAM Aligment Files

Alignment files (BAM) hosted on our platform are linked with an automatically generated index file (BAI), which is utilized for when opened in the Integrative Genomics Viewer (IGV). In order to view alignment files within IGV, the reference genome to which the data has been aligned must be specified. Users have the option to choose from a selection of commonly employed genomes available on IGV (a list of these options can be found [here](/data/visualizations/igv-reference-genomes)), or alternatively, you can select your own reference genomes stored within Latch Data.

The IGV browser within Latch presently supports reference genome files in the .fasta, .fa, and .fna file formats.

<img src="https://mintcdn.com/latchbio/H6zlCTun8E59mJDX/images/visualizer/igv/select-reference-geonome.png?fit=max&auto=format&n=H6zlCTun8E59mJDX&q=85&s=df090e8ef477345ba7c8d717918ba3e8" className="h-40 border-slate-100 border rounded-md" width="1728" height="1080" data-path="images/visualizer/igv/select-reference-geonome.png" />

To update the reference genome within the viewer, navigate to the top toolbar and click on the editing icon represented by a pen, which is located adjacent to the current genome name display.

<img src="https://mintcdn.com/latchbio/H6zlCTun8E59mJDX/images/visualizer/igv/select-new-reference.png?fit=max&auto=format&n=H6zlCTun8E59mJDX&q=85&s=9298d8fcfe8027ffacd37f2968a61f47" className="h-28 border-slate-100 border rounded-md" width="1728" height="1080" data-path="images/visualizer/igv/select-new-reference.png" />

## Adding additional tracks

Multiple BAM files can be opened in the viewer. To add a track scroll to the bottom of the last track displayed and click the `+ Add Track` button.

<img src="https://mintcdn.com/latchbio/H6zlCTun8E59mJDX/images/visualizer/igv/add-track.png?fit=max&auto=format&n=H6zlCTun8E59mJDX&q=85&s=00d3bf6e45f99c1841935d7e055320ec" className="h-28 border-slate-100 border rounded-md" width="1728" height="1080" data-path="images/visualizer/igv/add-track.png" />

This will allow you to select other BAM files within your workspace. Files must be aligned to the same genome for them to show up in the viewer.

<img src="https://mintcdn.com/latchbio/H6zlCTun8E59mJDX/images/visualizer/igv/two-tracks.png?fit=max&auto=format&n=H6zlCTun8E59mJDX&q=85&s=1346f2a93f8cf79a77e380b32670d456" className="h-40 border-slate-100 border rounded-md" width="1728" height="1080" data-path="images/visualizer/igv/two-tracks.png" />
