AtoR {GeneR} | R Documentation |
Converts addresses on a sequence according to the working strand and the address type (A : absolute, T : true, R : relative) .
AtoR(x, seqno=0) AtoT(x, seqno=0) RtoA(x, seqno=0) RtoT(x, seqno=0) TtoA(x, seqno=0) TtoR(x, seqno=0)
x |
Integer/vector. Addresses |
seqno |
Integer/scalar, Sequence number (buffer number) |
All details on addresses and global variables are on the page globals
.
Integer vector with new addresses
All results depend on the value of Strand. See:
setStrand
, getStrand
.
L. Cottret
AtoT
, RtoA
, RtoT
,
TtoA
,
TtoR
,setStrand
, getStrand
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