Skip to content

Commit e82e835

Browse files
committed
update api files
1 parent 3316692 commit e82e835

7 files changed

Lines changed: 164 additions & 15 deletions

README.md

Lines changed: 65 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,20 @@ signals were preserved.
4646
flowchart TB
4747
file_common_dataset("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-common-dataset'>Common Dataset</a>")
4848
comp_data_processor[/"<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#component-type-data-processor'>Data processor</a>"/]
49-
file_censored("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-censored'>Censored</a>")
49+
file_censored_split1("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-censored--split-1-'>Censored (split 1)</a>")
50+
file_censored_split2("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-censored--split-2-'>Censored (split 2)</a>")
5051
file_unintegrated("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-unintegrated'>Unintegrated</a>")
5152
comp_method[/"<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#component-type-method'>Method</a>"/]
5253
comp_control_method[/"<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#component-type-control-method'>Control Method</a>"/]
5354
comp_metric[/"<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#component-type-metric'>Metric</a>"/]
54-
file_integrated_split1("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-integrated'>Integrated</a>")
55-
file_integrated_split2("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-integrated'>Integrated</a>")
55+
file_integrated_split1("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-integrated--split-1-'>Integrated (split 1)</a>")
56+
file_integrated_split2("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-integrated--split-2-'>Integrated (split 2)</a>")
5657
file_score("<a href='https://github.com/openproblems-bio/task_cyto_batch_integration#file-format-score'>Score</a>")
5758
file_common_dataset---comp_data_processor
58-
comp_data_processor-->file_censored
59-
comp_data_processor-->file_censored
59+
comp_data_processor-->file_censored_split1
60+
comp_data_processor-->file_censored_split2
6061
comp_data_processor-->file_unintegrated
61-
file_censored---comp_method
62+
file_censored_split1---comp_method
6263
file_unintegrated---comp_control_method
6364
file_unintegrated---comp_metric
6465
comp_method-->file_integrated_split1
@@ -138,7 +139,7 @@ Arguments:
138139

139140
</div>
140141

141-
## File format: Censored
142+
## File format: Censored (split 1)
142143

143144
An unintegrated dataset with certain columns (cells metadata), such as
144145
the donor information, hidden. These columns are intentionally hidden to
@@ -193,6 +194,61 @@ Data structure:
193194

194195
</div>
195196

197+
## File format: Censored (split 2)
198+
199+
An unintegrated dataset with certain columns (cells metadata), such as
200+
the donor information, hidden. These columns are intentionally hidden to
201+
prevent bias.
202+
203+
Example file:
204+
`resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/censored_split2.h5ad`
205+
206+
Description:
207+
208+
An unintegrated dataset with certain columns (cells metadata), such as
209+
the donor information, hidden. These columns are intentionally hidden to
210+
prevent bias. The batch correction algorithm should not have to rely on
211+
these information to properly integrate different batches. This dataset
212+
is used as the input for the batch correction algorithm. The cells
213+
therein are identical to those in the unintegrated dataset.
214+
215+
Format:
216+
217+
<div class="small">
218+
219+
AnnData object
220+
obs: 'batch', 'sample', 'is_control'
221+
var: 'numeric_id', 'channel', 'marker', 'marker_type', 'to_correct'
222+
layers: 'preprocessed'
223+
uns: 'dataset_id', 'dataset_name', 'dataset_url', 'dataset_reference', 'dataset_summary', 'dataset_description', 'dataset_organism'
224+
225+
</div>
226+
227+
Data structure:
228+
229+
<div class="small">
230+
231+
| Slot | Type | Description |
232+
|:---|:---|:---|
233+
| `obs["batch"]` | `string` | Batch information. |
234+
| `obs["sample"]` | `string` | Sample ID. |
235+
| `obs["is_control"]` | `integer` | Whether the sample the cell came from can be used as a control for batch effect correction. \* 0: cannot be used as a control. \* \>= 1: can be used as a control. \* For cells with \>= 1: cells with the same value come from the same donor. Different values indicate different donors. |
236+
| `var["numeric_id"]` | `integer` | Numeric ID associated with each marker. |
237+
| `var["channel"]` | `string` | The channel / detector of the instrument. |
238+
| `var["marker"]` | `string` | (*Optional*) The marker name associated with the channel. |
239+
| `var["marker_type"]` | `string` | Whether the marker is a functional or lineage marker. |
240+
| `var["to_correct"]` | `boolean` | Whether the marker will be batch corrected. |
241+
| `layers["preprocessed"]` | `double` | preprocessed data, e.g. already compensated, transformed and debris/doublets removed. |
242+
| `uns["dataset_id"]` | `string` | A unique identifier for the dataset. |
243+
| `uns["dataset_name"]` | `string` | Nicely formatted name. |
244+
| `uns["dataset_url"]` | `string` | (*Optional*) Link to the original source of the dataset. |
245+
| `uns["dataset_reference"]` | `string` | (*Optional*) Bibtex reference of the paper in which the dataset was published. |
246+
| `uns["dataset_summary"]` | `string` | Short description of the dataset. |
247+
| `uns["dataset_description"]` | `string` | Long description of the dataset. |
248+
| `uns["dataset_organism"]` | `string` | (*Optional*) The organism of the sample in the dataset. |
249+
250+
</div>
251+
196252
## File format: Unintegrated
197253

198254
The complete unintegrated dataset.
@@ -297,7 +353,7 @@ Arguments:
297353

298354
</div>
299355

300-
## File format: Integrated
356+
## File format: Integrated (split 1)
301357

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

@@ -327,7 +383,7 @@ Data structure:
327383

328384
</div>
329385

330-
## File format: Integrated
386+
## File format: Integrated (split 2)
331387

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

src/api/comp_data_processor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ arguments:
1212
direction: input
1313
required: true
1414
- name: "--output_censored_split1"
15-
__merge__: file_censored.yaml
15+
__merge__: file_censored_split1.yaml
1616
direction: output
1717
required: true
1818
- name: "--output_censored_split2"
19-
__merge__: file_censored.yaml
19+
__merge__: file_censored_split2.yaml
2020
direction: output
2121
required: true
2222
- name: "--output_unintegrated"

src/api/comp_method.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
A method for integrating batch effects in cytometry data.
99
arguments:
1010
- name: --input
11-
__merge__: file_censored.yaml
11+
__merge__: file_censored_split1.yaml
1212
required: true
1313
direction: input
1414
- name: --output
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#TODO: Change to the required and/or optional fields of the anndata
22
type: file
33
example: "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/censored_split1.h5ad"
4-
label: Censored
4+
label: Censored (split 1)
55
summary: |
66
An unintegrated dataset with certain columns (cells metadata), such as the donor information, hidden.
77
These columns are intentionally hidden to prevent bias.

src/api/file_censored_split2.yaml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#TODO: Change to the required and/or optional fields of the anndata
2+
type: file
3+
example: "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/censored_split2.h5ad"
4+
label: Censored (split 2)
5+
summary: |
6+
An unintegrated dataset with certain columns (cells metadata), such as the donor information, hidden.
7+
These columns are intentionally hidden to prevent bias.
8+
description: |
9+
An unintegrated dataset with certain columns (cells metadata), such as the donor information, hidden.
10+
These columns are intentionally hidden to prevent bias.
11+
The batch correction algorithm should not have to rely on these information
12+
to properly integrate different batches.
13+
This dataset is used as the input for the batch correction algorithm.
14+
The cells therein are identical to those in the unintegrated dataset.
15+
info:
16+
format:
17+
type: h5ad
18+
layers:
19+
- type: double
20+
name: preprocessed
21+
description: preprocessed data, e.g. already compensated, transformed and debris/doublets removed
22+
required: true
23+
obs:
24+
- type: string
25+
name: batch
26+
description: Batch information
27+
required: true
28+
- type: string
29+
name: sample
30+
description: Sample ID
31+
required: true
32+
- type: integer
33+
name: is_control
34+
description: |
35+
Whether the sample the cell came from can be used as a control for batch
36+
effect correction.
37+
38+
* 0: cannot be used as a control.
39+
* >= 1: can be used as a control.
40+
* For cells with >= 1: cells with the same value come from the same donor.
41+
42+
Different values indicate different donors.
43+
required: true
44+
var:
45+
- type: integer
46+
name: numeric_id
47+
description: Numeric ID associated with each marker
48+
required: true
49+
- type: string
50+
name: channel
51+
description: The channel / detector of the instrument
52+
required: true
53+
- type: string
54+
name: marker
55+
description: The marker name associated with the channel
56+
required: false
57+
- type: string
58+
name: marker_type
59+
description: Whether the marker is a functional or lineage marker
60+
required: true
61+
- type: boolean
62+
name: to_correct
63+
description: Whether the marker will be batch corrected
64+
required: true
65+
uns:
66+
- type: string
67+
name: dataset_id
68+
description: "A unique identifier for the dataset"
69+
required: true
70+
- name: dataset_name
71+
type: string
72+
description: Nicely formatted name.
73+
required: true
74+
- type: string
75+
name: dataset_url
76+
description: Link to the original source of the dataset.
77+
required: false
78+
- name: dataset_reference
79+
type: string
80+
description: Bibtex reference of the paper in which the dataset was published.
81+
required: false
82+
- name: dataset_summary
83+
type: string
84+
description: Short description of the dataset.
85+
required: true
86+
- name: dataset_description
87+
type: string
88+
description: Long description of the dataset.
89+
required: true
90+
- name: dataset_organism
91+
type: string
92+
description: The organism of the sample in the dataset.
93+
required: false

src/api/file_integrated_split1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type: file
22
example: "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/integrated_split1.h5ad"
3-
label: Integrated
3+
label: Integrated (split 1)
44
summary: "Integrated dataset which batch effect was corrected by an algorithm"
55
info:
66
format:

src/api/file_integrated_split2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type: file
22
example: "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/integrated_split2.h5ad"
3-
label: Integrated
3+
label: Integrated (split 2)
44
summary: "Integrated dataset which batch effect was corrected by an algorithm"
55
info:
66
format:

0 commit comments

Comments
 (0)