Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would be useful to have a simple interface for getting a single-time snapshot at a target population size #94

Open
sclamons opened this issue Mar 18, 2021 · 3 comments
Labels
enhancement New feature or request Lineages Issues pertaining to bioscrape lineages

Comments

@sclamons
Copy link
Collaborator

Use case: I have a control circuit. I've already verified (or don't care about) how it behaves dynamically. I want to see what kind of stationary distribution it leads to, ideally with low overhead, so I only care about state once the lineage has reached some large number of cells.

What I have to do currently:

  • Guess how long it will take to get to the right number of cells.
  • Simulate out to that time.
  • If it doesn't finish in some reasonable amount of time, or if it eats up all of my free RAM, manually kill Python and turn down the target time until it finishes.
  • Check through every schnitz to see if it runs to the end of the simulation. If there are "enough" of those schnitzes, continue with analysis. If not, ramp up the target time until I get enough cells. This has to be done slowly, since population will grow (stochastically!) exponentially with time.
  • Once I have enough cells, pull out all of the final states from each schnitz that's still alive at the end of the simulation into a new data structure and analyze from there.

*What I would like to be able to do:

  • Set a target population size.
  • Simulate out a lineage until the population reaches the target size, then return a dataframe or numpy array containing only final cell states.

Alternatively, could set an approximate amount of real time to simulate for, something like "run this for fifteen minutes and give me what you have".

Would this be practical? Could it run significantly faster/with less memory than a standard SimulateCellLineage?

@sclamons sclamons added enhancement New feature or request Lineages Issues pertaining to bioscrape lineages labels Mar 18, 2021
@WilliamIX
Copy link
Collaborator

This is similar to simulating with a population controlled chemostat (something I very much want to implement) - not particularly hard, but would require a whole new lineage simulation loop.

@sclamons
Copy link
Collaborator Author

sclamons commented Apr 3, 2021 via email

@WilliamIX
Copy link
Collaborator

I can walk you through how to implement this if you want to get inside a simulation loop - or I could just do it. It is pretty easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Lineages Issues pertaining to bioscrape lineages
Projects
None yet
Development

No branches or pull requests

2 participants