moscot.base.problems.OTProblem.set_y¶
- OTProblem.set_y(data, tag)[source]¶
Set a cost/kernel matrix for the target quadratic term.
- Parameters:
data (
DataFrame) – Cost or kernel matrix. Its index must be equal toadata_tgt.obs_namesand its columns toadata_tgt.obs_names.tag (
Literal['cost_matrix','kernel']) – Whetherdatais a cost or a kernel matrix.
- Return type:
- Returns:
: Nothing, just updates the following fields:
y- the target quadratic term.stage- set to'prepared'.