Skip to main content

A Python package for the simulation of organoids for the purpose of studying Organoid Intelligence (OI) and Organoid Learning (OL).

Project description

PyOrganoid Logo

PyPI Downloads Conda Downloads CI/CT/CD License

PyOrganoid is the world's first* Python package for the simulation of organoids for the purpose of studying Organoid Intelligence (OI) and Organoid Learning (OL). It is designed to be simple to use and easy to extend with support for standard machine learning libraries such as TensorFlow, PyTorch, and Scikit-Learn (as well as ONNX-format models).

It provides:

  • a simple and intuitive API
  • support for standard machine learning libraries
  • a growing library of organoid models
  • visualization tools for organoid simulation
  • numerous simulation environments and scheduling algorithms
  • TODO: support for parallel/distributed computing, bio/cheminformatics libraries, logging, and more

PyOrganoid is currently in development and may not yet be ready for production use. We are actively seeking contributors to help us improve the package and expand its capabilities. If you are interested in contributing, please see our contributing guide.

*As of July 6th, 2024, to the best of our knowledge :)

Organoid Example

Installation

Pip

PyOrganoid can be installed (without built-in support for machine learning libraries) using pip:

pip install pyorganoid

To include support for all machine learning libraries, use:

pip install pyorganoid[all]

Or, to include support for a specific library (TensorFlow, PyTorch, Scikit-Learn, or ONNX), use:

pip install pyorganoid[tensorflow]
pip install pyorganoid[torch]
pip install pyorganoid[sklearn]
pip install pyorganoid[onnx]

Conda

PyOrganoid can also be installed using conda:

conda install -c danielathome19 pyorganoid

To include support for extras, use pip as described above.

Quickstart

For a quick introduction to PyOrganoid, see the Spiking Neuron Test in the test directory. This test demonstrates the creation of a simple spiking neuron organoid running a binary classification Multi-Layer Perceptron (MLP) model using TensorFlow.

If you prefer Scikit-Learn, PyTorch, or ONNX models, see the Volumetric Organoid Test (Scikit-Learn), the Gene Regulation Organoid Test (PyTorch), or the Immune Response Organoid Test (ONNX), respectively.

For example:

import pyorganoid as po

model = po.tf_module.TFModel("model.h5")
env = po.environments.Environment()
organoid = po.organoids.SpikingNeuronOrganoid(env, model, num_cells=50)
organoid.plot_organoid(show_properties=True)

scheduler = po.simulation.Scheduler(organoid)
scheduler.simulate(steps=100)

organoid.plot_simulation_history(title="Spiking Neuron Organoid Simulation", 
                                 y_label="Membrane Potential (mV)", dpi=600)
Spiking Organoid Example Volumetric Organoid Example
Gene Regulation Organoid Example Immune Response Organoid Example

License

PyOrganoid is licensed under the BSD-3 License. See the LICENSE file for more information.

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

pyorganoid-0.1.5.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

pyorganoid-0.1.5-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file pyorganoid-0.1.5.tar.gz.

File metadata

  • Download URL: pyorganoid-0.1.5.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyorganoid-0.1.5.tar.gz
Algorithm Hash digest
SHA256 551c60aca39bbb70ab3dcf41ea09141242e1ee22e528fc8c43d23f7313fa1b81
MD5 7feb8fdac1f0e74157f9e66c5f38680e
BLAKE2b-256 d3f814ee2740a0e24cc34398718dc82323e10eb08d67bdcb8c258a381837ef26

See more details on using hashes here.

File details

Details for the file pyorganoid-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pyorganoid-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyorganoid-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5af403487b726e84af4d8128dc037e775e39ec92a42dfd9828ca3a86e963f05c
MD5 b231ff16009c82722a689fb4ca1a9ed2
BLAKE2b-256 0e65a82d2dba1f9b57c361b6261e6d72f70fda8173fb8f206f75a7bda13a685c

See more details on using hashes here.

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