torchcell.data.MeanExperimentDeduplicator
- class MeanExperimentDeduplicator(root: str)[source]
Bases:
DeduplicatorDeduplicate experiments by averaging duplicates of the same genotype.
- duplicate_check(data: list[dict[str, Any]]) dict[str, list[int]][source]
Group data indices by hash of experiment type and perturbed genes.
- duplicate_key(record: dict[str, Any]) str[source]
Return the duplicate-group hash for one raw record dict.
Identical key construction to
duplicate_check()– experiment type plus the sorted perturbed gene names – read straight off the stored JSON so the streamingprocessnever builds pydantic objects to group.