# the model fitted by SpaNorm() is stored in the metadata of the object
fit <- S4Vectors::metadata(HumanDLPFC)$SpaNorm
fitSpaNormFit
Data: 301 genes, 4015 cells/spots
Gene model: nb
Degrees of freedom for TPS (y,x): Biology (2,2), LS (1,1)
Spots/cells sampled: 5%
Regularisation parameter: Biology (1e-04), LS (1e-04)
Batch: NULL
log-likelihood (per-iteration): num [1:2] -119358 -119237
W: num [1:4015, 1:6] 0.3051 0.5028 0.0962 -0.1819 0.6169 ...
W: - attr(*, "dimnames")=List of 2
W: ..$ : chr [1:4015] "1" "2" "3" "4" ...
W: ..$ : chr [1:6] "logLS" "bs.xy.bio1" "bs.xy.bio2" "bs.xy.bio3" ...
alpha: num [1:301, 1:6] 0.97 0.97 0.97 0.97 0.97 ...
gmean: num [1:301] 0.65 0.765 0.863 1.311 0.828 ...
psi: num [1:301] 0.02069 0.00517 0.03287 0.0348 0.04418 ...
wtype: Factor w/ 3 levels "batch","biology",..: 3 2 2 2 2 3
sampling: all (4015), glm (201), dispersion (201)
isPolished(fit)[1] FALSE