Skip to main content

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.

  • PersonalBPNetbpnetlite.bpnet.BPNet, with a fit() that validates against a PyTorch DataLoader instead of holding the whole validation set in memory.
  • CLIPNETPersonalBPNet plus batch normalization; PyTorch port of the original TensorFlow CLIPNET.
  • ProCapNetBPNet 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.

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):

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

personalbpnet-0.7.0.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

personalbpnet-0.7.0-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

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

Hashes for personalbpnet-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8d3c5d228e1fdf395ac5c217928b38f6f20c57aa2b6678ea96782ea21cc5ce92
MD5 04777ce150a753b81ea194439c847331
BLAKE2b-256 5f4f08271e2257e7eb85698e6e3b1d6d9ee8479581e1dde0444c30e4d3c2e93f

See more details on using hashes here.

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

Hashes for personalbpnet-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7250787ef0f56375cf2b74e9ad2515cdecd8f6829116037af0a66a76967e518c
MD5 500787f728126abc9a2a83a4e8a8db36
BLAKE2b-256 668027f9fd8e32d3119cf7daf9c0bc3761d13c1de5387c1995715e2e21c2a9cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page