DNA Reverse Complementation

Share:

Description

Returns the reverse complement of a given DNA character string

Usage

1
revcomp(dna.seq)

Arguments

dna.seq

character string; genetic sequence composed of "A","C","T", and "G" characters, of which the reverse complement sequence is desired

Value

A character string that is the reverse complement of dna.seq

Author(s)

Nicholas B. Larson

Examples

1
2
test.sequence<-"ACTGATGAT"
revcomp(test.sequence)