Skip to content

Commit

Permalink
fix scripts and submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Sep 8, 2024
1 parent 405ea62 commit e52d07e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common
5 changes: 4 additions & 1 deletion scripts/run_benchmark/run_full_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ exit 1

set -e

echo "Running benchmark on test data"
echo " Make sure to run 'scripts/project/build_all_docker_containers.sh'!"

# generate a unique id
RUN_ID="run_$(date +%Y-%m-%d_%H-%M-%S)"
publish_dir="resources/results/${RUN_ID}"
Expand All @@ -40,5 +43,5 @@ nextflow run openproblems-bio/task_template \
-profile docker \
-resume \
-entry auto \
-c common/nextflow_helpers/labels.config \
-c common/nextflow_helpers/labels_ci.config \
-params-file /tmp/params.yaml
13 changes: 10 additions & 3 deletions scripts/run_benchmark/run_test_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,25 @@ exit 1

set -e

echo "Running benchmark on test data"
echo " Make sure to run 'scripts/project/build_all_docker_containers.sh'!"

# generate a unique id
RUN_ID="testrun_$(date +%Y-%m-%d_%H-%M-%S)"
publish_dir="resources/results/${RUN_ID}"

# write the parameters to file
cat > /tmp/params.yaml << 'HERE'
cat > /tmp/params.yaml << HERE
input_states: s3://openproblems-data/resources_test/task_template/**/state.yaml
rename_keys: 'input_train:output_train;input_test:output_test;input_solution:output_solution'
output_state: "state.yaml"
publish_dir: s3://openproblems-nextflow/temp/task_template/
publish_dir: "$publish_dir"
HERE

nextflow run . \
-main-script target/nextflow/workflows/run_benchmark/main.nf \
-profile docker \
-resume \
-entry auto \
-c common/nextflow_helpers/labels.config \
-c common/nextflow_helpers/labels_ci.config \
-params-file /tmp/params.yaml

0 comments on commit e52d07e

Please sign in to comment.