PepSeqPred predicts residue-level epitope locations for protein sequences.
At A Glance
Use bundled models with
load_pretrained_predictor(...).Use your own
.ptor.jsonartifacts withload_predictor(...).Get residue-aligned binary epitope masks via
result.binary_mask.Use
device="auto"to select CUDA when available, otherwise CPU.
Install
pip install pepseqpred
Predict With A Bundled Pretrained Model
from pepseqpred import load_pretrained_predictor
protein_seq = "ACDEFGHIKLMNPQRSTVWY"
predictor = load_pretrained_predictor(model_id="default", device="auto")
result = predictor.predict_sequence(protein_seq, header="example_protein")
print(result.binary_mask) # e.g. 000001110000...
print(result.n_epitopes) # number of residues predicted as epitope
print(result.frac_epitope) # fraction of residues predicted as epitope
To inspect available bundled models:
from pepseqpred import list_pretrained_models
for info in list_pretrained_models():
print(info.model_id, info.aliases, info.is_default)
Predict From Your Own Artifact Path
Use this when you have your own trained PepSeqPred artifact:
- single checkpoint:
.pt - ensemble manifest:
.json
from pepseqpred import load_predictor
predictor = load_predictor(
model_artifact="path/to/ensemble_manifest.json", # or path/to/model.pt
device="auto"
)
result = predictor.predict_sequence("ACDEFGHIKLMNPQRSTVWY")
print(result.binary_mask)
FASTA I/O
results = predictor.predict_fasta("input.fasta")
predictor.write_fasta_predictions("input.fasta", "predicted_masks.fasta")
Notes
device="auto"uses CUDA if available, otherwise CPU.result.binary_maskis aligned to the cleaned protein sequence.
Metadata
Release files for pepseqpred 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pepseqpred-1.0.0.tar.gz | 19.3 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pepseqpred-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.5 MB
Release files / pepseqpred-1.0.0.tar.gz
| Download URL | pepseqpred-1.0.0.tar.gz |
|---|---|
| Size | 19.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9ebcfe17b78f73c2849bdf85b99c7a83f3e83fab7c736f1e1a0287e2b9f0f94
|
|
BLAKE2b-256 checksum How to use checksums |
55f751026a7d191d3532da38c55ef374a6669ab13c990b3b007be4f5e3b45bfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logRelease files / pepseqpred-1.0.0-py3-none-any.whl
| Download URL | pepseqpred-1.0.0-py3-none-any.whl |
|---|---|
| Size | 19.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae33f0e2bc5eb5ec26dcd55ad6d4621497a89a7b8225d7ac48fa5f1a99552e46
|
|
BLAKE2b-256 checksum How to use checksums |
652cf22c9a8cc5c438afcba53ea8e85a1c2bb20af6800a660caed0d7c27889bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logSecurity for pepseqpred 1.0.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pepseqpred-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.
Transparency logA 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.