Reverse complementary         package:GeneR         R Documentation

_P_e_r_f_o_r_m_s _t_h_e _r_e_v_e_r_s_e _o_f _a _s_e_q_u_e_n_c_e

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

     These functions perform the reverse/complementary of a sequence.
     RevComp  loads further the result into the transparent
     complementary buffer.

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

     revComp(seqno=0,force=FALSE)
     strComp  (s)

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

   seqno: Integer/scalar, Sequence number (buffer number)

   force: Logical/scalar, Force flag (FALSE -> revComp creates the
          reverse/complementary  sequence only if it doesn't exist,
          TRUE -> revComp creates it anyway) 

       s: A sequence, string format.

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

     seqno or -1 if error.

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

     L.Cottret

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

     'getSeq'

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

     s<-"cgtagtagctagctagctagctagctag"
     placeString (s, seqno=1)
     getSeq(1)
     # return [1] "CGTAGTAGCTAGCTAGCTAGCTAGCTAG" 
      
     revComp(1)      # computes the reverse 
     getSeq(1,1)
     # return [1] "CTAGCTAGCTAGCTAGCTAGCTACTACG" 

     # Or with strComp
     strComp (s)

