Description Usage Arguments Value Examples
Setter functions for scHOT objects
1 | weightMatrix(x) <- value
|
x |
A scHOT object |
value |
The value the slot should take |
A scHOT object
1 2 3 4 5 6 7 8 9 10 11 12 | 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")])
weightMatrix(scHOT_spatial) <- W
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.