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

Looking to use MaBoSS embeded in another model #34

Open
JulianoGianlupi opened this issue Sep 20, 2024 · 1 comment
Open

Looking to use MaBoSS embeded in another model #34

JulianoGianlupi opened this issue Sep 20, 2024 · 1 comment

Comments

@JulianoGianlupi
Copy link

Hello all,

I want to use MaBoSS inside an ABM, I know this is already possible with CompuCell and PhysiCell. However I am using another platform (Java based). I think I should be able to call pyMaBoSS from inside it, so that should be ok. My question is, how would I tell MaBoSS to do a single time-step?

Thanks!

@vincent-noel
Copy link
Collaborator

Hi @JulianoGianlupi,

You can always setup a simulation with sample_count=1 (unique trajectory).
Regarding time, it depends if you want discrete time (classic boolean, just one transition) or continuous time. If you want discrete time, you need to set discrete_time=1 in the cfg parameters, and put max_time = time_tick to have one single transition. If you want continuous time, then keep discrete time=0, and set your time_tick = max_time = how long you want to simulate. It will only save one step, so that'll be simpler.

However, you also have to keep in mind that this is not the most efficient way. For PhysiCell, we ended up developing a specific solver to do just one trajectory, and return the state after a specific simulation time, and that can be run in parallel. This solver is not available via python for now.

Let me know if the first solution already works for you !

Vincent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants