RangesMatchingList-class       package:IRanges       R Documentation

_L_i_s_t _o_f _M_a_t_c_h_i_n_g_s _b_e_t_w_e_e_n _R_a_n_g_e_s

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

     The 'RangesMatchingList' class stores a set of matchings,
     represented as 'RangesMatching' objects, between the ranges in one
     'RangesList' object and the ranges in another.

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

     Roughly the same set of utilities are provided for
     'RangesMatchingList' as for 'RangesMatching':

     The 'as.matrix' method coerces a 'RangesMatchingList' in a similar
     way to 'RangesMatching', except a column is prepended that
     indicates which space (or element in the query 'RangesList') to
     which the row corresponds.

     The 'as.table' method flattens or unlists the list, counts the
     number of matchings for each query range and outputs the counts as
     a 'table', which has the same shape as from a single
     'RangesMathing'.

     To transpose a 'RangesMatchingList' 'x', so that the subject and
     query in each space are interchanged, call 't(x)'. This allows,
     for example, counting the number of subjects that matched using
     'as.table'.

     To get the actual regions of intersection between the overlapping
     ranges, use the 'ranges' accessor.

_C_o_e_r_c_i_o_n:

     In the code snippets below, 'x' is a 'RangesMatchingList' object.


      'as.matrix(x)': calls 'as.matrix' on each 'RangesMatching',
          combines them row-wise and offsets the indices so that they
          are aligned with the result of calling 'unlist' on the query
          and subject (as long as the names on each, if any, are in the
          same order).

      'as.table(x)': counts the number of matchings for each query
          range in 'x' and outputs the counts as a 'table', which is
          aligned with the result of calling 'unlist' on the query.

      't(x)': Interchange the query and subject in each space of 'x',
          returns a transposed 'RangesMatchingList'.

_A_c_c_e_s_s_o_r_s:


      'space(x)': gets the character vector naming the space in the
          query 'RangesList' for each match, or 'NULL' if the query did
          not have any names.

      'ranges(x, query, subject)': returns a 'RangesList' holding the
          intersection of the ranges in the 'RangesList' objects
          'query' and 'subject', which should be the same subject and
          query used to generate 'x'. Eventually, we might store the
          query and subject inside 'x', in which case the arguments
          would be redundant.


_N_o_t_e:

     This class is highly experimental. It has not been well tested and
     may disappear at any time.

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

     Michael Lawrence

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

     'overlap', which generates an instance of this class.

