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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/seedReg.R

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

1

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

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

Example output

[1] "ATCG" "TTAC"

microRNA documentation built on Nov. 8, 2020, 7:50 p.m.

Related to RNA2DNA in microRNA...