Skip to content

Commit a54ce8f

Browse files
committed
small changes to config
1 parent 8e6b9e0 commit a54ce8f

29 files changed

Lines changed: 261 additions & 136 deletions

File tree

scripts/prior/run_ws_background.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ for dataset in "${datasets[@]}"; do
2525
--background_distance "resources/grn_benchmark/prior/ws_distance_background_${dataset}.csv" \
2626
--tf_all "resources/grn_benchmark/prior/tf_all.csv" \
2727
--evaluation_data_sc "resources/processed_data/${dataset}_evaluation_sc.h5ad" \
28-
--max_workers 100
28+
--num_workers 100
2929
done

scripts/process_data/rest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
set -e
1515

16-
# python src/process_data/main/adamson/script.py
16+
python src/process_data/main/adamson/script.py
1717
# python src/process_data/main/nakatake/script.py
18-
# python src/process_data/main/norman/script.py
18+
python src/process_data/main/norman/script.py
1919

2020
# echo "Processing opsca"
2121
# python src/process_data/main/opsca/script.py
@@ -27,5 +27,5 @@ set -e
2727

2828
# echo "Processing 300BCG"
2929
# python src/process_data/main/300BCG/script.py
30-
echo "Processing IBD"
31-
python src/process_data/main/ibd/script.py
30+
# echo "Processing IBD"
31+
# python src/process_data/main/ibd/script.py

scripts/repo/run_grn_evaluation copy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ publish_dir="${resources_dir}/results/${RUN_ID}"
1212
grn_models_folder="${resources_dir}/grn_models"
1313

1414
subsample=-2
15-
max_workers=10
15+
num_workers=10
1616
layer=scgen_pearson
1717
metric_ids="[regression_1, regression]"
1818

@@ -44,7 +44,7 @@ append_entry() {
4444
reg_type: $reg_type
4545
method_id: $1
4646
subsample: $subsample
47-
max_workers: $max_workers
47+
num_workers: $num_workers
4848
tf_all: ${resources_dir}/prior/tf_all.csv
4949
layer: ${layer}
5050
consensus: ${resources_dir}/prior/consensus-num-regulators.json
@@ -61,7 +61,7 @@ append_entry_control() {
6161
reg_type: $reg_type
6262
method_id: $1
6363
subsample: $subsample
64-
max_workers: $max_workers
64+
num_workers: $num_workers
6565
tf_all: ${resources_dir}/prior/tf_all.csv
6666
layer: ${layer}
6767
consensus: ${resources_dir}/prior/consensus-num-regulators.json

scripts/repo/run_grn_evaluation_all_layers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish_dir="s3://openproblems-data/resources/grn/results/${RUN_ID}"
99
grn_models_folder="${resources_dir}/grn_models"
1010

1111
subsample=-2
12-
max_workers=10
12+
num_workers=10
1313

1414
param_file="./params/${RUN_ID}.yaml"
1515

@@ -38,7 +38,7 @@ append_entry() {
3838
reg_type: $reg_type
3939
method_id: $1
4040
subsample: $subsample
41-
max_workers: $max_workers
41+
num_workers: $num_workers
4242
consensus: ${resources_dir}/prior/consensus-num-regulators.json
4343
${2:+tf_all: ${resources_dir}/prior/tf_all.csv}
4444
${3:+prediction: ${grn_models_folder}/$1.csv}

scripts/repo/run_pc_vs_nc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ grn_models_folder="${resources_dir}/grn_models"
1414

1515

1616
reg_type=ridge
17-
max_workers=10
17+
num_workers=10
1818
layer=scgen_pearson
1919

2020
param_file="./params/${RUN_ID}.yaml"
@@ -42,7 +42,7 @@ append_entry() {
4242
reg_type: $reg_type
4343
method_id: ${2}-${1}
4444
subsample: $2
45-
max_workers: $max_workers
45+
num_workers: $num_workers
4646
consensus: ${resources_dir}/prior/consensus-num-regulators.json
4747
prediction: ${grn_models_folder}/$1.csv
4848
degree: 0

scripts/repo/run_robust_analys.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ grn_models_folder="${resources_dir}/grn_models/d0_hvgs"
1515

1616
reg_type=ridge
1717
subsample=-2
18-
max_workers=10
18+
num_workers=10
1919

2020
param_file="./params/${RUN_ID}.yaml"
2121

@@ -49,7 +49,7 @@ append_entry() {
4949
method_id: ${2}-${1}
5050
layer: ${3}
5151
subsample: $subsample
52-
max_workers: $max_workers
52+
num_workers: $num_workers
5353
consensus: ${resources_dir}/prior/consensus-num-regulators.json
5454
prediction: ${grn_models_folder}/$1.csv
5555
tf_all: ${resources_dir}/prior/tf_all.csv

scripts/repo/run_robust_analys_causal.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish_dir="${resources_dir}/results/${RUN_ID}"
77

88
reg_type=ridge
99
subsample=-2
10-
max_workers=10
10+
num_workers=10
1111
layer=(scgen_pearson)
1212
metric_ids="[regression_1]"
1313

@@ -26,7 +26,7 @@ cat >> $param_file << HERE
2626
method_id: baseline_corr_causal
2727
layer: ${layer}
2828
subsample: $subsample
29-
max_workers: $max_workers
29+
num_workers: $num_workers
3030
consensus: ${resources_dir}/prior/consensus-num-regulators.json
3131
tf_all: ${resources_dir}/prior/tf_all.csv
3232
causal: True
@@ -42,7 +42,7 @@ append_entry() {
4242
method_id: baseline_corr-${1}
4343
layer: ${layer}
4444
subsample: $subsample
45-
max_workers: $max_workers
45+
num_workers: $num_workers
4646
consensus: ${resources_dir}/prior/consensus-num-regulators.json
4747
tf_all: ${resources_dir}/prior/tf_all.csv
4848
causal: False

scripts/run_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set -e
22

33
# datasets=( 'replogle' 'op' 'nakatake' 'adamson' 'norman' 'xaira_HEK293T' 'xaira_HCT116' 'parsebioscience' 'ibd_uc' 'ibd_cd' '300BCG' ) #'replogle' 'op' 'nakatake' 'adamson' 'norman' 'xaira_HEK293T' 'xaira_HCT116' 'parsebioscience' 'ibd_uc' 'ibd_cd' '300BCG') #
4-
datasets=( 'op' 'replogle' ) #'replogle' 'op' 'nakatake' 'adamson' 'norman' 'xaira_HEK293T' 'xaira_HCT116' 'parsebioscience' 'ibd_uc' 'ibd_cd' '300BCG') #
4+
datasets=( 'op' ) #'replogle' 'op' 'nakatake' 'adamson' 'norman' 'xaira_HEK293T' 'xaira_HCT116' 'parsebioscience' 'ibd_uc' 'ibd_cd' '300BCG') #
55
run_local=false # set to true to run locally, false to run on AWS
66

77
run_grn_inference=false

src/api/comp_metric.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ arguments:
4444
type: integer
4545
direction: input
4646
default: 20
47+
- name: --n_top_genes
48+
type: integer
49+
direction: input
50+
default: 3000
4751

4852
test_resources:
4953
- type: python_script

src/metrics/all_metrics/helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from regression.helper import main as regression
1111
from ws_distance.helper import main as ws_distance
1212
from sem.helper import main as sem
13-
from anchor_regression.helper import main as ar
13+
from anchor_regression.helper import main as anchor_regression
1414
from tf_recovery.helper import main as tf_recovery
1515
from tf_binding.helper import main as tf_binding
1616
from rc_tf_act.helper import main as rc_tf_act
@@ -23,7 +23,7 @@
2323
'regression': regression,
2424
'ws_distance': ws_distance,
2525
'sem': sem,
26-
'ar': ar,
26+
'anchor_regression': anchor_regression,
2727
'tf_recovery': tf_recovery,
2828
'tf_binding': tf_binding,
2929
'rc_tf_act': rc_tf_act,
@@ -35,6 +35,7 @@ def main(par):
3535
dataset_id = ad.read_h5ad(par['evaluation_data'], backed='r').uns['dataset_id']
3636
rr_store = []
3737
metrics = DATASETS_METRICS[dataset_id]
38+
print(f"Computing metrics for dataset {dataset_id}: {metrics}")
3839
# metrics = ['gs_recovery', 'tf_binding']
3940

4041
for metric_name in metrics:

0 commit comments

Comments
 (0)