Reverse complementary {GeneR}R Documentation

Performs the reverse of a sequence

Description

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.

Usage

revComp(seqno=0)
strComp  (s)

Arguments

seqno Integer, sequence number. (bufseq)
s A sequence, string format.

Value

seqno or -1 if error.

Author(s)

L.Cottret

See Also

getSeq

Examples

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)


[Package GeneR version 1.4.2 Index]