| reverseSeq {matchprobes} | R Documentation |
Functions to obtain the reverse and reverse complement of a sequence
reverseSeq(seq) revcompDNA(seq) revcompRNA(seq)
seq |
Character vector. For revcompRNA and
revcompDNA the sequence should consist of appropriate letter
codes: [ACGUN] and ACGTN, respectively. |
The function reverses the order of the constituent character strings of its argument.
A character vector of the same length as seq.
R. Gentleman, W. Huber, S. Falcon
w <- c("hey there", "you silly fool")
reverseSeq(w)
w <- "able was I ere I saw Elba"
reverseSeq(w)
rna1 <- "UGCA"
revcompRNA(rna1)
dna1 <- "TGCA"
revcompDNA(dna1)