Assemble {GeneR} | R Documentation |
Gathering parts a sequence (in any strand), put sequence in destination buffer.
assemble(seqno=0, from=1, to=0, strand=rep(getStrand(),length(from)), p="+", bufdest=1)
seqno |
Input sequence number. (bufseq) |
from,to |
Begining and ending of sequence, can be vectors. 0 represent the last nucleotide and 1 the first one. |
strand |
Vecteur of 0 and 1.
If 0: corresponding parts will be taken on the watson strand (forward). 1 on the opposite strand (crick, reverse) |
p |
"+", "-", or "b".
if p= "+", all parts will be taken on the watson strand (forward). If p="-", all parts will be taken on the opposite strand (crick, reverse) Si p="b", strand will be defined by vector strand |
bufdest |
Output sequence number |
bufdest or -1 if error.
L.Cottret
s<-"aaaacgtagctagctagctacccccctagctacgtagattttt" placeString(s) x<-c(1,21,39) y<-c(4,28,0) assemble(from=x,to=y) assemble(from=x,to=y,strand=c(0,1,0),p='b',bufdest=2) getSeq(1) getSeq(2)