Skip to main content

This README describes a collection of python scripts for the Bayes Network (BN) structure learning problem collectively called BNOmics. The software allows for a purely data driven BN structure learning and is best used in combination with a python shell, such as Ipython, for on-the-fly experimentation and research. It could, however, be easily used for stand alone scripts such as the included example ( example.py ).

Due to the inherent unpredictability of the demands imposed by the various -Omics (as in genomics or metabolomics, etc.) projects using BNOmics, it is meant to serve as a prototypical research platform, modified upon necessity to address the HPC needs, rather than a narrow purpose, typical desktop application.

Requirements: Python interpreter - required. Numpy module - required. Graphviz - optional but recomended for graphical rendering. GCC - optional but needed for performance boost. make - optional, needed for compilation.

Installation: No particular installation procedure is necessary. However to enable faster compute routines compilation of cpp source in the folder containing this project is necessary. The folder contains Makefile that will tell the compiler what to do as long as 'make' utility and g++ compiler are present. Having navigated to Bnomics folder in the terminal run

touch ofext.cpp
make

This procedure should update C++ extension to the current architechture and make optimized routines available.

Example script: To start with the example please open a terminal and navigate to the BNOmics folder. Once there, you can call example.py as a standard python script with a filename argument:

python example.py african_americans.csv

The two example data files african_americans.csv and european_americans.csv are provided in the collection.

After the execution of example.py completes, the structure of reconstructed BN will be saved in dotfile.dot and can be rendered with graphviz as follows:

dot -Tpdf dotfile.dot -o outpdf.pdf

If Graphviz is properly installed the rendering procedure will be called automatically generating outpdf.pdf upon execution of example.py , and the above manual invocation of the rendering procedure will not be neccessary.

Now you can open outpdf.pdf with any pdf viewer for investigation of the results.

Feel free to open example.py with your editor of choice and view the contents. This file contains the most typical and simple example of a workflow for data driven BN reconstruction. This little script can be easily modified and tuned using the comments provided in the file.

Interactive use: In an interactive environment you can usually examine the contents of the included files as follows:

import bnomics
help(bnomics)
help(bnomics.dutils)
help(bnomics.bnutils)

and so on.

The typical workflow will be identical to the example.py script with the additional benefit of further details and information available for examination. For example, a BN can be modified by hand, its structure can be viewed as a list, a different search method can be applied or even constructed, etc.

//=============================================================
//(c) 2011 Distributed under MIT-style license. 
//(see LICENSE.txt or visit http://opensource.org/licenses/MIT)
//=============================================================

Metadata

Release files for bandyt 0.23

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

Source distribution (sdist)

Source distribution for bandyt 0.23
File Size Uploaded Provenance
bandyt-0.23.tar.gz 35.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 83.1 kB

Release files / bandyt-0.23.tar.gz

Download URL bandyt-0.23.tar.gz
Size 35.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6fae62a046d35eef5949d14f1aa98b41142e3e9f67dca6cf7b53c93411ccc443
BLAKE2b-256 checksum
How to use checksums
cd464a3808dd163dd245467c6bbf640c8d0abaa370149cb7d1a6659cce4d1814
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.9

Release files / bandyt-0.23-py3-none-any.whl

Download URL bandyt-0.23-py3-none-any.whl
Size 47.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e91c1c34b886e82b9e1c43bc0eb2412d5ed0ede8afce23da3eaf2578f825b40
BLAKE2b-256 checksum
How to use checksums
627bc29dba34517129707f543300fcc616ae14d16c68f9bc8c296129b9a3428f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.9

Security for bandyt 0.23

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.

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