forked from openproblems-bio/task_perturbation_prediction
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up metrics (openproblems-bio#59)
* remove clipped metrics; remove python implementations of metrics * add clipped layer to kaggle dataset * change default layer from sign_log10_pval to clipped_sign_log10_pval * set non-finite values to 0 * fix metricFromState argument passing * zapsmall * clean up scripts * update kaggle script * fix scripts * fix stability wf
- Loading branch information
Showing
41 changed files
with
170 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
IN="resources" | ||
OUT="output" | ||
|
||
[[ ! -d "$OUT" ]] && mkdir -p "$OUT" | ||
|
||
# run benchmark | ||
# 'input_states' looks for state.yaml files corresponding to datasets | ||
export NXF_VER=23.04.2 | ||
|
||
cat > /tmp/params.yaml << EOF | ||
id: neurips-2023-data | ||
de_train_h5ad: resources/neurips-2023-data/de_train.h5ad | ||
de_test_h5ad: resources/neurips-2023-data/de_test.h5ad | ||
id_map: resources/neurips-2023-data/id_map.csv | ||
method_ids: ['ground_truth', 'sample', 'mean_across_celltypes', 'mean_across_compounds'] | ||
layer: t # test a different layer | ||
publish_dir: "output/test_run_benchmark" | ||
output_state: state.yaml | ||
EOF | ||
|
||
nextflow run . \ | ||
-main-script target/nextflow/workflows/run_benchmark/main.nf \ | ||
-profile docker \ | ||
-resume \ | ||
--publish_dir "$OUT" \ | ||
--output_state "state.yaml" \ | ||
-entry auto \ | ||
--input_states "$IN/**/state.yaml" | ||
-params-file /tmp/params.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
export NXF_VER=23.04.2 | ||
|
||
cat > /tmp/params.yaml <<'HERE' | ||
id: neurips-2023-data | ||
sc_counts: resources/neurips-2023-raw/sc_counts_reannotated_with_counts.h5ad | ||
method_ids: ['ground_truth', 'sample', 'mean_across_celltypes', 'mean_across_compounds'] | ||
layer: t # test a different layer | ||
publish_dir: "output/test_stability_analysis" | ||
output_state: "state.yaml" | ||
HERE | ||
|
||
nextflow run . \ | ||
-main-script target/nextflow/workflows/run_stability_analysis/main.nf \ | ||
-profile docker \ | ||
-resume \ | ||
-params-file /tmp/params.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.