Skip to Main Content Skip to Search
Product Documentation

seqcomplement - Calculate complementary strand of nucleotide sequence

Syntax

SeqC = seqcomplement(SeqNT)

Arguments

SeqNT

Nucleotide sequence specified by any of the following:

Description

SeqC = seqcomplement(SeqNT) calculates the complementary strand of a DNA or RNA nucleotide sequence. The return sequence, SeqC, is in the same format as SeqNT. For example, if SeqNT is a vector of integers, then so is SeqC.

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

Examples

Return the complement of a DNA nucleotide sequence.

s = 'ATCG';
seqcomplement(s)

ans =
TAGC

See Also

codoncount | palindromes | seqrcomplement | seqreverse | seqtool

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS