Skip to contents

Slots added to a class do not appear in objects serialised before they existed. Reading such an object still works, but anything that triggers validity — notably initialize(), the documented idiom for re-combining fits across bandwidths — fails. These methods fill any absent slot from the class prototype and leave every present slot untouched.

Usage

# S4 method for class 'SpiDEFit'
updateObject(object, ..., verbose = FALSE)

# S4 method for class 'SpiDEResults'
updateObject(object, ..., verbose = FALSE)

Arguments

object

a SpiDEFit or SpiDEResults, possibly from an older version.

...

ignored.

verbose

report which slots were filled.

Value

the object, with any slots missing since serialisation filled from the class prototype.

Examples

data(toySpiDE)
spe <- buildNiches(toySpiDE, sigma = 20)
fit <- fitSpiDE(spe, condition = "condition", sigma = 20, random = "none", verbose = FALSE)
updateObject(fit)
#> SpiDEResults
#> Bandwidths (sigma): 20
#> Genes: 20
#> Condition: condition
#> Index cell types: A, B, C
#> Niche cell types: A, B, C
#> Tested: FALSE (0 rows in results table)