assemble {GeneR}R Documentation

Concatenates parts of a sequence

Description

concatenates parts of a sequence (in any strand) and puts resulting sequence in destination sequence buffer.

Usage

assemble(seqno=0, from=1, to=0, strand=getStrand(), destSeqno=1)


Arguments

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

Value

destSeqno or -1 if error.

Author(s)

L.Cottret

See Also

getSeq, concat ,appendSeq

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),destSeqno=2)
getSeq(1)
getSeq(2)

[Package GeneR version 2.24.0 Index]