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.
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 | Porting the original TensorFlow CLIPNET weights |
| docs/procapnet.md | ProCapNet |
| docs/pausenet.md | PauseNet |
| docs/cli.md | clipnet, pausenet, and clipnet_tf command line tools |
| 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.7.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 | |
|---|---|---|---|
| personalbpnet-0.7.0.tar.gz | 29.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| personalbpnet-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.7 kB
Release files / personalbpnet-0.7.0.tar.gz
| Download URL | personalbpnet-0.7.0.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d3c5d228e1fdf395ac5c217928b38f6f20c57aa2b6678ea96782ea21cc5ce92
|
|
BLAKE2b-256 checksum How to use checksums |
5f4f08271e2257e7eb85698e6e3b1d6d9ee8479581e1dde0444c30e4d3c2e93f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / personalbpnet-0.7.0-py3-none-any.whl
| Download URL | personalbpnet-0.7.0-py3-none-any.whl |
|---|---|
| Size | 35.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7250787ef0f56375cf2b74e9ad2515cdecd8f6829116037af0a66a76967e518c
|
|
BLAKE2b-256 checksum How to use checksums |
668027f9fd8e32d3119cf7daf9c0bc3761d13c1de5387c1995715e2e21c2a9cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|