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.
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
.
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.