View BAM alignments in the NCBI genome browsers and sequence viewers sorted by haplotype tag


NCBI’s genome browsers and graphical sequence viewers now allow you to view BAM alignments sorted by haplotype tag. This option is useful for analyzing variants within a sequenced sample and can help you detect or validate structural variants.GDV_bamsFigure 1. Remote BAM alignment data sorted by haplotype tag in the Genome Data Viewer. The remote BAM file was added through the “User Data and Track Hubs” feature in GDV.  You can load the remote BAM for this example through https://go.usa.gov/xpM9c. The sorted display shows that haplotype 1 contains a significant deletion in this region relative to haplotype 2 and the reference genome assembly. Aligned reads not assigned a haplotype tag in the BAM file are grouped under the heading “haplotype not set” (not shown). 

The example in Figure 1 shows BAM alignment data loaded in the Genome Data Viewer and sorted by haplotype tag.  In this case the alignments from haplotype 1 show a deletion in this region relative to haplotype 2 and the reference genome assembly.  You can explore these data further through a demonstration in the graphical sequence viewer.

As described in a previous post, you can stream your own or third-party remote BAM alignment data using the “Add Remote Files” option (Figure 1) under the User Data and Track Hubs widget in the Genome Data Viewer. Access the track display settings for a particular data track by clicking on the track title, or by using the gear icon on the right side of the track the display to sort alignments by haplotype (Figure 2).  To use this feature, your BAM file must contain reads marked with haplotype tag.Configure_tracksFigure 2. The track display settings for the BAM alignment track showing sorting by haplotype. You can access the display settings by clicking on the track title (upper-left, circled in red).

3 thoughts on “View BAM alignments in the NCBI genome browsers and sequence viewers sorted by haplotype tag

  1. Pingback: NCBI on YouTube: Get the most out of NCBI resources with these videos | NCBI Insights

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s