Skip to main content

Methods to generate and analyze random Boolean functions and Boolean networks, with a focus on canalization.

Project description

BoolForge

BoolForge is a Python toolbox for generating, sampling, and analyzing Boolean functions and Boolean networks, with a particular emphasis on canalization and the uniform random generation of functions with prescribed structure.

While many existing tools focus on simulation and dynamical analysis, BoolForge emphasizes controlled generation and analysis of Boolean functions and networks, enabling systematic studies of canalization, robustness, and ensemble properties.

The package provides tools for:

  • random sampling of Boolean functions with prescribed canalizing structure,
  • generation of Boolean networks with controlled update rules and wiring diagrams,
  • analysis of canalization, activity, sensitivity, and related structural measures,
  • interoperability with other Boolean network software and model formats.

BoolForge is designed for researchers working with regulatory networks, discrete dynamical systems, and random Boolean network ensembles in systems biology and network science.


Installation

Stable release (recommended)

Install the latest stable version from PyPI:

pip install boolforge

BoolForge requires Python 3.10 or later.


Development version

To install the latest development version directly from GitHub:

pip install git+https://github.com/ckadelka/BoolForge

Optional dependencies (extended functionality)

BoolForge is fully usable with its core dependencies, but some features rely on optional packages that can be installed via extras.

Performance acceleration

Some internal routines are automatically accelerated if numba is available. Exact asynchronous attractor computation requires numba.

To enable numba acceleration:

pip install boolforge[speed]

When numba is not installed, BoolForge transparently falls back to pure-Python implementations.


Plotting and visualization

Plotting of wiring diagrams and network structure requires matplotlib.

To enable plotting:

pip install boolforge[plot]

CANA integration

Some methods interface with the CANA package for advanced canalization measures.

To enable CANA-based functionality:

pip install boolforge[cana]

Symbolic logic and expression minimization

Symbolic representations and logical expression minimization rely on PyEDA.

To enable symbolic functionality:

pip install boolforge[symbolic]

Biological model retrieval

The retrival and loading of hundreds of published biological Boolean network models relies on the requests package for web access.

To enable biological model retrieval:

pip install boolforge[bio]

All optional features

To install BoolForge with all optional dependencies:

pip install boolforge[all]

Compatibility and interoperability

BoolForge supports import and export of Boolean network representations used by other software packages.

In particular, BoolForge supports the .bnet format commonly used by pyboolnet, without requiring pyboolnet itself to be installed.

BoolForge also supports conversion to and from the format used by CANA.


Documentation

Full documentation, including tutorials and API reference, is available at:

https://kadelkalab.github.io/BoolForge/


Citation

If you use BoolForge in your research, please cite the accompanying application note:

Kadelka, C., & Coberly, B. (2025).
BoolForge: Controlled Generation and Analysis of Boolean Functions and Networks.
arXiv:2509.02496.
https://arxiv.org/abs/2509.02496

A machine-readable citation file (CITATION.cff) is included in the repository and can be used directly by GitHub, Zenodo, and reference managers.


License

BoolForge is released under the MIT License.

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

boolforge-1.0.1.tar.gz (111.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boolforge-1.0.1-py3-none-any.whl (134.0 kB view details)

Uploaded Python 3

File details

Details for the file boolforge-1.0.1.tar.gz.

File metadata

  • Download URL: boolforge-1.0.1.tar.gz
  • Upload date:
  • Size: 111.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for boolforge-1.0.1.tar.gz
Algorithm Hash digest
SHA256 acd7a2a77ed30df132c609cc88670322dc5d2636c8c05b8f7840ed4c4623af92
MD5 5f6bfd868f4d7385ef29a5b34037299a
BLAKE2b-256 93a82a7ec249eecd968ca8c269c87dbe53028cea9001d3d12d257d6ac96ddd29

See more details on using hashes here.

File details

Details for the file boolforge-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: boolforge-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 134.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for boolforge-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab97ed648c2587c8939209726ac62605e66294ab1692fd73b24d7f1d32fb6b3
MD5 0f140714b50c40878fea06c7328bb1d5
BLAKE2b-256 3e606f04ee890946a34ecb624ec4591156e2bbbe25fda3c910aec86799b47cb1

See more details on using hashes here.

Supported by

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