comp                 package:seqinr                 R Documentation

_c_o_m_p_l_e_m_e_n_t _a _n_u_c_l_e_i_c _s_e_q_u_e_n_c_e

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

     Complement a sequence, for instance if the sequence is
     '"a","c","g","t"' it returns '"t","g","c","a"'. All other values
     will return NA.

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

     comp(seq)

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

     seq: a vector of chars 

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

     It returns a vector of character which is the complement of a
     sequence.

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

     D. Charif

_R_e_f_e_r_e_n_c_e_s:

      To have an overview of the seqinR's functionnality, please
     consult this vignette:  Charif, D., Lobry, J.R. (2005) SeqinR: a
     contributed package to the R project for statistical computing
     devoted to biological sequences retrieval and analysis. Springer
     Verlag, _Biological and Medical Physics/Biomedical Series_, in
     preparation. 

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

        a=s2c("acgtgctcgtatatatatgccc")
        comp(a)              
        b=s2c("acgtXctcgtatatatatgccc")
        comp(b)

