Assemble {GeneR}R Documentation

Create a sequence by gathering parts a sequence

Description

Gathering parts a sequence (in any strand), put sequence in destination buffer.

Usage

assemble(seqno=0, from=1, to=0, strand=rep(getStrand(),length(from)), p="+", bufdest=1)

Arguments

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

Value

bufdest or -1 if error.

Author(s)

L.Cottret

See Also

multiExtract, concat

Examples


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)

[Package GeneR version 1.4.2 Index]