weightMatrix-set.Rd
Setter functions for scHOT objects
weightMatrix(x) <- value
A scHOT object
The value the slot should take
A scHOT object
library(SingleCellExperiment)
data(MOB_subset)
sce_MOB_subset <- MOB_subset$sce_MOB_subset
scHOT_spatial <- scHOT_buildFromSCE(sce_MOB_subset,
assayName = "logcounts",
positionType = "spatial",
positionColData = c("x", "y"))
W <- spatialWeightMatrix(colData(scHOT_spatial)[,slot(scHOT_spatial, "positionColData")])
#> span not specified, defaulting to 0.05
weightMatrix(scHOT_spatial) <- W