seqreverse

Reverse the letters or numbers in a nucleotide sequence

Syntax

SeqR = seqreverse(SeqNT)

Arguments

SeqNT

Enter a nucleotide sequence. Enter either a character string with the characters A, T (U), G, C, and ambiguous characters R, Y, K, M, S, W, B, D, H, V, N, or a vector of integers. You can also enter a structure with the field Sequence.

SeqR

Returns a sequence in the same format as the nucleotide sequence. For example, if SeqNT is an integer sequence, then so is SeqR.

Description

seqreverse calculates the reverse strand of a DNA or RNA sequence.

SeqR = seqreverse(SeqNT) calculates the reverse strand 3' --> 5' of the nucleotide sequence.

Examples

Reverse a nucleotide sequence.

s = 'ATCG'
seqreverse(s)

ans =
GCTA

See Also

Bioinformatics Toolbox functions seqcomplement, seqrcomplement

MATLAB function fliplr


© 1994-2005 The MathWorks, Inc.