Learn R Programming

misha (version 5.3.1)

gseq.revcomp: Get reverse complement of DNA sequence

Description

Alias for grevcomp. Takes a DNA sequence string and returns its reverse complement.

Usage

gseq.revcomp(seq)

Value

A character vector of the same length as the input, containing the reverse complement sequences

Arguments

seq

A character vector containing DNA sequences (using A,C,G,T). Ignores other characters and NA values.

See Also

grevcomp, gseq.rev, gseq.comp

Examples

Run this code
gseq.revcomp("ACTG") # Returns "CAGT"
gseq.revcomp(c("ACTG", "GGCC")) # Returns c("CAGT", "GGCC")

Run the code above in your browser using DataLab