Reverse complementary {GeneR}R Documentation

Performs the reverse of a sequence

Description

These functions perform the reverse/complementary of a sequence. RevComp loads further the result into the transparent complementary buffer.

Usage

revComp(seqno=0,force=FALSE)
strComp  (s)

Arguments

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.

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)	# computes the reverse 
getSeq(1,1)
# return [1] "CTAGCTAGCTAGCTAGCTAGCTACTACG" 

# Or with strComp
strComp (s)


[Package GeneR version 2.24.0 Index]