Concat {GeneR}R Documentation

Concatenate two sequences into a third one

Description

Concatenate part of a sequence with part of another one into a third one.

Usage

concat(seq.one=0, seq.two=1, seq.dest=2, from1=1, to1=0, strand1=0,
from2=1, to2=0, strand2=0)

Arguments

seq.one Integer. First sequence number (bufseq)
seq.two Integer. Second sequence number (bufseq)
seq.dest Integer. Output sequence number (bufseq)
strand1 Strand for first sequence 0 -> strand sens, 1 -> strand anti-sens.
from1,to1 Begining and ending of first sequence, can be vectors. 0 represent the last nucleotide and 1 the first one.
from2,to2 Begining and ending of second sequence, can be vectors. 0 represent the last nucleotide and 1 the first one.
strand2 Strand for 2nd sequence 0 -> strand sens, 1 -> strand anti-sens.

Value

seq.dest or -1 if error.

Author(s)

L.Cottret

See Also

assemble, multiExtract

Examples


s1<- "aaacgctagcgcg"
placeString(s1)
s2<-"ttttctatcag"
placeString(s2,1)
concat(seq.one=0,seq.two=1, from1=2,to1=3,from2=8,to2=0, strand1=1)
getSeq(2)
#[1] "TTTCAG"
  

[Package GeneR version 1.4.2 Index]