DNAString-class          package:Biostrings          R Documentation

_T_h_e _D_N_A_S_t_r_i_n_g _c_l_a_s_s

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

     A 'DNAString' object allows efficient storage and manipulation of
     a long DNA sequence.

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

     The 'DNAString' class derives directly from the 'BString' class
     (with no additional slot). All functions and methods described in
     the 'BString' man page also work with a 'DNAString' object
     (inheritance).

     Unlike a 'BString' object that allows storage of any non-empty
     string (based on a single-byte character set) a 'DNAString' object
     can only store a non-empty string based on the DNAString alphabet
     (see below). In addition, the letters stored in a 'DNAString'
     object are encoded in a way that optimizes fast search algorithms.

_T_h_e _D_N_A_S_t_r_i_n_g _a_l_p_h_a_b_e_t:

     This alphabet contains all letters from the IUPAC Extended Genetic
     Alphabet (see 'IUPAC_CODE_MAP') + the gap letter '"-"'. It is
     stored in the 'DNA_ALPHABET' constant (character vector). The
     'alphabet' method also returns 'DNA_ALPHABET' when applied to a
     'DNAString' object and is provided for convenience only.

_C_o_n_s_t_r_u_c_t_o_r-_l_i_k_e _f_u_n_c_t_i_o_n_s _a_n_d _g_e_n_e_r_i_c_s:

     In the code snippet below, 'src' can be a character vector or a
     'BString' (or derived) object.

      'DNAString(src)': [TODO: Document me]

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

     H. Pages

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

     'BString', 'IUPAC_CODE_MAP', 'RNAString', 'BStringViews'

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

       DNA_ALPHABET
       d <- DNAString("TTGAAAA-CTC-N")
       length(d)
       alphabet(d)

