Complement of nucleotide sequence
returns the complementary sequence of the DNA or RNA nucleotide sequence contained in
SeqC = seqcomplement(
SeqNT. The format of
SeqNT. For example, if
SeqNT is a vector of
integers, then so is
SeqC. For complementary base pairs, see Complementary DNA and RNA Base Pairs. For complementary
ambiguous characters, see Complementary IUPAC Ambiguity Codes.
Find Complement of DNA Nucleotide Sequence
Create a random DNA nucleotide sequence.
SeqNT = randseq(8,Alphabet="dna")
SeqNT = 'TTATGACG'
Find the complement sequence.
SeqC = seqcomplement(SeqNT)
SeqC = 'AATACTGC'
SeqNT — Nucleotide sequence
character vector | string scalar | row vector of integers | structure
Nucleotide sequence, specified as one of the following:
Character vector or string scalar containing the letters
U, and ambiguous characters
Row vector of integers from Mapping Nucleotide Integers to Letter Codes.
Complementary DNA and RNA Base Pairs
|Nucleotide in Input Sequence||Nucleotide in Complimentary Sequence|
Complementary IUPAC Ambiguity Codes
|IUPAC Code in Input Sequence||IUPAC Code in Complimentary Sequence|
Introduced before R2006a