Skip to main content

Bayesian sequence-titer models.

Project description

pytrate

tests docs

Inferring effects of amino acid changes on antigenic phenotypes of viruses.

See the docs.

Install

uv pip install git+https://github.com/davipatti/pytrate.git

Main features

  • SeqDf — aligned amino acid sequence management
  • CrossedSiteAaModel — Bayesian model with crossed site and amino acid pair effects
  • CombinedSiteAaModel — Bayesian model with combined site-amino acid effects
  • FoldChangeModel — decompose titer fold changes from mutant vs root viruses
  • MapCoordModel — Bayesian antigenic map natural experiments and visualization

Tests

uv run --extra dev pytest

Some tests are a bit slow, do uv run --extra dev pytest -k 'not slow' to skip them.

Build & publish

uv sync --extra dev
uv run python -m build
uv run python -m twine upload dist/*

Pre-commit hook

To enable the pre-commit hook, symlink it into your local .git/hooks directory:

ln -s hooks/pre-commit .git/hooks/pre-commit

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

pytrate-2.4.5.tar.gz (206.2 kB view details)

Uploaded Source

Built Distribution

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

pytrate-2.4.5-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

Details for the file pytrate-2.4.5.tar.gz.

File metadata

  • Download URL: pytrate-2.4.5.tar.gz
  • Upload date:
  • Size: 206.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for pytrate-2.4.5.tar.gz
Algorithm Hash digest
SHA256 c9130917e0e321836aeb4b3c005b9dc1a451c0df3be2f7726f4a8c9747fbe919
MD5 0782ce20260c12a03cbf6b55acd874d8
BLAKE2b-256 fd402dd63be0e93134d6c4302741cf11071acf5371a32f9a7605a685262e9ba8

See more details on using hashes here.

File details

Details for the file pytrate-2.4.5-py3-none-any.whl.

File metadata

  • Download URL: pytrate-2.4.5-py3-none-any.whl
  • Upload date:
  • Size: 57.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for pytrate-2.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b4a28f956bae9a3f6dcd91c99c664716d12c60ec6c4e57a4774d846ac48615b4
MD5 f01a43ebac160742912393be8f5d998e
BLAKE2b-256 c30d268322a3c35a9add25e08d89d7fd39e1a084db3cbc8d10189a6e0038b477

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