shapeDiffCon-class {cosmo} | R Documentation

## Class "shapeDiffCon" ~~~

### Description

This class defines a global constraint for the bounds of the difference of the information content at two interval extremities.

### Objects from the Class

Objects can be created by calls of the form `new('shapeDiffCon',`
`int1 = ...., # Object of class character`
`int2 = ...., # Object of class character`
`lower = ...., # Object of class numeric`
`upper = ...., # Object of class numeric`
`)` or by: `makeShapeDiffCon(`
`int1 = ...., # Object of class character`
`int2 = ...., # Object of class character`
`lower = ...., # Object of class numeric`
`upper = ...., # Object of class numeric`
`)`

### Slots

`int1`:
  Object of class `"character"` designing the first interval and extremity of the constraint: the first character is the interval number, the second is the extremity: 'a' for beginning and 'b' for end
`int2`:
  Object of class `"character"` designing the second interval and extremity of the constraint: the first character is the interval number, the second is the extremity: 'a' for beginning and 'b' for end
`lower`:
  Object of class `"numeric"` matrix containing the lower bounds of the linear constraints junctions
`upper`:
  Object of class `"numeric"` matrix containing the upper bounds of the linear constraints junctions

### Methods

No methods defined with class "linCon" in the signature.

### Note

The constraints is so that: lower <= Information content at int1 - Information content at int2 <= upper.

The 'makeShapeDiffCon' will build an object of class `"shapeDiffCon"` given the int1, int2, lower and upper values.

### Author(s)

Fabian Gallusser, fgallusser@berkeley.edu

### References

### See Also

`shapeCon`, `subMotifCon`, `posFreqCon`, `boundCon`, `palCon` `makeConSet`

### Examples

    makeShapeDiffCon(int1="1b", int2="2a", lower=0.2, upper=0.5)

[Package cosmo version 1.2.0 Index]