# Guide to use IGV to view BAM file

**URL:** <https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542>\
**Category:** Uncategorized\
**Tags:** igv, resources\
**Created:** [March 5, 2026, 4:18pm UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542 "2026-03-05T16:18:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi\_g](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/abhi_g/32/6647_2.png) [@abhi\_g](https://help.galaxyproject.org/u/abhi_g)\
**Post date:** [March 5, 2026, 4:18pm UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542/1 "2026-03-05T16:18:22Z")

</div>

Kindly provide a stepwise guide to view BAM type file on Integrative Genomics Viewer (IGV) as this is of prominent importance.  
Also include details on using IGV to view BAM file result from “Samtools sort” tool.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [March 5, 2026, 8:33pm UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542/2 "2026-03-05T20:33:47Z")

</div>

Hello @abhi_g

If you `bam` is not displaying yet, this means you need to configure IGV to be based on your reference genome. This can be a `fasta` file from the history, or a native index on the server.

Which reference genome are you currently using for mapping? Do you want to share some screenshots?

More help was in a recent topic but we can help you to navigate the instructions if we learn more about what you have now.

Let’s start here! 🙂

> [@How to view a result through IGV?](https://help.galaxyproject.org/t/how-to-view-a-result-through-igv/17106/2):
>
> ### How to view data in IGV
> 
> #### Through the Galaxy [built-in IGV viewer](https://galaxyproject.github.io/training-material/search2?query=igv)
> 
> 1. Use the [eye icon](https://galaxyproject.github.io/training-material/faqs/galaxy/datasets_icons.html) in the upper right corner of a dataset. Some data will automatically display under the **Preview** tab. For others, you can first click into the **Visualize** tab, then either 1) launch a new IGV application session 2) or join one already started up 3) or connect to your local IGV session. More about this below with a screenshot.
> 2. The dataset needs to represent data that is based on a reference genome assembly’s coordinates _and_ that database key needs to be assigned. This is how the data is associated with a specific fasta index for that genome assembly.
> 
> #### How to troubleshoot
> 
> - Review the datatype format of the dataset. Is this coordinate based data?
> - Review the database assignment. Is the data linked to a reference genome assembly? Has the dataset been annotated with this assignment?
> - If the data was generated in Galaxy using a native database key, then the key should already be assigned.
> - In some cases, you may be able to make a direct direct database assignment. This could include data processed somewhere else and Uploaded to Galaxy.
> - This works in Galaxy the same as it does when using IGV independently. Data is all based on the same assembly, and the coordinates are used to map the data to the genome’s base pairs in a fasta file. Try to avoid viewing data from different assemblies together. Why? A different assembly will use a different coordinate system. Attempting to view mixed data may result in an error or it may only have odd results in the display.
> 
> #### Resources
> 
> - [FAQ: Changing database/build (dbkey)](https://galaxyproject.github.io/training-material/faqs/galaxy/datasets_change_dbkey.html)
> - How to use IGV with a [custom genome database key](https://galaxyproject.github.io/training-material/faqs/galaxy/reference_genomes_custom_genomes.html) instead of a native genome database key. → [BAM index, fasta indexes, display applications, custom genome builds, IGV - #4 by jennaj](https://help.galaxyproject.org/t/bam-index-fasta-indexes-display-applications-custom-genome-builds-igv/16283/4)
> - More about how different genome assemblies can differ, using a human assembly example. → [Reference genomes at public Galaxy servers: GRCh38/hg38 example](https://help.galaxyproject.org/t/reference-genomes-at-public-galaxy-servers-grch38-hg38-example/11616)
> 
> #### Screenshot
> 
> This is an example for a BAM database with the native database key dm6 assigned. This dataset can be individually viewed under the Preview tab. Then, under the Visualize tab, the dataset could be viewed in a local IGV session **or** added to a Galaxy IGV session that includes multiple datasets all together.
> 
> ![igv-example-native-key](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/e/e85a3970f4640c060e24accc50e94bb3aa4f6eba.png)
> 
> If I had a custom genome key instead, then I would choose to use the **local IGV session** option (option 2. display with IGV – using the “local” link) – [after setting up my custom genome build in Galaxy and IGV](https://help.galaxyproject.org/t/bam-index-fasta-indexes-display-applications-custom-genome-builds-igv/16283/4) (both!). The custom build key is what informs both applications that the data is based on the same fasta index.

---

<div class="post-metadata">

**Author:** ![abhi\_g](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/abhi_g/32/6647_2.png) [@abhi\_g](https://help.galaxyproject.org/u/abhi_g)\
**Post date:** [March 6, 2026, 4:45am UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542/3 "2026-03-06T04:45:48Z")

</div>

Thank you for the reply.  
I am using **hg38 as reference**. After using “Samtool sort” tool on RNA STAR tool’s result, I used IGV to view the file and selected hg38 reference genome. Despite selecting the reference genome, the alignment is not displayed.

 ![Screenshot 2026-03-06 101100](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/2/2e139116b5481c423dacbc9037a170c242431725.png)  
 ![Screenshot 2026-03-06 101227](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/a/a2e2022d2e04edf854dfd4fbf09052e543df8ee6.png)

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [March 6, 2026, 10:12pm UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542/4 "2026-03-06T22:12:59Z")

</div>

Hi @abhi_g

Thanks for sharing the screenshot, very helpful!

Glad you have this all connected now! If you are not sure how to zoom into the details, try this:

#### Navigating IGV

1. The first pull-down menu (to the immediate right of the “IGV hg38” text), choose a chromosome (instead of “all”).
2. The second bar is free-text, and accepts coordinates.
3. You can also click around the other functions on the display to zoom/scroll/group/highlight and more including _how_ the display is presented.

IGV has a nice user guide for learning how to navigate. This is the section where the address bar is discussed. Online videos are another resource!

📘 **IGV User Guide** → [https://igv.org/doc/webapp/#UserGuide/#navigating-the-view](https://igv.org/doc/webapp/#UserGuide/#navigating-the-view)

IGV should mostly work the same in Galaxy as it does when used directly but please let us know if something seems different, or if you simply need a tip, and we can help more here!

**Screenshots**

Note that I converted to a **bigwig** to create a coverage map that can be seen at more zoom levels!

 ![igv-zoom-1](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/d/d3aa85b4b56ab93dd30d8f16b15242ae8a7c84dc.png)  
 ![igv-zoom-2](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/a/a7e2320aad722e28a8e1f3b764cc712e25ff1f05.png)  
 ![igv-zoom-3](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/6/60d86c6ce7f32d7aa8be3bfc72e107d10babbdd1.png)

Where are the bases? Toggle that track’s option to **show**!

 ![igv-zoom-4-show-all-bases-toggle](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/7/703a84680ee531698e1c29d6fef8503ee8b18ef8.png)

 ![igv-zoom-4-show-all-bases-result](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/4/43e8c56e83bd76712b6ca3e31f1e6cd554cc9225.png)

#### BAM datatypes

I’ll also quickly mention that a distinct step to sort a `bam` dataset is Galaxy is usually not needed, which may save you time, steps, and duplicated data storage. Why? All `bam` datasets are **coordinate sorted** when they are initially created and indexed as a default action.

Inspecting the bam under the **Raw** tab will allow you to see this notation at the top of the header in the `@HD line`. It will look like this.

> @HD VN:1.5 SO:coordinate

This indexing occurs [during Upload](https://help.galaxyproject.org/t/getting-data-into-galaxy/10868) or when a tool produces a `bam` output. The datatype `bam` is reserved for this, so whenever that is assigned, a coordinate sort can be safely assumed and the header can confirm.

When a bam dataset is unsorted (very rare), or numerically sorted (certain protocols), the dataset will be assigned a different reserved datatype. These are based on the header content so changing the datatype yourself isn’t recommended. Instead, allow tools to interpret the data and assign the appropriate type.

 ![datatypes-bam-flavours-examples](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/0/0b4d0b3a5758efd2a68b9563b7f3596c051e5ac3.png)

Detail: **bam** (`SO:coordinate`) and **qname\_sorted.bam** (`SO:queryname`) are the two bam variations most people will encounter. Use coordinate sorted `bam` with IGV as a **qname\_sorted.bam** can trigger a conversion that stays in the “loading dataset” stage until it eventually fails! This would happen outside of Galaxy too!

* * *

Hope this helps and please let us know how it goes! 🙂

---

<div class="post-metadata">

**Author:** ![abhi\_g](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/abhi_g/32/6647_2.png) [@abhi\_g](https://help.galaxyproject.org/u/abhi_g)\
**Post date:** [March 8, 2026, 7:14pm UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542/5 "2026-03-08T19:14:12Z")

</div>

Thank you very much for the guide and help.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [April 16, 2026, 6:04pm UTC](https://help.galaxyproject.org/t/guide-to-use-igv-to-view-bam-file/17542/6 "2026-04-16T18:04:12Z")

</div>

Closed on April 16, 2026, 6:04pm UTC


