Last data update: 2014.03.03

R: A Function to translate RNA sequences into DNA sequences.
RNA2DNAR 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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(microRNA)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/microRNA/RNA2DNA.Rd_%03d_medium.png", width=480, height=480)
> ### Name: RNA2DNA
> ### Title: A Function to translate RNA sequences into DNA sequences.
> ### Aliases: RNA2DNA
> ### Keywords: manip
> 
> ### ** Examples
> 
>  input = c("AUCG", "uuac")
>  RNA2DNA(input)
[1] "ATCG" "TTAC"
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>