Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update file description #15

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@

* Added integrated test resource (PR #5).

* Updated file description in yaml file (PR #15).

## BUGFIXES

75 changes: 45 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,23 @@ Arguments:
| 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_unintegrated_censored` | `file` | (*Output*) An unintegrated dataset with certain columns (cells metadata), such as the donor information, hidden. These columns are intentionally hidden to prevent bias. The batch correction algorithm should not have to rely on these information to properly integrate different batches. This dataset is used as the input for the batch correction algorithm. The cells therein are identical to those in the unintegrated dataset. |
| `--output_unintegrated` | `file` | (*Output*) The complete unintegrated dataset, including all cells’ metadata (columns) from the unintegrated_censored dataset. The cells in this dataset are the same to those in the unintegrated_censored dataset. |
| `--output_validation` | `file` | (*Output*) Hold-out dataset for validation. |

</div>

## File format: Unintegrated Censored

Unintegrated dataset
An unintegrated dataset with certain columns (cells metadata), such as
the donor information, hidden. These columns are intentionally hidden to
prevent bias. The batch correction algorithm should not have to rely on
these information to properly integrate different batches. This dataset
is used as the input for the batch correction algorithm. The cells
therein are identical to those in the unintegrated dataset.

Example file:
`resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/train.h5ad`
`resources_test/task_cyto_batch_integration/starter_file/unintegrated_censored.h5ad`

Format:

Expand Down Expand Up @@ -170,10 +175,12 @@ Data structure:

## File format: Unintegrated

Unintegrated dataset
The complete unintegrated dataset, including all cells’ metadata
(columns) from the unintegrated_censored dataset. The cells in this
dataset are the same to those in the unintegrated_censored dataset.

Example file:
`resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/train.h5ad`
`resources_test/task_cyto_batch_integration/starter_file/unintegrated.h5ad`

Format:

Expand Down Expand Up @@ -219,14 +226,22 @@ Data structure:
Hold-out dataset for validation.

Example file:
`resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/solution.h5ad`
`resources_test/task_cyto_batch_integration/starter_file/validation.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).
Dataset containing cells from samples that were held out for evaluating
batch integration output. The cells that are in this dataset belong to
samples which are not included in the unintegrated or
unintegrated_censored datasets. For example, if samples from donor A are
present in batch 1 and 2, the sample from batch 1 may be used as input
for the batch correction algorithm (and thus present in unintegrated and
unintegrated_censored datasets). The sample from batch 2, may not be
included as an input for the batch correction algorithm, but is needed
to validate whether whether the algorithm managed to correct the batch
effect in batch 2 towards batch 1. This sample will then be included in
this dataset (but not in unintegrated and unintegrated_censored
datasets).

Format:

Expand Down Expand Up @@ -269,16 +284,16 @@ Data structure:

## Component type: Method

A method.
A method for integrating batch effects in cytometry data.

Arguments:

<div class="small">

| Name | Type | Description |
|:-----------|:-------|:-------------------------------|
| `--input` | `file` | Unintegrated dataset. |
| `--output` | `file` | (*Output*) Integrated dataset. |
| Name | Type | Description |
|:---|:---|:---|
| `--input` | `file` | An unintegrated dataset with certain columns (cells metadata), such as the donor information, hidden. These columns are intentionally hidden to prevent bias. The batch correction algorithm should not have to rely on these information to properly integrate different batches. This dataset is used as the input for the batch correction algorithm. The cells therein are identical to those in the unintegrated dataset. |
| `--output` | `file` | (*Output*) Integrated dataset which batch effect was corrected by an algorithm. |

</div>

Expand All @@ -290,11 +305,11 @@ Arguments:

<div class="small">

| Name | Type | Description |
|:-----------------------|:-------|:---------------------------------|
| `--input_unintegrated` | `file` | Unintegrated dataset. |
| `--input_validation` | `file` | Hold-out dataset for validation. |
| `--output` | `file` | (*Output*) Integrated dataset. |
| Name | Type | Description |
|:---|:---|:---|
| `--input_unintegrated` | `file` | The complete unintegrated dataset, including all cells’ metadata (columns) from the unintegrated_censored dataset. The cells in this dataset are the same to those in the unintegrated_censored dataset. |
| `--input_validation` | `file` | Hold-out dataset for validation. |
| `--output` | `file` | (*Output*) Integrated dataset which batch effect was corrected by an algorithm. |

</div>

Expand All @@ -309,18 +324,18 @@ Arguments:
| Name | Type | Description |
|:---|:---|:---|
| `--input_validation` | `file` | Hold-out dataset for validation. |
| `--input_unintegrated` | `file` | Unintegrated dataset. |
| `--input_integrated` | `file` | Integrated dataset. |
| `--input_unintegrated` | `file` | The complete unintegrated dataset, including all cells’ metadata (columns) from the unintegrated_censored dataset. The cells in this dataset are the same to those in the unintegrated_censored dataset. |
| `--input_integrated` | `file` | Integrated dataset which batch effect was corrected by an algorithm. |
| `--output` | `file` | (*Output*) File indicating the score of a metric. |

</div>

## File format: Integrated

Integrated dataset
Integrated dataset which batch effect was corrected by an algorithm

Example file:
`resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/prediction.h5ad`
`resources_test/task_cyto_batch_integration/starter_file/integrated.h5ad`

Format:

Expand Down Expand Up @@ -350,14 +365,14 @@ Data structure:
File indicating the score of a metric.

Example file:
`resources_test/task_cyto_batch_integration/cxg_mouse_pancreas_atlas/score.h5ad`
`resources_test/task_cyto_batch_integration/starter_file/score.h5ad`

Format:

<div class="small">

AnnData object
uns: 'dataset_id', 'normalization_id', 'method_id', 'metric_ids', 'metric_values'
uns: 'dataset_id', 'method_id', 'sample_ids', 'metric_ids', 'metric_values'

</div>

Expand All @@ -368,10 +383,10 @@ Data structure:
| Slot | Type | Description |
|:---|:---|:---|
| `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. |
| `uns["method_id"]` | `string` | A unique identifier for the batch correction method. |
| `uns["sample_ids"]` | `string` | The samples assessed by the metric. |
| `uns["metric_ids"]` | `string` | One or more unique metric identifiers. |
| `uns["metric_values"]` | `double` | The metric values obtained for the given prediction. Must be of same length as ‘metric_ids’. |
| `uns["metric_values"]` | `double` | The metric values obtained. Must be of same length as ‘metric_ids’. |

</div>

2 changes: 1 addition & 1 deletion src/api/file_integrated.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type: file
example: "resources_test/task_cyto_batch_integration/starter_file/integrated.h5ad"
label: Integrated
summary: "Integrated dataset"
summary: "Integrated dataset which batch effect was corrected by an algorithm"
info:
format:
type: h5ad
Expand Down
8 changes: 5 additions & 3 deletions src/api/file_unintegrated.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#TODO: Change to the required and/or optional fields of the anndata
type: file
example: "resources_test/task_cyto_batch_integration/starter_file/unintegrated.h5ad"
label: "Unintegrated"
summary: "Unintegrated dataset"

label: Unintegrated
summary: |
The complete unintegrated dataset, including all cells' metadata (columns) from the
unintegrated_censored dataset.
The cells in this dataset are the same to those in the unintegrated_censored dataset.
info:
format:
type: h5ad
Expand Down
10 changes: 8 additions & 2 deletions src/api/file_unintegrated_censored.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#TODO: Change to the required and/or optional fields of the anndata
type: file
example: "resources_test/task_cyto_batch_integration/starter_file/unintegrated_censored.h5ad"
label: "Unintegrated Censored"
summary: "Unintegrated dataset"
label: Unintegrated Censored
summary: |
An unintegrated dataset with certain columns (cells metadata), such as the donor information, hidden.
These columns are intentionally hidden to prevent bias.
The batch correction algorithm should not have to rely on these information
to properly integrate different batches.
This dataset is used as the input for the batch correction algorithm.
The cells therein are identical to those in the unintegrated dataset.
info:
format:
type: h5ad
Expand Down
15 changes: 11 additions & 4 deletions src/api/file_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ example: "resources_test/task_cyto_batch_integration/starter_file/validation.h5a
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).

Dataset containing cells from samples that were held out for evaluating batch integration output.
The cells that are in this dataset belong to samples which are not included in the unintegrated
or unintegrated_censored datasets.
For example, if samples from donor A are present in batch 1 and 2, the sample from batch 1
may be used as input for the batch correction algorithm (and thus present in unintegrated
and unintegrated_censored datasets).
The sample from batch 2, may not be included as an input for the batch correction algorithm,
but is needed to validate whether whether the algorithm managed to correct the batch effect
in batch 2 towards batch 1.
This sample will then be included in this dataset (but not in unintegrated
and unintegrated_censored datasets).
info:
format:
type: h5ad
Expand Down
Loading