Skip to main content

tests PyPI python license

BoNesisTools

BoNesisTools provides Python-implemented toolkits for upstream and downstream analyses around the BoNesis ecosystem.

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:

genesyn = bt.resources.ncbi.genesyn()

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

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/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bonesistools-1.4.0.tar.gz (18.5 MB view details)

Uploaded Source

Built Distribution

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

bonesistools-1.4.0-py3-none-any.whl (8.7 MB view details)

Uploaded Python 3

File details

Details for the file bonesistools-1.4.0.tar.gz.

File metadata

  • Download URL: bonesistools-1.4.0.tar.gz
  • Upload date:
  • Size: 18.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bonesistools-1.4.0.tar.gz
Algorithm Hash digest
SHA256 4f71b403f3beedc0d9b8c7b4878825cac05cfb160e3d4afb76ae48d7b59dba76
MD5 1b2b1f77312b48109135089627ae4f38
BLAKE2b-256 f1ea00573ed8a52430fdc0d56ae4b753c5fbdcaab537054d4b2aa8cfd0c07993

See more details on using hashes here.

Provenance

The following attestation bundles were made for bonesistools-1.4.0.tar.gz:

Publisher: publish.yml on bnediction/bonesistools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bonesistools-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: bonesistools-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bonesistools-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc7c93e6cf69c903e7bc787a45d2e7d0fd6cea5c8b973fac275955f4f301df9e
MD5 37dfc0a01df674853f422f401f8690bc
BLAKE2b-256 6272ac201025c9499f02181b04e5e6ca18cfeebfeb2d5c5d7f1a3a8efa8fc1c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for bonesistools-1.4.0-py3-none-any.whl:

Publisher: publish.yml on bnediction/bonesistools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.6.0

2 files

1.5.0

2 files

This release

1.4.0 This release

2 files

1.3.0

2 files

1.2.9

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.9

2 files

1.1.8

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

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