torchcell.datasets.scerevisiae.kuzmin2020.TmiKuzmin2020Dataset
- class TmiKuzmin2020Dataset(root: str = 'data/torchcell/tmi_kuzmin2020', subset_n: int | None = None, io_workers: int = 0, transform: Callable[[...], Any] | None = None, pre_transform: Callable[[...], Any] | None = None, **kwargs: Any)[source]
Bases:
ExperimentDatasetTrigenic interaction experiments from Kuzmin et al. 2020.
- 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[Experiment]
Return the experiment schema class for this dataset.
- property reference_class: type[ExperimentReference]
Return the experiment-reference schema class for this dataset.
- preprocess_raw(df_s1: DataFrame, df_s3: DataFrame) DataFrame[source]
Merge the supplementary tables and assemble interaction rows.
- static create_experiment(dataset_name: str, row: Series) tuple[GeneInteractionExperiment, GeneInteractionExperimentReference, Publication][source]
Build the experiment, reference, and publication objects from one row.