x is an MIndex object. length(x):
      The number of patterns that matches are stored for.
    names(x):
      The names of the patterns that matches are stored for.
    startIndex(x):
      A list containing the starting positions of the matches
      for each pattern.
    endIndex(x):
      A list containing the ending positions of the matches
      for each pattern.
    elementNROWS(x):
      An integer vector containing the number of matches
      for each pattern.
    x is an MIndex object. x[[i]]:
      Extract the matches for the i-th pattern as an
    IRanges object. 
    x is an MIndex object. as(x, "CompressedIRangesList"):
      Turns x into an
    CompressedIRangesList object. 
      This coercion changes x from one
    RangesList 
      subtype to another with the underlying
    Ranges values remaining unchanged.
    x and mindex are MIndex objects
  and subject is the XString object
  containing the sequence in which the matches were found. unlist(x, recursive=TRUE, use.names=TRUE):
      Return all the matches in a single
    IRanges object. 
      recursive and use.names are ignored.
    extractAllMatches(subject, mindex):
      Return all the matches in a single XStringViews object.
       matchPDict function returns an MIndex object.
matchPDict,
  PDict-class,
  IRanges-class,
  XStringViews-class
  ## See ?matchPDict and ?`matchPDict-inexact` for some examples.
Run the code above in your browser using DataLab