Difference between revisions of "Bioumlsim"
From BioUML platform
Ilya Kiselev (Talk | contribs) (Created page with "bioumlsim is a Python library providing API for BioUML simulation capabilities. Python 3.6. is required! Source code is avaliable at [https://github.com/Biosoft-ru/bioumlsim|...") |
Ilya Kiselev (Talk | contribs) |
||
Line 12: | Line 12: | ||
import bioumlsim | import bioumlsim | ||
− | bsim = bioumlsim. | + | bsim = bioumlsim.Bioumlsim() #Here JVM is starting |
model = bsim.loadTest() #To load your own model replace it with "model = bsim.load(PATH_TO_SBML)" | model = bsim.loadTest() #To load your own model replace it with "model = bsim.load(PATH_TO_SBML)" | ||
result = model.simulate(100,10) #first argument: completion time, second argument: number of time points | result = model.simulate(100,10) #first argument: completion time, second argument: number of time points | ||
bsim.plot(result) #plot simulation result | bsim.plot(result) #plot simulation result |
Latest revision as of 19:41, 2 October 2023
bioumlsim is a Python library providing API for BioUML simulation capabilities. Python 3.6. is required!
Source code is avaliable at github and PYPI.
It can be installed via pip:
pip insall bioumlsim
All neccessary Java libraries are already embedded into library and are downloaded along with python code.
Demo python code:
import bioumlsim bsim = bioumlsim.Bioumlsim() #Here JVM is starting model = bsim.loadTest() #To load your own model replace it with "model = bsim.load(PATH_TO_SBML)" result = model.simulate(100,10) #first argument: completion time, second argument: number of time points bsim.plot(result) #plot simulation result