This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Sequence Alignment

Visualize and edit multiple sequence alignments


The Sequence Alignment app lets you visualize and edit multiple sequence alignments.

You can:

  • Inspect the sequence alignment and make manual adjustments.

  • View the consequence sequence information and export it to a file or MATLAB® workspace.

  • Generate a phylogenetic tree from aligned sequences.

Open the Sequence Alignment App

  • MATLAB Toolstrip: On the Apps tab, under Computational Biology, click the app icon.

  • MATLAB command prompt: Enter seqalignviewer.


expand all

Load and view a multiple sequence alignment file.


Alternatively, you can click Sequence Alignment on the Apps tab to open the app, and view the alignment data.

You can also generate a phylogenetic tree from aligned sequences from within the app. Select Display > View Tree .

Related Examples

Programmatic Use

expand all

seqalignviewer opens the Sequence Alignment app.

seqalignviewer(Alignment) loads multiple sequence alignment data Alignment into the app. Alignment can be one of the following:

  • A MATLAB structure containing a Sequence field, such as returned by fastaread, gethmmalignment, multialign, or multialignread

  • A MATLAB character array containing MSA data, such as returned by multialign

  • A string specifying a file or URL that contains MSA data

  • A 3-by-N character array showing the pairwise alignment of two sequences, such as the array returned by nwalign or swalign.

seqalignviewer('close') closes the app.

Introduced in R2012b