seqcomplement
Calculate complementary strand of nucleotide sequence
Syntax
SeqC
= seqcomplement(SeqNT
)
Arguments
SeqNT |
Nucleotide sequence specified by any of the following:
|
Description
calculates the complementary strand of a DNA or RNA nucleotide sequence. The return sequence,SeqC
= seqcomplement(SeqNT
)SeqC
, is in the same format asSeqNT
. For example, ifSeqNT
is a vector of integers, then so isSeqC
.
Nucleotide inSeqNT | Converts to This Nucleotide inSeqC |
---|---|
A |
T orU |
C |
G |
G |
C |
T orU |
A |
Examples
Return the complement of a DNA nucleotide sequence.
s ='ATCG'; seqcomplement(s) ans = TAGC