makeConSet {cosmo} | R Documentation

## Constructing a constraint set.

### Description

The first step to building a constraint set is to define the number and type of intervals defining the set. This is done using the makeConSet function. Constraints are then built using the makeBoundCon (for information content bounding constraints), makeIntFreqCon (for interval nucleotide frequency constraints), makePosFreqCon (for position frequency constraints) and finally makeShapeCon (for shape constraints). The constraints are then added to the sets created with makeConSet using the addCon command.

### Usage

    makeConSet(numInt,type,length,descrip="Constraint Set")

### Arguments

`numInt` | integer relating to the number of intervals composing the set
`type` | character vector describing the types of each of the intervals composing the set: the length of this vector should be equal to the 'numInt' argument. Possible values are 'B' for basepairs, 'V' for variable, and 'P' for proportion
`length` | numeric vector of length 'numInt', with a numeric argument describing the lengths of the intervals: either the number of basepairs if type is 'B', proportion coefficent if type is 'P'. For type 'V', the value is of no importance.
`descrip` | a character string to describe the constraint set.

### Details

These commands are an alternative to the GUI for constucting constraint sets and groups.

### Value

Null. Depending on the arguments, 1, 2 or 3 text files are created, by default in the working directory.

### Author(s)

Fabian Gallusser, fgallusser@berkeley.edu

### See Also

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

### Examples

    makeConSet(4,c("B","P","V","B"),c(4,50,NA,3))

[Package cosmo version 1.6.0 Index]