Skip to content

Commit

Permalink
add missing R packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sainirmayi committed Jul 26, 2024
1 parent 55ef3e6 commit a486b98
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/metrics/ks_statistic_gene_cell/config.vsh.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
__merge__: ../../api/comp_metric.yaml

name: ks_statistic
name: ks_statistic_gene_cell

info:
metrics:
- name: ks_statistic_frac_zero_genes
label: Fraction of zeros in genes
summary: Ks Statistic of the fraction of zeroes in the genes
summary: KS Statistic of the fraction of zeroes in the genes
description: |
The Kolmogorov-Smirnov statistic comparing the fraction of zeros in the
genes of the real counts versus the fraction of zeros in the genes of
Expand All @@ -19,7 +19,7 @@ info:
maximize: false
- name: ks_statistic_frac_zero_cells
label: Fraction of zeros in cells
summary: Ks Statistic of the fraction of zeroes in the cells
summary: KS Statistic of the fraction of zeroes in the cells
description: |
The Kolmogorov-Smirnov statistic comparing the fraction of zeros in the
cells of the real counts versus the fraction of zeros in the cells of
Expand All @@ -39,11 +39,16 @@ engines:
- type: docker
image: ghcr.io/openproblems-bio/base_images/r:1.1.0
setup:
- type: r
cran: ks
- type: apt
packages:
- git
- r-bioc-edger
- r-cran-ks
- r-cran-resample
- r-cran-reshape2

runners:
- type: executable
- type: nextflow
directives:
label: [midtime,midmem,midcpu]
label: [midtime, midmem, midcpu]
4 changes: 4 additions & 0 deletions src/metrics/ks_statistic_gene_cell/script.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
requireNamespace("anndata", quietly = TRUE)
requireNamespace("edgeR", quietly = TRUE)
requireNamespace("ks", quietly = TRUE)
requireNamespace("resample", quietly = TRUE)
requireNamespace("reshape2", quietly = TRUE)

## VIASH START
par <- list(
Expand Down

0 comments on commit a486b98

Please sign in to comment.