makeShapeDiffCon {cosmo} | R Documentation

## Constructing a shape parameter difference constraint

### Description

This function constructs a texttt{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.

### Usage

    makeShapeDiffCon(int1, int2, lower, upper)

### Arguments

`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.

### Value

An object of class texttt{shapeDiffCon}.

### Author(s)

Fabian Gallusser, fgallusser@berkeley.edu

### See Also

`boundCon`, `shapeCon`, `subMotifCon`, `posFreqCon`, `shapeDiffCon`, `palCon`

### Examples

    ## 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)

[Package cosmo version 1.8.0 Index]