AtoR {GeneR}R Documentation

Conversion of addresses

Description

Converts addresses on a sequence according to the working strand and the address type (A : absolute, T : true, R : relative) .

Usage

AtoR(x, seqno=0)
AtoT(x, seqno=0)
RtoA(x, seqno=0)
RtoT(x, seqno=0)
TtoA(x, seqno=0)
TtoR(x, seqno=0)

Arguments

x

Integer/vector. Addresses

seqno

Integer/scalar, Sequence number (buffer number)

Details

All details on addresses and global variables are on the page globals.

Value

Integer vector with new addresses

Note

All results depend on the value of Strand. See: setStrand, getStrand.

Author(s)

L. Cottret

See Also

AtoT, RtoA, RtoT, TtoA, TtoR,setStrand, getStrand

Examples



s<-"cgtagtagctagctagctagctagctagc"
placeString (s, seqno=0)
# s of size 30
address <- c(4,20)

# On reverse strand:
setStrand(1)
AtoR(address)
#[1] 26 10

# On forward strand does nothing:
setStrand(0)
AtoR(address)
#[1]  4 20



[Package GeneR version 2.24.0 Index]