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("+", "-"))

