Assemble                package:GeneR                R Documentation

_C_r_e_a_t_e _a _s_e_q_u_e_n_c_e _b_y _g_a_t_h_e_r_i_n_g _p_a_r_t_s _a _s_e_q_u_e_n_c_e

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

   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

_V_a_l_u_e:

     bufdest or -1 if error.

_A_u_t_h_o_r(_s):

     L.Cottret

_S_e_e _A_l_s_o:

     'multiExtract', 'concat'

_E_x_a_m_p_l_e_s:

     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)

