moscot.base.problems.BirthDeathProblem.set_xy¶
- BirthDeathProblem.set_xy(data, tag)¶
Set a cost/kernel matrix for the linear term.
- Parameters:
data (
DataFrame) – Cost or kernel matrix. Its index must be equal toadata_src.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:
xy- the linear term.stage- set to'prepared'.