RuleWorld / nfsim

A general-purpose, stochastic, biochemical reaction simulator for large reaction networks
http://michaelsneddon.net/nfsim/
MIT License
14 stars 9 forks source link

Python bindings #29

Open dilawar opened 3 years ago

dilawar commented 3 years ago

https://github.com/dilawar/nfsim/tree/python has primitive python bindings. One can build a python module that has high-level interface to the simulator.

[dilawars@chutki build (python)]$ python3 -c "import nfsim; print(dir(nfsim))"
['System', '__author__', '__builtins__', '__cached__', '__doc__', '__email__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_nfsim', 'initSystemFromFlags', 'printHelp', 'printLogo', 'runAgentCell', 'runFromArgs', 'runRNFscript']

One can use the python module to run the model directly.

$ python -m nfsim -xml /path/to/xml

If community is interested, we can take it forward.