corneto.methods.signaling.add_cellnopt_conditions#

corneto.methods.signaling.add_cellnopt_conditions(graph, *, inputs, measurements, inhibitors=None, condition_aspect='condition', input_attr='input', inhibitor_attr='inhibited', measurement_attr='observed')#

Add CellNOpt perturbations and measurements as AnnNet condition layers.

Every condition receives a copy of the graph’s existing vertices. Input, inhibitor, and measurement values are stored as vertex-layer attributes. The returned mapping can be passed to build_cellnopt_from_annnet when a caller wants to name or select layers explicitly.

Parameters:
Return type:

dict[str, tuple[str, …]]