Main Content

dna2rna

Convert DNA sequence to RNA sequence

Syntax

SeqRNA = dna2rna(SeqDNA)

Arguments

SeqDNA

DNA sequence specified by any of the following:

Description

SeqRNA = dna2rna(SeqDNA) converts a DNA sequence to an RNA sequence by converting any thymine nucleotides (T) in the DNA sequence to uracil nucleotides (U). The RNA sequence is returned in the same format as the DNA sequence. For example, if SeqDNA is a vector of integers, then so is SeqRNA.

Examples

collapse all

dna = randseq(100)
dna = 
'TTATGACGTTATTCTACTTTGATTGTGCGAGACAATGCTACCTTACCGGTCGGAACTCGATCGGTTGAACTCTATCACGCCTGGTCTTCGAAGTTAGCAC'
rna = dna2rna(dna)
rna = 
'UUAUGACGUUAUUCUACUUUGAUUGUGCGAGACAAUGCUACCUUACCGGUCGGAACUCGAUCGGUUGAACUCUAUCACGCCUGGUCUUCGAAGUUAGCAC'

Version History

Introduced before R2006a

See Also

| |