moscot.base.problems.BirthDeathProblem.set_x¶
- BirthDeathProblem.set_x(data, tag)¶
Set a cost/kernel matrix for the source quadratic term.
- Parameters:
data (
DataFrame
) – Cost or kernel matrix. Its index must be equal toadata_src.obs_names
and its columns toadata_src.obs_names
.tag (
Literal
['cost_matrix'
,'kernel'
]) – Whetherdata
is a cost or a kernel matrix.
- Return type:
- Returns:
: Nothing, just updates the following fields:
x
- the source quadratic term.stage
- set to'prepared'
.