torchcell.data
The data layer between the knowledge graph and model training. ExperimentDataset is the abstract LMDB-backed base for experiment datasets, Neo4jCellDataset queries Neo4j, caches the raw records in LMDB and turns each experiment into a perturbed cell graph, and the graph processors (for example SubgraphRepresentation and LazySubgraphRepresentation) define how a genotype perturbation is applied to that graph. Deduplicators and aggregators merge repeated measurements of the same genotype, and the reference-index helpers group experiments by their shared reference state.
Classes
A reference paired with the sorted record indices of the experiments using it. |
|
A collection of reference-indices partitioning a dataset's experiments. |
|
Base class that deduplicates experiment records into an output LMDB store. |
|
Deduplicate experiments by averaging duplicates of the same genotype. |
|
Abstract base that groups experiment pairs into an aggregated LMDB store. |
|
Aggregator keyed on the DELETION gene set only; other axes are background. |
|
Aggregator keyed by a hash of the experiment's full perturbation set. |
|
Abstract PyG dataset storing experiment items in an LMDB store. |
|
Dataset for loading cell data from Neo4j with file locking for DDP support. |
|
A file's bytes do not match the sha256 pin its loader records. |
|
A raw-mirror manifest records a sha256 other than its loader's module pin. |
|
Processor that removes perturbed genes and returns the induced subgraph. |
|
Graph processor that returns full graph with masks instead of filtered subgraphs. |
|
Graph processor using precomputed node-to-edge incidence structures. |
|
Store only perturbation-specific information without duplicating the graph. |
|
Graph processor for DCell model that applies perturbations directly to the gene ontology graph. |
|
Preserve the original graph, storing perturbation and phenotype data alongside. |
Functions
Compute the sha256 hash of a string. |
|
Build the reference index in ONE streaming grouping pass (memory-bounded). |
|
Build the reference index (streaming member-index grouping). |
|
Decorate |
|
Raise |
|
Hex sha256 of a file's bytes (symlinks are followed), read in chunks. |
|
Raise |
|
Verify every pinned file in |
|
Copy |
|
Write |
|
Symlink |