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 comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

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.

Introduced before R2006a