PyTorch BPNet-family models (CLIPNET, ProCapNet, PauseNet) for base-resolution genomic signal prediction, extending bpnetlite.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file personalbpnet-0.7.0.tar.gz.
File metadata
- Download URL: personalbpnet-0.7.0.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d3c5d228e1fdf395ac5c217928b38f6f20c57aa2b6678ea96782ea21cc5ce92
|
|
| MD5 |
04777ce150a753b81ea194439c847331
|
|
| BLAKE2b-256 |
5f4f08271e2257e7eb85698e6e3b1d6d9ee8479581e1dde0444c30e4d3c2e93f
|
File details
Details for the file personalbpnet-0.7.0-py3-none-any.whl.
File metadata
- Download URL: personalbpnet-0.7.0-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7250787ef0f56375cf2b74e9ad2515cdecd8f6829116037af0a66a76967e518c
|
|
| MD5 |
500787f728126abc9a2a83a4e8a8db36
|
|
| BLAKE2b-256 |
668027f9fd8e32d3119cf7daf9c0bc3761d13c1de5387c1995715e2e21c2a9cb
|