Skip to content

Commit

Permalink
Add requireNamespace MuSic, CARD in helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecabiria committed Aug 27, 2024
1 parent c191ca9 commit 677ac6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ calculate_recall <- function(real_svg, sim_svg) {
CARD_processing <- function(sp_adata, sc_adata){
# sp_adata <- input_real_sp
# sc_adata <- input_sc
library(MuSiC)
library(CARD)
requireNamespace("MuSiC", quietly = TRUE)
requireNamespace("CARD", quietly = TRUE)
spatial_count <- Matrix::t(sp_adata$layers[["counts"]])
spatial_location <- cbind.data.frame(
x = as.numeric(sapply(strsplit(colnames(spatial_count),split="x"),"[",1)),
Expand Down

0 comments on commit 677ac6f

Please sign in to comment.