Skip to content

Commit

Permalink
Update test_resources path
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiWaldrant committed Sep 20, 2024
1 parent d49f215 commit 1b8f145
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions _viash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ info:
test_resources:
- type: s3
path: s3://openproblems-data/resources_test/denoising/
dest: resources_test/denoising
path: s3://openproblems-data/resources_test/task_denoising/
dest: resources_test/task_denoising
- type: s3
path: s3://openproblems-data/resources_test/common/
dest: resources_test/common
Expand Down
4 changes: 2 additions & 2 deletions scripts/create_resources/test_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cd "$REPO_ROOT"
set -e

RAW_DATA=resources_test/common
DATASET_DIR=resources_test/denoising
DATASET_DIR=resources_test/task_denoising

mkdir -p $DATASET_DIR

Expand Down Expand Up @@ -41,5 +41,5 @@ HERE

# only run this if you have access to the openproblems-data bucket
aws s3 sync --profile OP \
"$DATASET_DIR" s3://openproblems-data/resources_test/denoising \
"$DATASET_DIR" s3://openproblems-data/resources_test/task_denoising \
--delete --dryrun
4 changes: 2 additions & 2 deletions scripts/run_benchmark/run_test_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ nextflow run . \
-resume \
-c common/nextflow_helpers/labels_ci.config \
--id cxg_mouse_pancreas_atlas \
--input_train resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad \
--input_test resources_test/denoising/cxg_mouse_pancreas_atlas/test.h5ad \
--input_train resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad \
--input_test resources_test/task_denoising/cxg_mouse_pancreas_atlas/test.h5ad \
--output_state state.yaml \
--publish_dir "$publish_dir"
4 changes: 2 additions & 2 deletions src/api/comp_control_method.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ test_resources:
- type: python_script
path: /common/component_tests/check_config.py
- path: /common/library.bib
- path: /resources_test/denoising/cxg_mouse_pancreas_atlas
dest: resources_test/denoising/cxg_mouse_pancreas_atlas
- path: /resources_test/task_denoising/cxg_mouse_pancreas_atlas
dest: resources_test/task_denoising/cxg_mouse_pancreas_atlas
4 changes: 2 additions & 2 deletions src/api/comp_method.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ test_resources:
- type: python_script
path: /common/component_tests/check_config.py
- path: /common/library.bib
- path: /resources_test/denoising/cxg_mouse_pancreas_atlas
dest: resources_test/denoising/cxg_mouse_pancreas_atlas
- path: /resources_test/task_denoising/cxg_mouse_pancreas_atlas
dest: resources_test/task_denoising/cxg_mouse_pancreas_atlas
4 changes: 2 additions & 2 deletions src/api/comp_metric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ test_resources:
- type: python_script
path: /common/component_tests/run_and_check_output.py
- path: /common/library.bib
- path: /resources_test/denoising/cxg_mouse_pancreas_atlas
dest: resources_test/denoising/cxg_mouse_pancreas_atlas
- path: /resources_test/task_denoising/cxg_mouse_pancreas_atlas
dest: resources_test/task_denoising/cxg_mouse_pancreas_atlas
2 changes: 1 addition & 1 deletion src/api/file_prediction.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: file
example: "resources_test/denoising/cxg_mouse_pancreas_atlas/denoised.h5ad"
example: "resources_test/task_denoising/cxg_mouse_pancreas_atlas/denoised.h5ad"
label: "Denoised data"
summary: A denoised dataset as output by a method.
info:
Expand Down
2 changes: 1 addition & 1 deletion src/api/file_score.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: file
example: resources_test/denoising/cxg_mouse_pancreas_atlas/score.h5ad
example: resources_test/task_denoising/cxg_mouse_pancreas_atlas/score.h5ad
label: Score
summary: "File indicating the score of a metric."
info:
Expand Down
2 changes: 1 addition & 1 deletion src/api/file_test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: file
example: "resources_test/denoising/cxg_mouse_pancreas_atlas/test.h5ad"
example: "resources_test/task_denoising/cxg_mouse_pancreas_atlas/test.h5ad"
label: "Test data"
summary: The subset of molecules used for the test dataset
info:
Expand Down
2 changes: 1 addition & 1 deletion src/api/file_train.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: file
example: "resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad"
example: "resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad"
label: "Training data"
summary: The subset of molecules used for the training dataset
info:
Expand Down
4 changes: 2 additions & 2 deletions src/control_methods/perfect_denoising/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## VIASH START
par = {
'input_train': 'resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad',
'input_test': 'resources_test/denoising/cxg_mouse_pancreas_atlas/test.h5ad',
'input_train': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad',
'input_test': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/test.h5ad',
'output': 'output_PD.h5ad',
}
meta = {
Expand Down
2 changes: 1 addition & 1 deletion src/methods/alra/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ library(ALRA, warn.conflicts = FALSE)

## VIASH START
par <- list(
input_train = "resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad",
input_train = "resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad",
norm = "log",
output = "output.h5ad"
)
Expand Down
2 changes: 1 addition & 1 deletion src/methods/dca/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## VIASH START
par = {
'input_train': 'resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad',
'input_train': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad',
'output': 'output_dca.h5ad',
'epochs': 300,
}
Expand Down
2 changes: 1 addition & 1 deletion src/methods/knn_smoothing/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## VIASH START
par = {
'input_train': 'resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad',
'input_train': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad',
'output': 'output_knn.h5ad',
}
meta = {
Expand Down
2 changes: 1 addition & 1 deletion src/methods/magic/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## VIASH START
par = {
"input_train": "resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad",
"input_train": "resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad",
"output": "output_magic.h5ad",
"solver": "exact",
"norm": "sqrt",
Expand Down
2 changes: 1 addition & 1 deletion src/methods/saver/script.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ library(Matrix, warn.conflicts = FALSE)

## VIASH START
par <- list(
input_train = "resources_test/denoising/cxg_mouse_pancreas_atlas/train.h5ad",
input_train = "resources_test/task_denoising/cxg_mouse_pancreas_atlas/train.h5ad",
norm = "log",
output = "output.h5ad"
)
Expand Down
4 changes: 2 additions & 2 deletions src/metrics/mse/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

## VIASH START
par = {
'input_test': 'resources_test/denoising/cxg_mouse_pancreas_atlas/test.h5ad',
'input_prediction': 'resources_test/denoising/cxg_mouse_pancreas_atlas/denoised.h5ad',
'input_test': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/test.h5ad',
'input_prediction': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/denoised.h5ad',
'output': 'output_mse.h5ad'
}
meta = {
Expand Down
4 changes: 2 additions & 2 deletions src/metrics/poisson/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## VIASH START
par = {
'input_prediction': 'output_magic.h5ad',
'input_test': 'output_test.h5ad',
'input_test': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/test.h5ad',
'input_prediction': 'resources_test/task_denoising/cxg_mouse_pancreas_atlas/denoised.h5ad',
'output': 'output_poisson.h5ad'
}
meta = {
Expand Down

0 comments on commit 1b8f145

Please sign in to comment.