... | ... |
@@ -49,8 +49,7 @@ mockSVG <- function(size = 10, tot_genes = 1000, de_genes = 100, |
49 | 49 |
if (return_SPE) { |
50 | 50 |
out <- SpatialExperiment::SpatialExperiment( |
51 | 51 |
assays = list(counts = counts), |
52 |
- spatialData = S4Vectors::DataFrame(coordinates), |
|
53 |
- spatialCoordsNames = c("x", "y") |
|
52 |
+ spatialCoords = as.matrix(coordinates) |
|
54 | 53 |
) |
55 | 54 |
} |
56 | 55 |
out |