library(spacexr)
library(spASE)
res <- readRDS('results/rctd_cere_4_visium.rds')
maternal_counts_matrix <- res@originalSpatialRNA@maternalCounts
paternal_counts_matrix <- res@originalSpatialRNA@paternalCounts
coords <- res@originalSpatialRNA@coords
coords$bead <- rownames(coords)
coords <- coords[c('bead','x','y')]
myfit <- spase(maternal_counts_matrix, paternal_counts_matrix, coords,cores=8)
saveRDS(myfit, file = 'results/results_overall_spatial_cere_4_visium.rds')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.