torchcell.datasets.scerevisiae.synth_leth_db.SynthLethalityYeastSynthLethDbDataset
- class SynthLethalityYeastSynthLethDbDataset(root: str = 'data/torchcell/syn_leth_db_yeast', io_workers: int = 0, transform: Callable[[...], Any] | None = None, pre_transform: Callable[[...], Any] | None = None)[source]
Bases:
ExperimentDatasetYeast synthetic lethality gene-pair experiments from SynLethDB.
- organism: ClassVar[Organism] = 'scerevisiae'
each loader declares its own, the build’s organism switch reads it off the class (
dataset_organism), and a loader that forgot it is refused by name instead of inheriting an organism it may not have.- Type:
The host organism every record describes. Annotated here WITHOUT a value
- property experiment_class: type[SyntheticLethalityExperiment]
Return the synthetic-lethality experiment schema class.
- property reference_class: type[SyntheticLethalityExperimentReference]
Return the synthetic-lethality experiment-reference schema class.
- preprocess_raw(df: DataFrame, preprocess: dict[str, Any] | None = None) DataFrame[source]
Return the released rows unchanged; nothing is resolved (#1045).
- static create_experiment(dataset_name: str, row: Series) tuple[SyntheticLethalityExperiment, SyntheticLethalityExperimentReference, Publication][source]
Build the experiment, reference, and publication objects for one row.