Main Content

seqrcomplement

Calculate reverse complementary strand of nucleotide sequence

Description

SeqRC = seqrcomplement(arguSeqNT) calculates the reverse complementary strand of a DNA or RNA nucleotide sequence. The return sequence, SeqRC, reads from 3' to 5' and is in the same format as SeqNT. For example, if SeqNT is a vector of integers, then so is SeqRC.

example

Examples

collapse all

Return the reverse complement of a DNA nucleotide sequence

s = "ATCG";
seqrcomplement(s)
ans =

    'CGAT'

Input Arguments

collapse all

Nucleotide sequence, specified as one of the following values:

Nucleotide in SeqNTConverts to This Nucleotide in SeqRC
AT or U
CG
GC
T or UA

Version History

Introduced before R2006a