| Bioinformatics Toolbox™ | ![]() |
showalignment(Alignment)
showalignment(Alignment,
...'MatchColor', MatchColorValue, ...)
showalignment(Alignment, ...'SimilarColor' SimilarColorValue,
...)
showalignment(Alignment, ...'StartPointers', StartPointersValue, ...)
showalignment(Alignment, ...'Columns', ColumnsValue,
...)
| Alignment | Either of the following:
|
| MatchColorValue | Color to highlight matching characters. Can be either of the following:
Default is red, [255 0 0] or 'r'. |
| SimilarColorValue | Color to highlight similar characters. Can be either of the following:
Default is magenta, [255 0 255] or 'm'. |
| StarterPointersValue | Two-element vector that specifies the starting indices in the original sequences of a local pairwise alignment, such as the third output returned by the swalign function. |
| ColumnsValue | Scalar that specifies the number of characters to display in one row when displaying a pairwise alignment. Default is 64. |
showalignment(Alignment) displays a color-coded alignment in a MATLAB® Figure window. For pairwise sequence alignments, matching and similar characters are highlighted in red and magenta, respectively. For multiple sequence alignments, highly conserved positions are highlighted in red and conserved positions are highlighted in magenta.
showalignment(Alignment, ...'PropertyName', PropertyValue, ...) calls showalignment with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Each PropertyName must be enclosed in single quotation marks and is case insensitive. These property name/property value pairs are as follows:
showalignment(Alignment,
...'MatchColor', MatchColorValue, ...) specifies
the color to highlight matching characters in the output display. Default
is red, [255 0 0] or 'r'. For example,
to use cyan, enter [0 255 255] or 'c'.
showalignment(Alignment, ...'SimilarColor' SimilarColorValue, ...) specifies the color to highlight similar characters in the output display. Default is magenta, [255 0 255] or 'm'.
Note The 'StartPointers' and 'Columns' properties are available only when displaying pairwise alignments. |
showalignment(Alignment, ...'StartPointers', StartPointersValue, ...) specifies the starting indices in the original sequences of a local pairwise alignment.
Tip You can use the third output returned by the swalign function as the StartPointersValue. |
showalignment(Alignment, ...'Columns', ColumnsValue, ...) specifies the number of characters to display in one row when displaying a pairwise alignment, and labels the start of each row with the sequence positions. Default is 64.
Tip To view a multiple-sequence alignment and interact with it, use the multialignviewer function. |
Globally align two amino acid sequences and display their color-coded alignment.
[Score, Alignment] = nwalign('VSPAGMASGYD','IPGKASYD');
showalignment(Alignment);

Read a multiple-sequence alignment file and display the color-coded alignment.
gag = multialignread('aagag.aln');
showalignment(gag)

Tip To view a multiple-sequence alignment and interact with it, use the multialignviewer function. |
Bioinformatics Toolbox™ functions: multialign, multialignviewer, nwalign, swalign
![]() | seqwordcount | showhmmprof | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |