Simulates cell state transitions using Markov chain based on
transition probability matrix.
Usage
markov_simulate(
trans_prob,
start_cells,
n_steps = 100,
n_duplicates = 10,
seed = 123
)
Arguments
- trans_prob
Transition probability matrix
- start_cells
Starting cell indices (1-indexed)
- n_steps
Number of simulation steps
- n_duplicates
Number of trajectories per start cell
- seed
Random seed
Value
Matrix of trajectories (n_trajectories x n_steps+1)