-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into add_cpa
- Loading branch information
Showing
75 changed files
with
703 additions
and
489 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
Submodule common
updated
from e64f47 to 65e05a
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
# if users change the scripts, the changes should not be committed. | ||
/create_*_*.s |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_python_method \ | ||
--language python \ | ||
--type method |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_python_metric \ | ||
--language python \ | ||
--type metric |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_r_method \ | ||
--language r \ | ||
--type method |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_r_metric \ | ||
--language r \ | ||
--type metric |
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,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
common/create_task_readme/create_task_readme \ | ||
--task_dir src \ | ||
--output README.md | ||
set -e | ||
|
||
common/scripts/create_task_readme --input src/api |
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.
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,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Build all components in a namespace (refer https://viash.io/reference/cli/ns_build.html) | ||
viash ns build --parallel |
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Build all components in a namespace (refer https://viash.io/reference/cli/ns_build.html) | ||
# and set up the container via a cached build | ||
viash ns build --parallel --setup cachedbuild |
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,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Test all components in a namespace (refer https://viash.io/reference/cli/ns_test.html) | ||
viash ns test --parallel |
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,47 @@ | ||
#!/bin/bash | ||
|
||
# get the root of the directory | ||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
# ensure that the command below is run from the root of the repository | ||
cd "$REPO_ROOT" | ||
|
||
# NOTE: depending on the the datasets and components, you may need to launch this workflow | ||
# on a different compute platform (e.g. a HPC, AWS Cloud, Azure Cloud, Google Cloud). | ||
# please refer to the nextflow information for more details: | ||
# https://www.nextflow.io/docs/latest/ | ||
|
||
set -e | ||
|
||
echo "Running benchmark on test data" | ||
echo " Make sure to run 'scripts/project/build_all_docker_containers.sh'!" | ||
|
||
# generate a unique id | ||
resources_dir="resources" | ||
RUN_ID="run_$(date +%Y-%m-%d_%H-%M-%S)" | ||
publish_dir="resources/results/${RUN_ID}" | ||
|
||
# write the parameters to file | ||
cat > /tmp/params.yaml << HERE | ||
param_list: | ||
- id: neurips-2023-data | ||
de_train: "$resources_dir/neurips-2023-data/de_train.h5ad" | ||
de_test: "$resources_dir/neurips-2023-data/de_test.h5ad" | ||
id_map: "$resources_dir/neurips-2023-data/id_map.csv" | ||
layer: clipped_sign_log10_pval | ||
- id: neurips-2023-kaggle | ||
de_train: "$resources_dir/neurips-2023-kaggle/de_train.h5ad" | ||
de_test: "$resources_dir/neurips-2023-kaggle/de_test.h5ad" | ||
id_map: "$resources_dir/neurips-2023-kaggle/id_map.csv" | ||
layer: sign_log10_pval | ||
output_state: "state.yaml" | ||
publish_dir: "$publish_dir" | ||
HERE | ||
|
||
# run the benchmark | ||
nextflow run . \ | ||
-main-script target/nextflow/workflows/run_benchmark/main.nf \ | ||
-profile docker \ | ||
-resume \ | ||
-c common/nextflow_helpers/labels_ci.config \ | ||
-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# get the root of the directory | ||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
# ensure that the command below is run from the root of the repository | ||
cd "$REPO_ROOT" | ||
|
||
set -e | ||
|
||
# generate a unique id | ||
RUN_ID="run_$(date +%Y-%m-%d_%H-%M-%S)" | ||
resources_dir="s3://openproblems-data/resources/task_perturbation_prediction/datasets/" | ||
publish_dir="s3://openproblems-data/resources/task_perturbation_prediction/results/${RUN_ID}" | ||
|
||
# write the parameters to file | ||
cat > /tmp/params.yaml << HERE | ||
param_list: | ||
- id: neurips-2023-data | ||
de_train: "$resources_dir/neurips-2023-data/de_train.h5ad" | ||
de_test: "$resources_dir/neurips-2023-data/de_test.h5ad" | ||
id_map: "$resources_dir/neurips-2023-data/id_map.csv" | ||
layer: clipped_sign_log10_pval | ||
# - id: neurips-2023-kaggle | ||
# de_train: "$resources_dir/neurips-2023-kaggle/de_train.h5ad" | ||
# de_test: "$resources_dir/neurips-2023-kaggle/de_test.h5ad" | ||
# id_map: "$resources_dir/neurips-2023-kaggle/id_map.csv" | ||
# layer: sign_log10_pval | ||
output_state: "state.yaml" | ||
publish_dir: "$publish_dir" | ||
HERE | ||
|
||
tw launch https://github.com/openproblems-bio/task_perturbation_prediction.git \ | ||
--revision build/main \ | ||
--pull-latest \ | ||
--main-script target/nextflow/workflows/run_benchmark/main.nf \ | ||
--workspace 53907369739130 \ | ||
--compute-env 6TeIFgV5OY4pJCk8I0bfOh \ | ||
--params-file /tmp/params.yaml \ | ||
--entry-name auto \ | ||
--config common/nextflow_helpers/labels_tw.config \ | ||
--labels task_perturbation_prediction,full |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
scripts/run_stability_tw.sh → scripts/run_benchmark/run_stability_tw.sh
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
Oops, something went wrong.