lifecycles.validation.validate_flow

validate_flow(lc: LifeCycle, target: str, direction: str, min_branch_size: int = 1, iterations: int = 1000) dict

Compare the flow with a null model. Each branch of each flow is compared with a null branch of the same size. The null model is generated by randomly sampling elements from the reference partition iterations times. The mean and standard deviation of the null model are used to compute a z-score for each branch, which is then used to compute a p-value.

Parameters:
  • lc – a LifeCycle object

  • target – target set identifier

  • direction – temporal direction

  • min_branch_size – minimum size of a branch to be considered

  • iterations – number of random draws to be used to generate the null model

Returns: