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:

     This function create the complementary of the sequence "i" and
     place the result in the buffer i,1

     strComp do the same but work directly with string instead of
     buffers.

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

     revComp(seqno=0)
     strComp  (s)

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

   seqno: Integer, sequence number. (bufseq)

       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)      # compute the reverse 
     getSeq(1,1)
     # return [1] "CTAGCTAGCTAGCTAGCTAGCTACTACG" 

     # Or with strComp
     strComp (s)

