removeModel {INSPEcT} | R Documentation

## remove modelling information from INSPEcT object

### Description

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)

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

### Arguments

`object` | An Object of class INSPEcT

### Value

An Object of class INSPEcT

### Examples

    nascentInspObj10 <- readRDS(system.file(package='INSPEcT', 'nascentInspObj10.rds'))
    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)
    ## Not run: nascentInspObj10_new <- modelRates(nascentInspObj10_new, useSigmoidFun = FALSE)

[Package INSPEcT version 1.22.0 Index]