RNA2DNA {microRNA} | R Documentation

## 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.

### Details

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

### 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`.

### Author(s)

R. Gentleman

### See Also

`chartr`

### Examples

     input = c("AUCG", "uuac")
     RNA2DNA(input)

[Package microRNA version 1.44.0 Index]