microRNA (version 1.30.0)

RNA2DNA: A Function to translate RNA sequences into DNA sequences.

Description

RNA and DNA differ in that RNA uses uracil (U) and DNA uses thiamine (T), this function translates an RNA sequence into a DNA sequence by translating the characters.

Usage

RNA2DNA(x)

Arguments

x
A valid RNA sequence.

Value

A character vector, of the same length as x where all characters are in upper case, and any instance of U in x is replaced by a T.

Details

No checking for validity of sequence is made, and the input sequence is translated to upper case.

See Also

chartr

Examples

Run this code
 input = c("AUCG", "uuac")
 RNA2DNA(input)

Run the code above in your browser using DataLab