seqcomplement - Calculate complementary strand of nucleotide sequence
Syntax
SeqC = seqcomplement(SeqNT)
Arguments
| SeqNT | Nucleotide sequence specified by any of the following: Character string with the characters A, C, G, T, U,
and ambiguous characters R, Y, K, M, S, W, B, D, H, V, N. Row vector of integers from the table Mapping Nucleotide Integers to Letter Codes. MATLAB structure containing a Sequence field
that contains a nucleotide sequence, such as returned by emblread, fastaread, fastqread, genbankread, getembl,
or getgenbank.
|
Description
SeqC = seqcomplement(SeqNT) calculates
the complementary strand of a DNA or RNA nucleotide sequence. The
return sequence, SeqC, is in the same format
as SeqNT. For example, if SeqNT is
a vector of integers, then so is SeqC.
| Nucleotide in SeqNT | Converts to This Nucleotide in SeqC |
| A | T or U |
| C | G |
| G | C |
| T or U | A |
Examples
Return the complement of a DNA nucleotide sequence.
s = 'ATCG';
seqcomplement(s)
ans =
TAGC
See Also
Bioinformatics Toolbox functions: codoncount, palindromes, seqrcomplement, seqreverse, seqtool
 | seq2regexp | | seqconsensus |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit