\HeaderA{seedRegions}{A function to retrieve the seed regions from microRNA sequences}{seedRegions}
\keyword{manip}{seedRegions}
\begin{Description}\relax
The seed region of a microRNA consists of a set of nucleotides at the
5' end of the microRNA, typically bases 2 through 7, although some times 8
is used.
\end{Description}
\begin{Usage}
\begin{verbatim}
seedRegions(x, start = 2, stop = 7)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A vector of microRNA sequences. 
\item[\code{start}] The start locations, can be a vector. 
\item[\code{stop}] The stop locations, can be a vector. 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
We use \code{\LinkA{substr}{substr}} to extract these sequences.
\end{Details}
\begin{Value}
A vector of the same length as \code{x} with the substrings.
\end{Value}
\begin{Author}\relax
R. Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{substr}{substr}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 data(hsSeqs)
 seedRegions(hsSeqs[1:5])
 seedRegions(hsSeqs[1:3], start=c(2,1,2), stop=c(8,7,9))
\end{ExampleCode}
\end{Examples}

