Skip to content

Commit

Permalink
change to workflow run benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
janursa committed Nov 27, 2024
1 parent 88936d5 commit 4cd5eac
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 13 deletions.
15 changes: 14 additions & 1 deletion runs.ipynb

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/api/comp_metric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ functionality:
type: boolean
required: false
default: true
- name: --clip_scores
type: boolean
required: false
default: true
description: clips the r2 scores for each gene to make them within [0, 1]

- name: --layer
type: string
direction: input
Expand Down
4 changes: 2 additions & 2 deletions src/api/unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ functionality:
test_resources:
- type: python_script
path: /src/common/component_tests/run_and_check_output.py
- path: /resources_test/grn-benchmark
dest: resources_test/grn-benchmark
- path: /resources_test/
dest: resources_test/
6 changes: 3 additions & 3 deletions src/metrics/script_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ def define_par(dataset):
global_models = False

# - run metrics
for dataset in ['op']: #'op', 'replogle2', 'nakatake', 'norman', 'adamson'
for dataset in ['op', 'replogle2', 'nakatake', 'norman', 'adamson']: #'op', 'replogle2', 'nakatake', 'norman', 'adamson'
print('------ ', dataset, '------')
par = define_par(dataset)
os.makedirs(par['scores_dir'], exist_ok=True)
main_consensus(par)
for binarize in [True]:
par['binarize'] = binarize
for max_n_links in [50000]:
for max_n_links in [10000]:
par['max_n_links'] = max_n_links
for apply_skeleton in [True]:
for apply_skeleton in [False]:
par['apply_skeleton'] = apply_skeleton
# - determines models to run
grn_files_dict = {}
Expand Down
2 changes: 0 additions & 2 deletions src/workflows/run_benchmark/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ functionality:
- name: grn_methods/portia
- name: grn_methods/grnboost2
- name: grn_methods/scenic

# - name: grn_methods/genie3

- name: grn_methods/ppcor #needs docker image
- name: grn_methods/scgpt

Expand Down
1 change: 1 addition & 0 deletions src/workflows/run_benchmark/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ workflow run_wf {
ppcor,
scenic,
scglue,
scgpt,

pearson_corr,
negative_control,
Expand Down

0 comments on commit 4cd5eac

Please sign in to comment.