3 \title{Find Patterns in DNA Sequences}
5 This function finds patterns in a single or a set of DNA sequences.
11 \item{x}{an object of class \code{"DNAbin"}.}
12 \item{pattern}{a character string to be searched in \code{x}.}
15 If \code{x} is a vector, the function returns a single vector giving
16 the position(s) where the pattern was found. If \code{x} is a matrix
17 or a list, it returns a list with the positions of the pattern for
20 Patterns may be overlapping. For instance, if \code{pattern = "tata"}
21 and the sequence starts with `tatata', then the vector returned will
25 a vector of integers or a list of such vectors.
27 \author{Emmanuel Paradis}
29 \code{\link{DNAbin}}, \code{\link{image.DNAbin}}
33 where(woodmouse, "tata")