Skip to main content

PersonalBPNet

PyPI CI PyPI Downloads

A PyTorch library of BPNet-family models for predicting base-resolution genomic signal (e.g., PRO-cap read coverage) from DNA sequence, plus CLI tools for prediction and attribution.

  • PersonalBPNet — bpnetlite.bpnet.BPNet, with a fit() that validates against a PyTorch DataLoader instead of holding the whole validation set in memory.
  • CLIPNET — PersonalBPNet plus batch normalization; PyTorch port of the original TensorFlow CLIPNET.
  • ProCapNet — BPNet with a masked profile loss, improving attributions (from the ProCapNet paper).
  • PauseNet — transfer-learns a base-resolution model to predict a single scalar phenotype per locus.
  • CLIPNET_TF — the original TensorFlow CLIPNET architecture in PyTorch, loading its published weights. It comes with fast DeepLIFT/SHAP, in silico mutagenesis, PISA and feature interaction map (DFIM) engines written for it.

Install

With uv:

uv add personalbpnet

Or with pip:

pip install personalbpnet

To load TensorFlow-trained weights (requires h5py), install with the tf extra: uv add "personalbpnet[tf]" or pip install "personalbpnet[tf]".

Installing from source, for local development, is covered in CONTRIBUTING.md.

Documentation

docs/clipnet.md PersonalBPNet and CLIPNET, incl. pretrained weights
docs/clipnet-tf.md CLIPNET_TF: the original TensorFlow CLIPNET weights, and fast DeepLIFT/SHAP, ISM, PISA and DFIM for them
docs/procapnet.md ProCapNet
docs/pausenet.md PauseNet
docs/cli.md clipnet, pausenet, and clipnet_tf command line tools
examples/promoter_interpretation Comparing attribution references for CLIPNET_TF at 11 promoters, and a DFIM heatmap of the IRF4 promoter
CONTRIBUTING.md Installing from source and local development

This package is under active development; APIs may change between releases. See CHANGELOG.md.

Citing

If you use PersonalBPNet/CLIPNET/ProCapNet, or the underlying BPNet architecture (via the bpnet-lite dependency), please cite the corresponding paper (see CITATION.cff):

License

MIT

Metadata

Release files for PersonalBPNet 0.9.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 PersonalBPNet 0.9.0
File Size Uploaded Provenance Actions
personalbpnet-0.9.0.tar.gz 65.4 kB Without provenance Details for personalbpnet-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 130.5 kB

Release files / personalbpnet-0.9.0.tar.gz

Download URL personalbpnet-0.9.0.tar.gz
Size 65.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b273a78ac9e3a8c1c5d1363b2d2a2e371765543ae76709feaff97b00deb59042
BLAKE2b-256 checksum
How to use checksums
f0076f1ee08cd047b1a35c0ee5d0d94cd9ce1b71ee5b96678af06a2c8d2f31d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / personalbpnet-0.9.0-py3-none-any.whl

Download URL personalbpnet-0.9.0-py3-none-any.whl
Size 65.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25cae919e60926cd77ec28f3596c0d345591cfbfa521d1d6f8c00c0c25f38c05
BLAKE2b-256 checksum
How to use checksums
49406a03e1842d2ea62046fb8473360bb474156b255a6dd9d2e2f3514a84b3ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for PersonalBPNet 0.9.0

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.

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