otherStrand           package:tilingArray           R Documentation

_R_e_t_u_r_n _t_h_e _n_a_m_e _o_f _t_h_e _o_p_p_o_s_i_t_e _s_t_r_a_n_d

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

     Return the name of the opposite strand

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

     otherStrand(x)

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

       x: Character vector whose elements are "+" or "-".

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

     This is a rather trivial convenience function.

     An alternative would be to code strands with integers '-1' and
     '+1', in which case the inversion would be a trivial builtin
     operation. However, many genomic databases and input data files
     use the character string / factor notation.

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

     Character vector of same length as 'x', with strands reversed.

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

     W. Huber <huber@ebi.ac.uk>

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

       otherStrand(c("+", "-"))

