Main Content

View and Align Multiple Sequences

R2026b

Overview of the Sequence Alignment App

The Sequence Alignment app integrates many sequence and multiple alignment functions. Use the app to inspect sequence alignments, view the consensus sequence information, export consensus or alignments to a file or MATLAB® workspace, and generate a phylogenetic tree from aligned sequences.

Visualize Multiple Sequence Alignment

  1. Read a multiple sequence alignment file of the gag polyprotein for several HIV strains.

    gagaa = multialignread('aagag.aln')
  2. View the aligned sequences in the Sequence Alignment app.

    seqalignviewer(gagaa);

    Sequence Alignment app showing the list of aligned sequences

Rearrange Rows

You can move the rows (sequences) up or down by one row or delete the row. Select a row and then right-click the name of the sequence to see the context menu options.

Sequence Alignment app showing the contenxt menu options to move rows up or down and delete sequences

Generate Phylogenetic Tree from Aligned Sequences

The app lets you generate a phylogenetic tree using the aligned sequences from within the app. You can select a subset of sequences or use all the sequences to generate a tree.

Select the first few rows of sequences. Then select Display > View Tree > Selected to generate a tree from selected sequences.

Sequence Alignment app showing the menu option under Display, View Tree, and Selected

A phylogenetic tree for the sequences is displayed in the Phylogenetic Tree app. For details on the app, see Using the Phylogenetic Tree App.

Phylogenetic Tree app showing the tree of selected sequences

See Also

| |

Topics