-
Notifications
You must be signed in to change notification settings - Fork 5
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
full trajectory #16
Comments
I looked into the source code and it doesn't seem to be supported, there's this loop that goes through many reactions without recording the intermediate configurations: Lines 238 to 264 in a34e193
So this is a feature request to support getting this full trajectory information out of the simulation. |
Thank you for your message! That's exactly the right place, I'll be happy to add this to the next release. |
@dave-doty I added the feature that you requested, that you can activate by passing |
Thanks! Seems to work great. One question: is the volume parameter supported directly, or should this be handled by adjusting rate constants (e.g., to implement volume |
BTW I think returning only the actual reaction times (not |
Can I also say how awesome it is that you implemented this in one day? We found your package after trying to get Gillespy2 to do the same thing, with the discussion there suggesting that the problem is uncomputable: StochSS/GillesPy2#427 |
Volume is not currently supported, but that could be the next feature, if there is interest for it! If you want to open a new issue for this, it will remind me to work on it at some point. Thank you for your feedback on the API! I am glad that it works for you.
Thank you 😊 Most of the functionality was already there, I just had to make it return all the events generated. They are right that this might be slower for simulations with a huge number of steps happening (mainly because of the need to allocate a large amount of memory to store all this data), and computationally it's anyway always going to be a bit faster to go through steps in a loop without worrying to return all the results. Finally, something that I am not quite satisfied about currently is that even with a fixed seed, the returned trajectory will not be the same if you choose different |
It's also the case that if you leave It would be very helpful for reproducing bugs to be able to increase |
Yes, that makes a lot of sense. Someone else mentioned the same thing recently (#26), so it's definitely the next thing that I am going to do in rebop. |
I'm sorry if this isn't the correct place to ask this...
Is there a way to get the full "trajectory", i.e., the entire sequence of reactions that Gillespie samples, together with the inter-reaction times (sampled exponential random variables), rather than sampling from fixed time points, in which several reactions (or none) might have occurred between two consecutive time points?
In particular, I'm hoping to use the Python interface for this, so if that is possible from the Python API, that would be great.
The text was updated successfully, but these errors were encountered: