regvelo.tools.perturbation_effect¶
- regvelo.tools.perturbation_effect(adata_perturb, adata, terminal_state)[source]¶
Compute change in fate probabilities towards terminal states after perturbation. Negative values correspond to a decrease in probabilities, while positive values indicate an increase.
- Parameters:
- Return type:
- Returns:
: Annotated data object with the following fields added:
adata.obs[f"perturbation effect on {state}"]: Change in fate probabilities towards terminal statestateafter perturbation, wherestateis one of the terminal states specified interminal_state.