Skip to Main Content Skip to Search
Product Documentation

Visualizing and Investigating Short-Read Alignments

When to Use the NGS Browser to Visualize and Investigate Data

The NGS Browser lets you visually verify and investigate the alignment of short-read sequences to a reference sequence, in support of analyses that measure genetic variations and gene expression. The NGS Browser lets you:

You can visualize and investigate the aligned data before, during, or after any preprocessing (filtering, quality recalibration) or analysis steps you perform on the aligned data.

Opening the NGS Browser

To open the NGS Browser, type the following in the MATLAB Command Window:

ngsbrowser

Importing Data into the NGS Browser

Browser Displaying Reference Track, One Alignment Track, and One Annotation Track

Importing a Reference Sequence

You can import a single reference sequence into the NGS Browser. The reference sequence must be in a FASTA file.

  1. Select File > Add Data from File.

  2. In the Open dialog box, select a FASTA file, and then click Open.

Importing Short-Read Alignment Data

You can import multiple data sets of short-read alignment data. The alignment data must be in either of the following:

To import short-read alignment data:

  1. Select File > Add Data from File or File > Import Alignment Data from MATLAB Workspace.

  2. Select a SAM-formatted file, BAM-formatted file, or BioMap object.

  3. If you select a file containing multiple reference sequences, in the Select Reference dialog box, select a reference or scan the file for available references and their mapped reads counts. Click OK.

  4. Repeat the previous steps to import additional data sets.

Importing Feature Annotations

You can import multiple sets of feature annotations from GFF- or GTF-formatted files that contain data for a single reference sequence.

  1. Select File > Add Data from File.

  2. In the Open dialog box, select a GFF- or GTF-formatted file, and then click Open.

  3. Repeat the previous steps to import additional annotations.

Zooming and Panning to a Specific Region of the Alignment

To zoom in and out:

Use the toolbar buttons,
or click-drag an edge of the rubberband in the Overview area.

To pan across the alignment:

Use the toolbar buttons,
or click-drag the rubberband in the Overview area.

Viewing Coverage of the Reference Sequence

At the top of each alignment track, the coverage view displays the coverage of each base in the reference sequence. The vertical ruler on the left edge of the coverage view indicates the maximum coverage in the display range. Hover the mouse pointer over a position in the coverage view to display the location and counts.

To change the percent coverage displayed, click anywhere in the alignment track, and then edit the Alignment Coverage settings.

Viewing the Pileup View of Short Reads

Each alignment track includes a pileup view of the short reads aligned to the reference sequence.

Limit the depth of the reads displayed in the pileup view by setting the Maximum display read depth in the Alignment Pileup settings.

Comparing Alignments of Multiple Data Sets

Compare multiple data sets, with each data set in its own track, against a common reference sequence. Use the Track List to show/hide, order, and delete tracks of data.

Viewing Location, Quality Scores, and Mapping Information

Hover the mouse pointer over a position in a read to display strand direction, location, quality, and mapping information for the base, the read, and its paired mate.

Flagging Reads

Click anywhere in an alignment track to display the Alignment Pileup settings.

Flagging Reads with Low Mapping Quality

Set the Mapping quality threshold in the Alignment Pileup section to flag low-quality reads. Reads with a mapping quality below this level appear in a lighter shade of gray.

Flagging Duplicate Reads

Select Flag duplicate reads and select an outline color.

Flagging Reads with Unmapped Pairs

Select Flag reads with unmapped pair and select an outline color.

Evaluating and Flagging Mismatches

Mismatches display as colored blocks or letters, depending on the zoom level.

Zoomed out view of read — Mismatches display as bars

Zoomed in view of read — Mismatches display as letters

In addition to the base Phred quality information that displays in the tooltip, you can visualize quality differences by using the Shade mismatch bases by Phred quality settings.

The mismatch blocks or letters display in:

Viewing Insertions and Deletions

The NGS Browser designates insertions with a symbol. Hover the mouse pointer over the insertion symbol to display information about it.

The NGS Browser designates deletions with dashes.

Viewing Feature Annotations

After importing a feature annotation file, you can zoom and pan to view feature annotations associated with a region of interest in the alignment. Hover the mouse pointer over the feature annotation.

Printing and Exporting the Browser Image

Print or export the browser image by selecting File > Print Image or File > Export Image.

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS