removeModel: remove modelling information from INSPEcT object

Description Usage Arguments Value Examples

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

1
2
3
4
removeModel(object)

## S4 method for signature 'INSPEcT'
removeModel(object)

Arguments

object

An Object of class INSPEcT

Value

An Object of class INSPEcT

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data('nascentInspObj10', package='INSPEcT')
nascentInspObj10_5genes <- nascentInspObj10[1:5]

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


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

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

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

ste-depo/INSPEcT documentation built on July 30, 2018, 12:04 p.m.