Skip to contents

This function calculates branch probabilities for differentiation trajectories based on a Markov chain constructed from waypoint data and pseudotime ordering.

Usage

differentiationProbabilities(
  wp_data,
  terminal_states = NULL,
  knn = 30L,
  pseudotime,
  waypoints
)

Arguments

wp_data

A multi-scale data matrix or data frame representing the waypoints.

terminal_states

Integer vector. Indices of the terminal states. Default is NULL.

knn

Integer. Number of nearest neighbors for graph construction. Default is 30L.

pseudotime

Numeric vector. Pseudotime ordering of cells.

waypoints

Integer vector. Indices of selected waypoints used to construct the Markov chain.

Value

A numeric matrix or data frame containing branch probabilities for each waypoint.