Closed zsteve closed 3 years ago
Hey Stephen,
How about the following code. I first run 1 simulation with a bifurcating backbone. The simulation will go down one of two end states, EndC or EndD. I pick many different starting states along this one simulation. For each starting state, I run 100 dyngen simulations with the same underlying model but just a different starting state and no burn-in. By aggregating the metadata of the last state in each simulation, I can make a plot to show the distribution of states for each of the different starting positions (See below).
model_init
was created with just 1 simulation in order to be able to generate a nice plot at the end that shows the further along the simulation that I sample, the more likely the cell will end up in end-state EndD. If you want to do something with this type of analysis, I assume you want to run the initial simulation with num_simulations > 30 and have the starting states be sampled randomly along the original simulation.
I might consider turning the code below into a vignette. Is this okay with you?
Robrecht
Hey Stephen @zsteve,
Does the code proposed above come in the vicinity of what you were looking for?
Robrecht
I'm assuming this issue is solved. If it isn't, feel free to reply to this issue.
Hi Robrecht,
I am interested in estimating fate probabilities for sampled cells. Specifically, for a backbone with e.g. 2 terminal states, each sampled cell should have a probability vector of length 2 containing
Prob(cell fate \in {A, B} | observed cell state)
.For an observed cell state
x
, one way to estimate this would be to simulateN
new cells that start fromx
and see where they end up. Wondering if this can be done within the dyngen framework? The idea would be to use these fate probabilities as a ground truth for benchmarking trajectory inference algorithms.Thanks!
Stephen