reverseComplement         package:Biostrings         R Documentation

_F_u_n_c_t_i_o_n _t_o _r_e_v_e_r_s_e _a _D_N_A _o_r _R_N_A _s_e_q_u_e_n_c_e _a_n_d _c_o_m_p_l_e_m_e_n_t _e_a_c_h _b_a_s_e

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

     Given an object of class "BioString", this function complements
     each base in the underlying string (replacing A with T or U, T or
     U with A, C with G and G with C) and reverses it. It also changes
     the substring indices so that they reflect the reversing.

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

     reverseComplement(x)

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

       x: an object of class "BioString" 

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

     An object of class "BioString" containg the reversed and
     complemented underlying string and substring indices.

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

     Saikat DebRoy

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

     reverseComplement(DNAString("ATCG-AA"))

