Reverse complementary {GeneR} | R Documentation |
This function create the complementary of the sequence "i" and place the result in the buffer i,1
strComp do the same but work directly with string instead of buffers.
revComp(seqno=0) strComp (s)
seqno |
Integer, sequence number. (bufseq) |
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) # compute the reverse getSeq(1,1) # return [1] "CTAGCTAGCTAGCTAGCTAGCTACTACG" # Or with strComp strComp (s)