Learn R Programming

micropan (version 1.0)

reverseComplement: Reverse-complement of a DNA or RNA sequence

Description

Translates any base U to T and finds the reverse-complement to the supplied DNA or RNA sequences.

Usage

reverseComplement(nuc.strings)

Arguments

nuc.strings
character vector containing DNA or RNA sequences.

Value

Returns a character vector containing the reverse-complemented (DNA) sequences.

Details

Standard reverse-complementation of DNA or RNA sequences. Any alien symbol (not A, C, G, U or T) is replaced by X. The complement of X is also X. All reverse-complemented sequences are in upper-case letters.

See Also

translate

Examples

Run this code
dna<-"ATGGGTCTGAACTGCTGGACTAAATGA"
reverseComplement(dna)

Run the code above in your browser using DataLab