Learn R Programming

INSPEcT (version 1.2.2)

removeModel: remove modelling information from INSPEcT object

Description

remove modelling information from INSPEcT object

Remove the model from an INSPEcT object. It is required when subsetting an INSPEcT object per time points because when removing time points the modeling is not valid anymore.

Usage

removeModel(object)
"removeModel"(object)

Arguments

object
An Object of class INSPEcT

Value

An Object of class INSPEcT

Examples

Run this code
data('mycerIds10', package='INSPEcT')
mycerIds_5genes <- mycerIds10[1:5]

## This will turn out into an error:
## Not run: mycerIds_5genes_5tpts <- mycerIds10[1:5, 1:5]


## Before subsetting time points, the model should be removed:
mycerIds_5genes_5tpts <- removeModel(mycerIds10)[1:5, 1:5]

## Also this will turn out into an error:
## Not run: mycerIds10 <- modelRates(mycerIds10)

## Before running the model again, or changing modeling parameters,
## the previous model should be removed:
mycerIds10_old <- mycerIds10
mycerIds10_new <- removeModel(mycerIds10)
modelingParams(mycerIds10_new)$useSigmoidFun <- FALSE
## Not run: mycerIds10_new <- modelRates(mycerIds10_new)

Run the code above in your browser using DataLab