Skip to main content

Boolean Gene

A Python package for analyzing Boolean gene networks.

What are Boolean gene networks?

Interactions between genes and their regulators (such as transcription factors or RNA-binding proteins) provide the machinery for cells to respond to environmental stimuli by adopting an appropriate transcriptional response. The set of interconnected gene-regulator interactions – known as a gene regulatory network (GRN) – can be modeled to predict the cellular response to a signal. However, GRNs arising in nature are highly complex systems with dozens to hundreds of genetic regulators and effectors, making their full characterization computationally intractable. To nonetheless study their behavior, GRNs can be modeled as Boolean networks: each gene is represented by a node whose on/off state is updated at every time step according to a Boolean function of the gene’s regulators. A straightforward example is Elowitz and Leibler’s repressilator (1), where three genes are connected by NOT gates in a unidirectional loop. This GRN is designed to oscillate, and the Boolean model captures this behavior. For instance, when loaded with an initial condition where only one gene is on, the “on” state rotates unidirectionally through the loop (Fig. 1).


Figure 1: Boolean model of the repressilator captures its oscillatory behavior. Genes are represented by nodes, and repressing interactions are represented by NOT gates.

What does this software do?

This package allows users to perform stability analysis and measure topological features (e.g., loops or clusters) of an input Boolean gene network. The input can be either a user-defined network or a pre-defined network from the CellCollective database (2). A strength of this package is its ability to generate randomized networks that nevertheless preserve the logical structure of the input network, including the in-degrees, out-degrees, and Boolean function of each gene. This feature is integrated into the stability analysis pipeline such that users can compare the input network to large numbers of random networks that are logically identical but topologically different from the input. This analysis allows for the characterization of topological modifiers of GRN stability, which can have applications in synthetic biology, systems biology, and biomedical drug discovery.

Installation

pip install booleangene

Usage

This package contains functions for running stability analysis, counting a network's loops, and measuring the clustering coefficient of each gene in a network (use booleangene -h to view all available functions). Each of these functions generates a user-defined number of randomized networks that preserve the Boolean functions of the original input network, allowing for comparison to a null model.

For instance, to run the stability analysis function:

booleangene run_stability_analysis -i "/path/to/input.txt" -o "/path/to/output/directory" 

where the input .txt file should define each gene's associated Boolean function using AND, OR, and NOT connectives. For example inputs, see the text files in the sample_inputs directory, which were downloaded from the Cell Collective database (2).

Citations

  1. Elowitz, M., Leibler, S. A synthetic oscillatory network of transcriptional regulators. Nature 403, 335–338 (2000).
  2. Helikar, T., Kowal, B., McClenathan, S. et al. The Cell Collective: Toward an open and collaborative approach to systems biology. BMC Syst Biol 6, 96 (2012).

Metadata

Release files for booleangene 0.0.3

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

Source distribution (sdist)

Source distribution for booleangene 0.0.3
File Size Uploaded Provenance Actions
booleangene-0.0.3.tar.gz 20.8 kB Without provenance Details for booleangene-0.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 44.5 kB

Release files / booleangene-0.0.3.tar.gz

Download URL booleangene-0.0.3.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fe5da3559f2a78d7c4f7464779255093312bb00fadf77ce05647f1bcf351e028
BLAKE2b-256 checksum
How to use checksums
65e6dc6f2781aab7d000ec106493d295e1c19829caf041155a6e927f653c2556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / booleangene-0.0.3-py3-none-any.whl

Download URL booleangene-0.0.3-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d098f2b8e0707826d25a00587a36eb95a26a4ad9fd33df0862f8f36191cb9ef
BLAKE2b-256 checksum
How to use checksums
2bb0a7a14e06b860fe64d736e4fb39a370c57d5ae080ee6861a08ff89665324c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for booleangene 0.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

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