R/bio.R
revcomp.Rd
Reverse complements a sequence.
revcomp(x)
A sequence to reverse complement
The sequence, reverse complemented
revcomp("GATTACA") #> [1] "TGTAATC" sapply(c("GATTACA", "CATATTAC"), revcomp) #> GATTACA CATATTAC #> "TGTAATC" "GTAATATG"