Skip to content

Commit 11cab3e

Browse files
committed
fixed limma
1 parent f75d01c commit 11cab3e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/methods/limma_remove_batch_effect/config.vsh.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ links:
1919
resources:
2020
- type: r_script
2121
path: script.R
22+
- type: r_script
23+
path: /src/utils/helper_functions.R
2224

2325
engines:
2426
- type: docker
2527
image: openproblems/base_r:1
2628
setup:
2729
- type: r
2830
bioc: limma
31+
packages: [ lifecycle, vctrs, dplyr, rlang ]
2932

3033
runners:
3134
- type: executable

src/methods/limma_remove_batch_effect/script.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ meta <- list(
1111
)
1212
## VIASH END
1313

14+
source(paste0(meta$resources_dir, "/helper_functions.R"))
15+
1416
cat("Reading input files\n")
15-
input <- anndata::read_h5ad(par[["input"]])
17+
input <- anndata::read_h5ad(par[["input"]]) |>
18+
subset_nocontrols()
1619

1720
cat("Subset data\n")
1821
data_not_correct <- input[, !input$var$to_correct]

0 commit comments

Comments
 (0)