Skip to content

Commit

Permalink
Add MuSic package in the helper
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecabiria committed Aug 27, 2024
1 parent bf3f65d commit c191ca9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/helpers/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +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)
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
2 changes: 1 addition & 1 deletion src/metrics/downstream/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ engines:
- dplyr
github:
- xzhoulab/SPARK
- xuranw/MuSiC
- YingMa0107/CARD
- xuranw/MuSiC

runners:
- type: executable
Expand Down
11 changes: 0 additions & 11 deletions src/metrics/downstream/script.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
requireNamespace("anndata", quietly = TRUE)
requireNamespace("edgeR", quietly = TRUE)
requireNamespace("ks", quietly = TRUE)
requireNamespace("resample", quietly = TRUE)
requireNamespace("reshape2", quietly = TRUE)
requireNamespace("MuSiC", quietly = TRUE)
requireNamespace("CARD", quietly = TRUE)
requireNamespace("SingleCellExperiment", quietly = TRUE)
requireNamespace("SummarizedExperiment", quietly = TRUE)


## VIASH START
par <- list(
input_spatial_dataset = "resources_test/datasets/MOBNEW/dataset_sp.h5ad",
Expand Down

0 comments on commit c191ca9

Please sign in to comment.