assemble {GeneR} | R Documentation |
concatenates parts of a sequence (in any strand) and puts resulting sequence in destination sequence buffer.
assemble(seqno=0, from=1, to=0, strand=getStrand(), destSeqno=1)
seqno |
Integer/scalar, Sequence number (buffer number) |
from,to |
Integer/vector, Absolute addresses of the begin and the end of the fragments, (1 means the first nucleotide and 0 conventionally the last one; from must not be larger than to) |
strand |
Integer/vector, Strand (forward: 0, reverse: 1) |
destSeqno |
Output sequence number |
destSeqno 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),destSeqno=2) getSeq(1) getSeq(2)