torchcell.paper.tables.default_phenotype_bytes

default_phenotype_bytes(record: dict[str, Any]) → bytes[source]

Extract the serialized phenotype from a torchcell LMDB record.

Records are {"experiment": {..., "phenotype": {...}}, ...}. Sorting keys makes the signal deterministic across builds.