Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
Co-authored-by: Givanna Putri <[email protected]>
Co-authored-by: Sofie Van Gassen <[email protected]>
Co-authored-by: Katrien Quintelier <[email protected]>
Co-authored-by: Luca Leomazzi <[email protected]>
  • Loading branch information
5 people committed Nov 5, 2024
1 parent 4e651ec commit 913da4f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 33 deletions.
47 changes: 27 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ Arguments:

<div class="small">

| Name | Type | Description |
|:---------------------------------|:-------|:---------------------------------|
| `--input` | `file` | A subset of the common dataset. |
| Name | Type | Description |
|:---|:---|:---|
| `--input` | `file` | A subset of the common dataset. |
| `--output_unintegrated_censored` | `file` | (*Output*) Unintegrated dataset. |
| `--output_unintegrated` | `file` | (*Output*) Unintegrated dataset. |
| `--output_validation` | `file` | (*Output*) Validation dataset. |
| `--output_unintegrated` | `file` | (*Output*) Unintegrated dataset. |
| `--output_validation` | `file` | (*Output*) Hold-out dataset for validation. |

</div>

Expand Down Expand Up @@ -216,11 +216,18 @@ Data structure:

## File format: Validation

Validation dataset
Hold-out dataset for validation.

Example file:
`resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/solution.h5ad`

Description:

Samples that were held out and will later be used only to assess whether
the batch integration was successful. E.g. if a donor from batch 2 was
corrected towards batch 1, but also actually measured in batch 1
(without being used as input to the algorithm).

Format:

<div class="small">
Expand Down Expand Up @@ -283,11 +290,11 @@ Arguments:

<div class="small">

| Name | Type | Description |
|:-----------------------|:-------|:-------------------------------|
| `--input_unintegrated` | `file` | Unintegrated dataset. |
| `--input_validation` | `file` | Validation dataset. |
| `--output` | `file` | (*Output*) Integrated dataset. |
| Name | Type | Description |
|:-----------------------|:-------|:---------------------------------|
| `--input_unintegrated` | `file` | Unintegrated dataset. |
| `--input_validation` | `file` | Hold-out dataset for validation. |
| `--output` | `file` | (*Output*) Integrated dataset. |

</div>

Expand All @@ -301,7 +308,7 @@ Arguments:

| Name | Type | Description |
|:---|:---|:---|
| `--input_validation` | `file` | Validation dataset. |
| `--input_validation` | `file` | Hold-out dataset for validation. |
| `--input_unintegrated` | `file` | Unintegrated dataset. |
| `--input_integrated` | `file` | Integrated dataset. |
| `--output` | `file` | (*Output*) File indicating the score of a metric. |
Expand All @@ -320,21 +327,21 @@ Format:
<div class="small">

AnnData object
obs: 'label_pred'
uns: 'dataset_id', 'normalization_id', 'method_id'
layers: 'integrated'
uns: 'dataset_id', 'method_id', 'parameters'

</div>

Data structure:

<div class="small">

| Slot | Type | Description |
|:--------------------------|:---------|:-------------------------------------|
| `obs["label_pred"]` | `string` | Predicted labels for the test cells. |
| `uns["dataset_id"]` | `string` | A unique identifier for the dataset. |
| `uns["normalization_id"]` | `string` | Which normalization was used. |
| `uns["method_id"]` | `string` | A unique identifier for the method. |
| Slot | Type | Description |
|:---|:---|:---|
| `layers["integrated"]` | `double` | The integrated data as returned by a batch correction method. |
| `uns["dataset_id"]` | `string` | A unique identifier for the dataset. |
| `uns["method_id"]` | `string` | A unique identifier for the method. |
| `uns["parameters"]` | `object` | (*Optional*) The parameters used for the integration. |

</div>

Expand Down
19 changes: 9 additions & 10 deletions src/api/file_integrated.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
#TODO: Change to the required and/or optional fields of the anndata
type: file
example: "resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/prediction.h5ad"
label: Integrated
summary: "Integrated dataset"
info:
format:
type: h5ad
obs:
- type: string
name: label_pred
description: Predicted labels for the test cells.
layers:
- type: double
name: integrated
description: The integrated data as returned by a batch correction method
required: true
uns:
- type: string
name: dataset_id
description: "A unique identifier for the dataset"
required: true
- type: string
name: normalization_id
description: "Which normalization was used"
required: true
- type: string
name: method_id
description: "A unique identifier for the method"
required: true
required: true
- type: object
name: parameters
description: "The parameters used for the integration"
required: false
10 changes: 7 additions & 3 deletions src/api/file_validation.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#TODO: Change to the required and/or optional fields of the anndata
type: file
example: "resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/solution.h5ad"
label: "Validation"
summary: "Validation dataset"
label: Validation
summary: Hold-out dataset for validation.
description: |
Samples that were held out and will later be used only to assess whether
the batch integration was successful. E.g. if a donor from batch 2 was corrected towards batch 1,
but also actually measured in batch 1 (without being used as input to the algorithm).
info:
format:
type: h5ad
Expand Down

0 comments on commit 913da4f

Please sign in to comment.