seqrcomplement - Calculate reverse complementary strand of nucleotide sequence
Syntax
SeqRC = seqrcomplement(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
SeqRC = seqrcomplement(SeqNT) calculates
the reverse complementary strand of a DNA or RNA nucleotide sequence.
The return sequence, SeqRC, reads from
3' --> 5' and is in the same format as SeqNT.
For example, if SeqNT is a vector of integers,
then so is SeqRC.
| Nucleotide in SeqNT | Converts to This Nucleotide in SeqRC |
| A | T or U |
| C | G |
| G | C |
| T or U | A |
Examples
Return the reverse complement of a DNA nucleotide sequence.
s = 'ATCG'
seqrcomplement(s)
ans =
CGAT
See Also
Bioinformatics Toolbox functions: codoncount, palindromes, seqcomplement, seqreverse, seqtool
 | seqprofile | | seqreverse |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit