Skip to main content

Tests Documentation PyPI

pepdata

pepdata ships amino-acid property tables and pairwise residue matrices (BLOSUM, PMBEC, contact energies), turns peptide sequences into n-gram feature vectors, and loads MHC-binding and T-cell assay tables from the IEDB. It is the OpenVax library for peptide-level reference data and is the upstream source of amino acid tables and substitution matrices for weirdo. It does not predict MHC binding; for that, see mhctools and mhcflurry.

Install

python -m pip install pepdata

pepdata needs Python 3.11 or later. Property tables and matrices ship with the package and work offline. The IEDB tables are downloaded on first use and cached by datacache.

Quick start

from pepdata.amino_acid_properties import hydropathy

peptide = "ACD"
print([hydropathy[residue] for residue in peptide])
[1.8, 2.5, -3.5]

Each property table is a dictionary from single-letter residue to value. Use uppercase canonical residue letters; a missing letter raises KeyError.

Documentation

The documentation has two guides and an API reference:

  1. Residue and pairwise tables: property dictionaries, BLOSUM and other matrices, alphabets.
  2. Peptide features and IEDB tables: n-gram vectors and the MHC-binding and T-cell assay loaders.
  3. API reference.
Task Module or object
Single-residue properties pepdata.amino_acid_properties
BLOSUM substitution matrices pepdata.blosum
PMBEC and contact tables pepdata.pmbec, pepdata.residue_contact_energies
Residue alphabets pepdata.amino_acid_alphabet, pepdata.reduced_alphabet
N-gram features pepdata.PeptideVectorizer
MHC-binding assay tables pepdata.iedb.mhc
T-cell assay tables pepdata.iedb.tcell

Development

python -m pip install -e . pytest pytest-cov ruff
./lint.sh   # ruff check
./test.sh   # pytest with coverage
python -m pip install -r requirements-docs.txt
./docs.sh   # mkdocs build --strict, then a rendered-link check
python scripts/check_docs_examples.py   # run docs examples, compare output

The development installer uses python from the active environment. Set PYTHON=/path/to/python ./develop.sh to select an interpreter explicitly; additional arguments are passed to pip.

License

Apache 2.0; see LICENSE.txt.

Metadata

Release files for pepdata 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pepdata 1.5.1
File Size Uploaded Provenance Actions
pepdata-1.5.1.tar.gz 52.4 kB Without provenance Details for pepdata-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pepdata 1.5.1
File Interpreter ABI Platform Actions
pepdata-1.5.1-py3-none-any.whl Python 3 none any Details for pepdata-1.5.1-py3-none-any.whl

Total release size: 102.4 kB

Release files / pepdata-1.5.1.tar.gz

Download URL pepdata-1.5.1.tar.gz
Size 52.4 kB
Tags Source
SHA-256 checksum
How to use checksums
98e70510a188146ef37eae245a812145a565361e8f1e294da87ac32895b7cab1
BLAKE2b-256 checksum
How to use checksums
0abefa791cd183a65fdbe58f9b208459d2430f7ad9612e61212c8ae0a0949c69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Release files / pepdata-1.5.1-py3-none-any.whl

Download URL pepdata-1.5.1-py3-none-any.whl
Size 49.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae64f0a73e2d2a0728f4a2d112fcabecc9554f98ba3d18e32a2ee64b35ae3732
BLAKE2b-256 checksum
How to use checksums
6f18d1019d3fc4f728e4e9065e314bd9caf1e2e53f6b900742585b3b4782ad90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.6

Security for pepdata 1.5.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page