\name{sliceSegment}
\alias{sliceSegment}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{delineate sub-segments of equal size at both sides of an origin
  in a segment}

\description{
delineate sub-segments of equal size at both sides of an origin in a segment  
}
\usage{
sliceSegment(from = 1, to = 0, ori = 0, nbinL = 0, nbinR = 0, size = 1)
}

\arguments{
  \item{from}{integer, position of the begin of segment}
  \item{to}{integer, position of the end of segment}
  \item{ori}{integer, the position of the origin}
  \item{nbinL}{number of sub-segments to create before the origin}
  \item{nbinR}{number of sub-segments to create after the origin}
  \item{size}{integer, size of the sub-segments}
}

\value{
an element of class segSet
}

\seealso{\code{\link{bankDensityProfile}},\code{\link{densityProfile}},\code{\link{GCcontent}},\code{\link{seqSkew}}}

\examples{

  ## If by example we have a gene in positions 150 to 200
  ## This will create segments to study
  ## A more complex example is provided with function densityProfile

  sliceSegment(from=1,to=200,ori=150,nbinL=15,nbinR=15,size=10)


}

\author{Yves d'Aubenton and Emna}


\keyword{utilities}