aaa                  package:seqinr                  R Documentation

_C_o_n_v_e_r_t_s _a_m_i_n_o-_a_c_i_d _o_n_e-_l_e_t_t_e_r _c_o_d_e _i_n_t_o _t_h_e _t_h_r_e_e-_l_e_t_t_e_r _o_n_e

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

     This is a vectorized function to convert one-letter amino-acid
     code into the three-letter one, for instance "A" into "Ala".

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

     aaa(aa)

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

      aa: A vector of single characters 

_D_e_t_a_i_l_s:

     Allowed character values for 'aa' are *ACDEFGHIKLMNPQRSTVWY. All
     other values will generate a warning and return NA.

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

     A vector of char string. All strings are 3 chars long, run
     example(aaa) to see them.

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

     J.R. Lobry

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

     The IUPAC one-letter code for aminoacids is described at:  <URL:
     http://www.chem.qmul.ac.uk/iupac/AminoAcid/> 'citation("seqinr")'

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

     'translate', 'a'

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

       # show all allowed values
       allowed <- s2c("*ACDEFGHIKLMNPQRSTVWY")
       aaa(allowed)
       # show what's happen with non-allowed values
       aaa("Z") # should be NA and a warning is generated

