mask                  package:GeneR                  R Documentation

_M_a_s_k _r_e_g_i_o_n_s _o_n _a _s_e_q_u_e_n_c_e

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

     Mask regions delimited by from and to on a sequence buffer. This
     function delete the reverse complement if exists (should be
     recomputed).

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

     mask(seqno = 0, from = 1, to = 0, letter = "N")

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

   seqno: Integer/scalar, Sequence number (buffer number)

from, to: Integer/scalar, Absolute addresses of the beginning and the
          end of the fragment, (1 means the first nucleotide and 0
          conventionally the last one;  from must not be larger than to
          and both vectors must be the same size)

  letter: Letter to use for masking

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

     usually 1; NULL if error.

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

     Antoine Lucas

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

     See also 'posMaskedSeq',   'upperSeq',  'lowerSeq'

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

     s <- "ATGCtgTGTTagtacAATGAGTGAGAGATGTGGGTTTaAAAattt"
     placeString(s,upper=FALSE,seqno=0)
     mask(from=c(10,20),to=c(15,22))
     getSeq()

