Skip to main content

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


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)

Uploaded Source

Built Distribution

smfsb-0.0.2-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page