seqrcomplement
Calculate reverse complementary strand of nucleotide sequence
Syntax
SeqRC
= seqrcomplement(SeqNT
)
Arguments
SeqNT | Nucleotide sequence specified by any of the following:
|
Description
calculates
the reverse complementary strand of a DNA or RNA nucleotide sequence.
The return sequence, SeqRC
= seqrcomplement(SeqNT
)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
Version History
Introduced before R2006a
See Also
codoncount
| palindromes
| seqcomplement
| seqreverse
| seqviewer