Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecabiria committed Nov 29, 2024
1 parent daad0c5 commit f0d111e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/helpers/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ generate_moransI <- function(adata) {


generate_cosine <- function(real, sim) {
requireNamespace("lsa", quietly = TRUE)

real_new <- real[!is.na(real) & !is.na(sim)]
sim_new <- sim[!is.na(real) & !is.na(sim)]
similarity <- lsa::cosine(lsa::as.textmatrix(cbind(as.vector(real_new$Morans.I), as.vector(sim_new$Morans.I))))
Expand Down
1 change: 0 additions & 1 deletion src/metrics/downstream/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ cat("spatial clustering evaluation\n")
real_cluster <- input_real_sp$obs[, c("spatial_cluster")]
sim_cluster <- generate_sim_spatialCluster(input_real_sp, input_simulated_sp)
location <- rownames(input_simulated_sp)
location
sim_new_cluster <- reclassify_simsce(location, real_cluster, sim_cluster)

# ART and NMI
Expand Down

0 comments on commit f0d111e

Please sign in to comment.