PersonalBPNet
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 afit()that validates against a PyTorchDataLoaderinstead of holding the whole validation set in memory. - CLIPNET —
PersonalBPNetplus batch normalization; PyTorch port of the original TensorFlow CLIPNET. - ProCapNet —
BPNetwith 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 and PISA 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 and PISA 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 |
| 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):
- Avsec et al. (2021). Base-resolution models of transcription-factor binding reveal soft motif syntax. Nature Genetics 53:354–366. — BPNet
- He & Danko (2024). Dissection of core promoter syntax through single nucleotide resolution modeling of transcription initiation. bioRxiv. — CLIPNET
- Cochran et al. (2024). Dissecting the cis-regulatory syntax of transcription initiation with deep learning. bioRxiv. — ProCapNet
License
Metadata
Release files for PersonalBPNet 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| personalbpnet-0.8.0.tar.gz | 59.3 kB | Without provenance | Details for personalbpnet-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| personalbpnet-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for personalbpnet-0.8.0-py3-none-any.whl |
Total release size: 120.0 kB
Release files / personalbpnet-0.8.0.tar.gz
| Download URL | personalbpnet-0.8.0.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a01b47af782fd387dbecc40e702d004f9b9f1e059a2241dc37cbcffac2063e3a
|
|
BLAKE2b-256 checksum How to use checksums |
9cd80ab58cbd54bf32320e91399978d589d078cd17b2ea5da6dbe2ed75579590
|
| 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.8.0-py3-none-any.whl
| Download URL | personalbpnet-0.8.0-py3-none-any.whl |
|---|---|
| Size | 60.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e00f4561f97e0e7555f8efbb7966bf1472a881f140872b01cbb49c175063577b
|
|
BLAKE2b-256 checksum How to use checksums |
0e465e7a53cd6548162122cc595dfde78f4e1715efb7ea082553e5538b7d9912
|
| 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.8.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.