torchcell.datamodels.media.dropout
- dropout(base: Media, *compound_names: str, name: str, partial: tuple[str, ...] = (), provenance: list[SourcedValue] | None = None, partial_note: str | None = None) Media[source]
basewith the named compounds moved fromcomponentsintodropouts.A nutrient dropout is a typed EDIT of a defined medium, not a perturbation of an unrelated one: encoding it this way is what makes a tryptophan dropout join to
SC, toSC_URAand to the SGA selection media at the same base.compound_namesare looked up throughresolved_compoundso a source’s spelling (“tryptophan”, “PABA”) selects the base’s canonical component (“L-tryptophan”, “4-aminobenzoic acid”). A name that matches nothing inbaseraises: a silent no-op dropout would claim an edit that never happened.partialnames compounds the source REDUCED rather than removed. They stay incomponentswith the concentration cleared, because the reduced level is a number the source does not give; dropping them instead would overstate the edit.partial_notereplaces the default note on those components when the source does say something about the level (e.g. a released percentage whose basis it never defines).