File format: dataset.h5ad
NA
Example file: resources_test/common/pancreas/dataset.h5ad
To ensure interoperability between components, OpenProblems uses AnnData as the standard data format for both input and output files of components, and strict requirements are imposed on the format of these files.
X
, e.g. gene expression values), annotations of observations (obs
, e.g. cell metadata), annotations of variables (var
, e.g. gene metadata), and unstructured annotations (uns
). This organization makes it easy to work with complex datasets while maintaining data integrity and ensuring a standardized structure across different components.
All OpenProblems tasks contain specifications for exact format of all H5AD inputs and outputs for all components in the workflow. These specifications contain information on the required and optional fields in the AnnData objects, as well as descriptions of those fields. These files are used to validate the input and output files of components, and to generate the documentation for the API of each component.
You should be able to find these specifications in the src/api/file_*.yaml
of each task. Here’s an example of such a specification: src/datasets/api/file_raw.yaml
.
For more information on how these specifications are formatted, see “Design the API”.
OpenProblems offers a collection of common datasets that can be used to test components and run the benchmarking tasks. These datasets are generated by dataset loaders and processed by a common processing pipeline stored in src/datasets
.
graph LR normalization:::group dataset_processors:::group raw_dataset["Raw dataset"]:::anndata common_dataset[Common<br/>dataset]:::anndata test_dataset[Test<br/>dataset]:::anndata dataset_loader[/Dataset<br/>loader/]:::component subgraph normalization [Normalization methods] log_cp10k[/"Log CP10k"/]:::component l1_sqrt[/"L1 sqrt"/]:::component log_scran_pooling[/"Log scran<br/>pooling"/]:::component sqrt_cp10k[/Sqrt CP10k/]:::component end subgraph dataset_processors[Dataset processors] pca[/PCA/]:::component hvg[/HVG/]:::component knn[/KNN/]:::component end dataset_loader --> raw_dataset --> log_cp10k & l1_sqrt & log_scran_pooling & sqrt_cp10k --> pca --> hvg --> knn --> common_dataset subset[/Subset/]:::component common_dataset --> subset --> test_dataset
The format of common datasets is based on the CELLxGENE schema along with additional metadata that is specific to OpenProblems (in the .uns
slot) and some additional output generated by our dataset preprocessors (in the .layers
, .obsm
, obsp
and .varm
slots).
Here is what a typical common dataset looks like when printed to the console:
NA
Example file: resources_test/common/pancreas/dataset.h5ad
Some slots might not be available depending on the origin of the dataset. Please visit the reference documentation on the common dataset file format used by OpenProblems for more information on each of the different slots.
In OpenProblems, the X slot in the AnnData objects is typically not defined (None
in Python, NULL
in R). Instead, the raw counts and normalised expression data are defined as layers.
Our datasets are stored in s3://openproblems-data/resources/datasets
. Please visit the datasets page for more information on each of the available datasets.