Update a serialised spiDE object to the current class definition
Source:R/AllClasses.R
updateObject.RdSlots 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)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)