makeShapeDiffCon {cosmo} | R Documentation |
This function constructs a shapeDiffCon
object representing a
constraint on the unknown position weight matrix that requires the
the difference between the information content at the edge of one
interval and the information content at the edge of another interval
to be bounded betwene given bounds. This constraint may only be applied to
intervals that already have a shape constraint.
makeShapeDiffCon(int1, int2, lower, upper)
int1 |
character the location of the first information
content of interest. This is specified as the number of the interval
followed by the letter a or b depending on whether the
left or right edge of the interval is desired. |
int2 |
character the location of the second information
content of interest. This is specified as the number of the interval
followed by the letter a or b depending on whether the
left or right edge of the interval is desired. |
lower |
numeric the lower bound on the difference in
information contents. |
upper |
numeric the upper bound on the difference in
information contents. |
An object of class shapeDiffCon
.
Fabian Gallusser, fgallusser@berkeley.edu
boundCon
, shapeCon
, subMotifCon
, posFreqCon
, shapeDiffCon
, palCon
## continuous information content across interval 1 sdc1 <- makeShapeDiffCon("1a", "1b", 0.0, 0.0) ## continuous information content at junction ## between intervals 1 and 2 sdc2 <- makeShapeDiffCon("1b", "2a", 0.0, 0.0) ## decreasing information content across interval 1 sdc3 <- makeShapeDiffCon("1a", "1b", 0.0, 2.0)