Reverse complementary {GeneR} | R Documentation |
These functions perform the reverse/complementary of a sequence. RevComp loads further the result into the transparent complementary buffer.
revComp(seqno=0,force=FALSE) strComp (s)
seqno |
Integer/scalar, Sequence number (buffer number) |
force |
Logical/scalar, Force flag (FALSE -> revComp creates the reverse/complementary sequence only if it doesn't exist, TRUE -> revComp creates it anyway) |
s |
A sequence, string format. |
seqno or -1 if error.
L.Cottret
s<-"cgtagtagctagctagctagctagctag" placeString (s, seqno=1) getSeq(1) # return [1] "CGTAGTAGCTAGCTAGCTAGCTAGCTAG" revComp(1) # computes the reverse getSeq(1,1) # return [1] "CTAGCTAGCTAGCTAGCTAGCTACTACG" # Or with strComp strComp (s)