matchPattern           package:Biostrings           R Documentation

_S_t_r_i_n_g _s_e_a_r_c_h_i_n_g _f_u_n_c_t_i_o_n_s

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

     Generic that finds all matches of a pattern in a BString.
     Currently only the ``shift-or'' algorithm is available.

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

       matchPattern(pattern, subject, algorithm="shift-or", mismatch=0, fixed=NA)
       countPattern(pattern, subject, algorithm="shift-or", mismatch=0, fixed=NA)
       mismatch(pattern, x, fixed=NA)

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

 pattern: The pattern string. 

 subject: A BString (or DNAString or RNAString) object containing the
          subject string. 

algorithm: One of the following: '"boyer-moore"', '"forward-search"' or
          '"shift-or"' (currently, only '"shift-or"' is available). 

mismatch: The number of mismatches allowed. If non-zero a fuzzy string
          searching algorithm is used for matching. 

   fixed: A logical.  If 'TRUE', 'pattern' is a string to be matched as
          is. 

       x: A BStringViews object (typically, one returned by
          code{matchPattern(pattern, subject)}). 

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

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

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

     H. Pages

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

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

