rna2dna
Convert RNA sequence to DNA sequence
Syntax
Description
Examples
Convert RNA Sequence to DNA Sequence
Generate a random RNA sequence.
rna = randseq(100,Alphabet='rna')
rna = 'UUAUGACGUUAUUCUACUUUGAUUGUGCGAGACAAUGCUACCUUACCGGUCGGAACUCGAUCGGUUGAACUCUAUCACGCCUGGUCUUCGAAGUUAGCAC'
Convert the RNA sequence to a DNA sequence.
dna = rna2dna(rna)
dna = 'TTATGACGTTATTCTACTTTGATTGTGCGAGACAATGCTACCTTACCGGTCGGAACTCGATCGGTTGAACTCTATCACGCCTGGTCTTCGAAGTTAGCAC'
Input Arguments
SeqRNA
— RNA sequence
character vector | string scalar | row vector of integers | structure
RNA sequence, specified as one of the following.
Character vector or string scalar consisting of the characters
A
,C
,G
, andU
, and ambiguous charactersR
,Y
,K
,M
,S
,W
,B
,D
,H
,V
, andN
.Row vector of integers specifying a nucleotide sequence. For information on valid integers, see Mapping Nucleotide Integers to Letter Codes.
Structure that contains an RNA sequence in the
Sequence
field. Thefastaread
,fastqread
,emblread
,getembl
,genbankread
, andgetgenbank
functions return structures with aSequence
field.
Example: SeqDNA = dna2rna("CGACUU")
replaces the instances of
U
with T
.
Data Types: double
| char
| string
| struct
Output Arguments
SeqDNA
— DNA sequence
character vector | row vector of integers
DNA sequence, returned as a character vector or a row vector of integers.
If
SeqRNA
is a character vector or string scalar, then the function returns a character vector.If
SeqRNA
is a row vector of integers, then the function returns a row vector of integers.If
SeqRNA
is a structure, then the function returnsSeqDNA
with the same data type as theSequence
field, either a character vector or a row vector of integers.
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)