Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Sep 3, 2024
1 parent 2d85a7b commit 944328a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
Empty file modified scripts/create_component/create_python_method.sh
100644 → 100755
Empty file.
Empty file modified scripts/create_component/create_python_metric.sh
100644 → 100755
Empty file.
Empty file modified scripts/create_component/create_r_method.sh
100644 → 100755
Empty file.
Empty file modified scripts/create_component/create_r_metric.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion scripts/create_datasets/resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cat > /tmp/params.yaml << 'HERE'
input_states: s3://openproblems-data/resources/datasets/**/state.yaml
rename_keys: 'input:output_dataset'
output_state: "state.yaml"
settings: '{"output_train": "$id/train.h5ad", "output_test": "$id/test.h5ad"}'
settings: '{"output_train": "$id/train.h5ad", "output_test": "$id/test.h5ad", "output_state": "$id/state.yaml"}'
publish_dir: s3://openproblems-data/resources/task_label_projection/datasets/
HERE

Expand Down
6 changes: 6 additions & 0 deletions scripts/run_benchmark/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ tw launch https://github.com/openproblems-bio/task_label_projection.git \
--entry-name auto \
--config common/nextflow_helpers/labels_tw.config \
--labels task_label_projection,full

# sync
aws s3 sync \
s3://openproblems-data/resources/task_label_projection/results/ \
resources/results/ \
--delete --dryrun
2 changes: 0 additions & 2 deletions src/workflows/process_datasets/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ resources:
dependencies:
- name: schema/verify_data_structure
repository: core
- name: h5ad/extract_uns_metadata
repository: core
- name: data_processors/process_dataset

runners:
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 @@ -62,8 +62,6 @@ resources:
path: /_viash.yaml

dependencies:
- name: schema/verify_data_structure
repository: core
- name: h5ad/extract_uns_metadata
repository: core
- name: control_methods/majority_vote
Expand Down
5 changes: 1 addition & 4 deletions src/workflows/run_benchmark/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,7 @@ workflow run_wf {
def metric_configs_file = tempFile("metric_configs.yaml")
metric_configs_file.write(metric_configs_yaml_blob)

def viash_file = meta.resources_dir.resolve("_viash.yaml")
def viash_file_content = toYamlBlob(readYaml(viash_file).info)
def task_info_file = tempFile("task_info.yaml")
task_info_file.write(viash_file_content)
def task_info_file = meta.resources_dir.resolve("_viash.yaml")

// store the scores in a file
def score_uns = states.collect{it.score_uns}
Expand Down

0 comments on commit 944328a

Please sign in to comment.