Dataset classes: .data#

The ggml_ot.data module provides classes and functions for creating, handling, and processing datasets for ggml-ot. These classes can be created from both AnnData objects and synthetic data and are compatible with PyTorch. The module also provides methods to split datasets, train and test models and download datasets.

TripletDataset#

data.AnnData_TripletDataset

Dataset to train GGML based on AnnData.

data.TripletDataset

Dataset to train GGML based on array data.

CELLxGENE interface#

data.load_cellxgene

Download and cache an AnnData object from CELLxGENE.

Included example datasets#

Curated CELLxGENE cohort shortcuts that download the data and return a ready-to-train AnnData_TripletDataset. See References for the source publication of each cohort.

data.breastcancer

Load the curated CELLxGENE breast-cancer cohort.

data.covid

Load the curated CELLxGENE COVID-19 cohort.

data.myocardial_infarction

Load the curated CELLxGENE myocardial-infarction cohort.

data.kidney_injury

Load the curated CELLxGENE kidney-injury cohort.

Generate synthetic data#

data.from_synth

Generates distributions, labels and weights from synthetic data.

data.from_synth_gmm

Create a GGML dataset from the synthetic GMM generator.