Skip to content

Commit 0187f10

Browse files
committed
design API for spatial TI
1 parent 98148ac commit 0187f10

6 files changed

Lines changed: 15 additions & 72 deletions

File tree

src/api/comp_control_method.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
type: control_method
44
type_info:
55
label: Control Method
6-
summary: Quality control methods for verifying the pipeline.
6+
summary: Quality control methods for verifying the pipeline of the spatial TI task.
77
description: |
88
This folder contains control components for the task.
99
These components have the same interface as the regular methods
@@ -12,12 +12,8 @@ info:
1212
the task, and also as a quality control for the metrics defined
1313
in the task.
1414
arguments:
15-
- name: --input_train
16-
__merge__: file_train.yaml
17-
required: true
18-
direction: input
19-
- name: --input_test
20-
__merge__: file_test.yaml
15+
- name: --dataset
16+
__merge__: file_dataset.yaml
2117
required: true
2218
direction: input
2319
- name: "--input_solution"

src/api/comp_data_processor.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@ info:
33
type: data_processor
44
type_info:
55
label: Data processor
6-
summary: A data processor.
7-
description: |
6+
summary: A data processor for the spatial TI task.
7+
description: | # better description TODO
88
A component for processing a Common Dataset into a task-specific dataset.
99
arguments:
1010
- name: "--input"
1111
__merge__: file_common_dataset.yaml
1212
direction: input
1313
required: true
14-
- name: "--output_train"
15-
__merge__: file_train.yaml
16-
direction: output
17-
required: true
18-
- name: "--output_test"
19-
__merge__: file_test.yaml
14+
- name: "--output"
15+
__merge__: file_dataset.yaml
2016
direction: output
2117
required: true
2218
- name: "--output_solution"

src/api/comp_method.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ info:
55
label: Method
66
summary: A method.
77
description: |
8-
A method to predict the task effects.
8+
A method for the spatial TI task.
99
arguments:
10-
- name: --input_train
11-
__merge__: file_train.yaml
10+
- name: --input
11+
__merge__: file_dataset.yaml
1212
required: true
1313
direction: input
14-
- name: "--input_test"
15-
__merge__: file_test.yaml
16-
direction: input
17-
required: true
1814
- name: --output
1915
__merge__: file_prediction.yaml
2016
required: true

src/api/comp_metric.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ info:
33
type: metric
44
type_info:
55
label: Metric
6-
summary: A task template metric.
6+
summary: A metric for spatial TI task.
77
description: |
8-
A metric for evaluating method predictions.
8+
A metric for evaluating spatial TI method predictions.
99
arguments:
1010
- name: "--input_solution"
1111
__merge__: file_solution.yaml
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#TODO: Change to the required and/or optional fields of the anndata
22
type: file
3-
example: "resources_test/task_template/cxg_mouse_pancreas_atlas/train.h5ad"
4-
label: "Training data"
5-
summary: "The training data in h5ad format"
3+
example: "resources_test/task_template/cxg_mouse_pancreas_atlas/train.h5ad" # maybe adjust this after syncing resources
4+
label: "Input data"
5+
summary: "The input data for the spatial TI task"
66
info:
77
format:
88
type: h5ad

src/api/file_test.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)