Skip to main content

PepData

Look up shipped amino-acid properties and pairwise matrices, encode peptide sequences, or load peptide assay tables from IEDB. Property lookups work offline; IEDB tables require a download.

Install

python -m pip install pepdata

Python 3.11 or later is required.

Look up a peptide's residue properties

from pepdata.amino_acid_properties import hydropathy

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

The values come from the shipped residue-property table. The dictionary maps single-letter residues to numeric values; it does not predict MHC binding or clinical immunogenicity. Use uppercase canonical residue letters. A missing letter raises KeyError.

Find the interface you need

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

See residue and pairwise tables, then peptide features and IEDB tables. The API reference follows those same tasks.

Older pepdata documentation placed the property tables in amino_acid and described a StringTransformer interface. The property dictionaries are in amino_acid_properties, and there is no StringTransformer class.

Documentation development

Install requirements-docs.txt, run ./docs.sh, then python scripts/check_docs_examples.py.

Metadata

Release files for pepdata 1.2.4

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.2.4
File Size Uploaded Provenance Actions
pepdata-1.2.4.tar.gz 37.5 kB Without provenance Details for pepdata-1.2.4.tar.gz

Built distribution (wheel)

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

Total release size: 87.1 kB

Release files / pepdata-1.2.4.tar.gz

Download URL pepdata-1.2.4.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
58f76ad5f0f15f0a2223a6383e193cf5b4a50a82f8df5125f03dd1a7fb311083
BLAKE2b-256 checksum
How to use checksums
adcd204ddc21636b7b1e8012ab244816edb2b0444301994a56672c62f53c97b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.12

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

Download URL pepdata-1.2.4-py3-none-any.whl
Size 49.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86ed9df3ecdb0286be48ddd03f451164397c8b485f164d72afa82d7cce159d12
BLAKE2b-256 checksum
How to use checksums
404b2cc54ca7c478b6877f7c8c4570f277cd9b91479f7f25004ee3beae97495c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.12

Security for pepdata 1.2.4

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