Python code relating to the textbook, Stochastic modelling for systems biology, third edition
Project description
smfsb for python
Python library for the book, Stochastic modelling for systems biology, third edition
Please note that this package is still in the early stages of development. There will be bugs, there is very limited documentation, and the coverage of the book is still quite incomplete.
Install
Latest stable version:
pip install smfsb
Basic usage
import smfsb
print(smfsb.lv)
stepLv = smfsb.lv.stepGillespie()
out = smfsb.simTs(smfsb.lv.m, 0, 100, 0.1, stepLv)
import matplotlib.pyplot as plt
fig, axis = plt.subplots()
for i in range(2):
axis.plot(range(out.shape[0]), out[:,i])
axis.legend(smfsb.lv.n)
fig.savefig("lv.pdf")
Also see smfsb on PyPI
Copyright (2023) Darren J Wilkinson
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smfsb-0.0.2.tar.gz
(26.6 kB
view hashes)
Built Distribution
smfsb-0.0.2-py3-none-any.whl
(15.8 kB
view hashes)