Skip to main content

tests PyPI python license

BoNesisTools

Python toolkit for the executable Boolean modeling stack, from omics data to symbolic analyses.

BoNesisTools provides Python-implemented toolkits for the executable Boolean modeling stack, from omics data to symbolic analyses.

The package provides:

  • Boolean algebra and partial Boolean abstractions
  • Boolean network manipulation and analysis
  • signed influence graph utilities
  • GRN-informed Boolean predecessor inference
  • single-cell and multimodal analysis helpers
  • biological database interfaces

Usage

import bonesistools as bt

BoNesisTools exposes three main namespaces:

  • bt.omics — single-cell and multimodal annotated data tools
  • bt.logic — Boolean modelling and graph utilities
  • bt.resources — biological database interfaces

Single-cell tools

bt.omics is inspired by Scanpy while providing additional and complementary features for single-cell analyses.

Submodules:

  • preprocessing: bt.omics.pp

    • expression transformations, feature selection, filtering and metadata utilities
  • tools: bt.omics.tl

    • embeddings, neighborhood graphs, clustering and differential analysis
  • input/output: bt.omics.io

    • registered single-cell example datasets, GEO import and matrix export helpers
  • plotting: bt.omics.pl

    • visualization helpers for embeddings, trajectories, distributions and summaries

Example:

bt.omics.io.available()
bt.omics.io.info("pbmc3k")
adata = bt.omics.io.load("pbmc3k")
adata = bt.omics.io.load("nestorowa")
bt.omics.io.clear("pbmc3k")

Boolean modelling utilities

bt.logic provides utilities for Boolean modelling, logical abstractions and signed regulatory graphs.

Submodules:

  • Boolean algebra: bt.logic.ba

    • logical objects, configuration sets and transformations for Boolean-state reasoning
  • Boolean network: bt.logic.bn

    • Boolean model representation, conversion, analysis and exchange
  • influence graph: bt.logic.ig

    • signed regulatory graph construction, comparison, analysis and display
  • input/output: bt.logic.io

    • BNet, GINML, ZGINML, hypercube and influence-graph readers

Example:

bn = bt.logic.io.read_bnet("model.bnet")
graph = bn.to_influence_graph()

graph.show()

Biological external resources

bt.resources provides lightweight interfaces and utilities for biological external resources.

Submodules:

  • NCBI: bt.resources.ncbi

    • gene identifier, synonym and annotation utilities
  • OmniPath: bt.resources.omnipath

    • regulatory interaction datasets
  • HCOP: bt.resources.hcop

    • orthology resources

Example:

gene_identifiers = bt.resources.ncbi.identifiers()

grn = bt.resources.omnipath.collectri(
    organism="mouse",
    identifiers=gene_identifiers,
)

Installation

Install the latest release:

pip install bonesistools

Install the omics dependencies:

pip install "bonesistools[omics]"

Install all optional dependencies:

pip install "bonesistools[all]"

Install the development version:

git clone https://github.com/bnediction/bonesistools.git
cd bonesistools
pip install -e ".[all]"

or directly:

pip install git+https://github.com/bnediction/bonesistools.git

Bugs

Please report bugs or ask questions here:

https://github.com/bnediction/bonesistools/issues


License

This package is distributed under the CeCILL v2.1 free software license (GNU GPL compatible).

This package also includes third-party data resources derived from the NCBI Gene database (gene_info). NCBI places no restrictions on the use or redistribution of these data: https://www.ncbi.nlm.nih.gov/home/about/policies/

Release files for bonesistools 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bonesistools 1.7.0
File Size Uploaded
bonesistools-1.7.0.tar.gz 25.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bonesistools 1.7.0
File Interpreter ABI Platform
bonesistools-1.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 MB

Release files / bonesistools-1.7.0.tar.gz

Download URL bonesistools-1.7.0.tar.gz
Size 25.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ddd76eca86b38333dd75b515e786abbdf8a385879f4d87404e93015d8dc3079c
BLAKE2b-256 checksum
How to use checksums
149602621059579b098e967e3f146428be6fa22e22dd80138e011e5ea382274a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / bonesistools-1.7.0-py3-none-any.whl

Download URL bonesistools-1.7.0-py3-none-any.whl
Size 8.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6ca521e9952f4c4e094862e6cb56590270ce8b08f6d5884a1251af867a1f0e63
BLAKE2b-256 checksum
How to use checksums
a3d14799456169266c5771df73af7dd9bcd6819799cd4f26848ddf3ff8f9d39d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page