| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
Struct = seqshowwords(Seq, Word)
seqshowwords(Seq, Word,
...'Color', ColorValue, ...)
seqshowwords(Seq, Word,
...'Columns', ColumnsValue, ...)
seqshowwords(Seq, Word,
...'Alphabet', AlphabetValue, ...)
Struct = seqshowwords(Seq, Word) opens a separate window displaying a sequence with all occurrences of one or more words highlighted. It also returns a structure containing the start and stop positions for all occurrences of the words in the sequence.
seqshowwords(Seq, Word, ...'PropertyName', PropertyValue, ...) calls seqshowwords with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Enclose each PropertyName in single quotation marks. Each PropertyName is case insensitive. These property name/property value pairs are as follows:
seqshowwords(Seq, Word, ...'Color', ColorValue, ...) specifies the color to highlight the words in the output display of the sequence. Default is red.
seqshowwords(Seq, Word, ...'Columns', ColumnsValue, ...) specifies how many columns or characters per line in the output display of the sequence. Default is 64.
seqshowwords(Seq, Word, ...'Alphabet', AlphabetValue, ...) specifies the alphabet for the sequence and the word or words. Choices are 'AA' or 'NT' (default).
Seq |
Amino acid or nucleotide sequence specified by any of the following:
| ||
Word |
One or more short amino acid or nucleotide sequences specified by any of the following:
| ||
ColorValue |
Color to highlight all occurrences of one or more words in the sequence. Specify the color with one of the following:
For example, to use cyan, enter [0 1 1], 'c', or 'cyan'. For more information on specifying colors, see ColorSpec. Default: Red, which is specified by [1 0 0], 'r', or 'red' | ||
ColumnsValue |
Positive integer specifying how many columns or characters per line in the output display of the sequence. Default: 64 | ||
AlphabetValue |
String specifying the type of sequences. Choices are 'AA' or 'NT' (default). |
Struct |
MATLAB structure containing the start and stop positions of all occurrences or the word or words in the sequence. It includes two fields.
|
Search for a word containing multiple symbols:
% Highlight the word 'BART' which represents 'TAGT' and 'TAAT'
seqshowwords('GCTAGTAACGTATATATAAT','BART')
ans =
Start: [3 17]
Stop: [6 20]
000001 GCTAGTAACGTATATATAAT
Search for a word that repeats, excluding overlaps:
% Highlight all occurrences of 'TATA', excluding those that are
% already part of another matched word.
seqshowwords('GCTATAACGTATATATATA','TATA')
ans =
Start: [3 10 14]
Stop: [6 13 17]
000001 GCTATAACGTATATATATA
Search for a word that repeats, including overlaps:
% Use the regular expression 'TA(TA)*TA' to highlight all multiple
% repeats of 'TA'
seqshowwords('GCTATAACGTATATATATA','TA(TA)*TA')
ans =
Start: [3 10]
Stop: [6 19]
000001 GCTATAACGTATATATATA
Search for multiple words:
% Use a cell array as input to highlight both the words
% 'CG' and 'GC'
seqshowwords('GCTATAACGTATATATATA',{'CG', 'GC'})
ans =
Start: [1 8]
Stop: [2 9]
000001 GCTATAACGTATATATATAThe seqtool function opens the Sequence Tool window, where you search for words in a sequence by selecting Sequence > Find Word. The Sequence Tool does not:
Allow searching for multiple words in one step
Return a structure containing the start and stop positions for all occurrences of the word in the sequence
cleave | ColorSpec | palindromes | regexp | restrict | seqdisp | seqtool | seqwordcount | strfind
![]() | seqshoworfs | seqtool | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |