Main Content


Visualize and interactively explore biological sequences



seqviewer opens the Sequence Viewer app.

seqviewer(Seq) loads a sequence Seq into the app, where you can view and interactively explore the sequence.

seqviewer(Seq,Name,Value) opens the app with additional options specified by one or more Name,Value pair arguments.

seqviewer('close') closes the Sequence Viewer app.

Input Arguments

collapse all

Amino acid or nucleotide sequence, specified as:

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'Alphabet','AA' specifies that the aligned sequences are amino acid sequences.

Type of aligned sequences, specified as 'AA' for amino acid sequences or 'NT' for nucleotide sequences.

Example: 'Alphabet','AA'


collapse all

Retrieve a sequence from the GenBank® database.

S = getgenbank('M10051');

Load the sequence into the Sequence Viewer app.


Alternatively, you can click Sequence Viewer on the Apps tab to open the app, and view the biological sequence S.

Close the app.


Version History

Introduced before R2006a