EpitopeGen
EpitopeGen is a deep learning model that predicts cognate epitope sequences from T-cell receptor (TCR) sequences. It helps functionally annotate TCRs in single-cell TCR sequencing data by generating potential binding epitopes and identifying phenotype associations.
Installation
pip install epitopegen
Quick Start
from epitopegen import EpitopeGenPredictor
# Initialize predictor
predictor = EpitopeGenPredictor()
# Predict epitopes for TCR sequences
tcrs = ["CASIPEGGRETQYF", "CAVRATGTASKLTF"]
results = predictor.predict(tcrs)
Basic Usage
1. Prepare Input Data
Create a CSV file with TCR sequences:
text,label
CASIPEGGRETQYF,ZZZZZ
CAVRATGTASKLTF,ZZZZZ
2. Run Predictions
import pandas as pd
from epitopegen import EpitopeGenPredictor
# Initialize predictor
predictor = EpitopeGenPredictor()
# Read TCR sequences
tcrs = pd.read_csv("input.csv")["text"].tolist()
# Generate predictions
results = predictor.predict(
tcr_sequences=tcrs,
output_path="predictions.csv",
top_k=50 # num of epitopes to generate
)
3. Annotate Phenotypes
from epitopegen import EpitopeAnnotator
# Initialize annotator with reference database
annotator = EpitopeAnnotator("epitopes_db.csv")
# Annotate predictions
results = annotator.annotate(
predictions_df=results,
method='substring',
output_path="annotations.csv"
)
Key Features
- Generate potential epitope sequences for TCRs
- Support for multiple model checkpoints
- Phenotype annotation using reference databases
- Ensemble predictions for robust results
- Built-in analysis tools
Resources
Requirements
- Python ≥ 3.8
- PyTorch ≥ 1.12
- transformers ≥ 4.39.0
- pandas ≥ 1.5.0
Citation
If you use EpitopeGen in your research, please cite:
@article{epitopegen2024,
title={Generating cognate epitope sequences of T-cell receptors with a generative transformer},
year={2024}
}
License
MIT License
Support
For questions and issues:
- Open an issue on GitHub
- Contact: minukma@cs.ubc.ca
Metadata
Release files for epitopegen 0.1.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 | Actions |
|---|---|---|---|---|
| epitopegen-0.1.0.tar.gz | 50.8 kB | Without provenance | Details for epitopegen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epitopegen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for epitopegen-0.1.0-py3-none-any.whl |
Total release size: 99.5 kB
Release files / epitopegen-0.1.0.tar.gz
| Download URL | epitopegen-0.1.0.tar.gz |
|---|---|
| Size | 50.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97a4ddbdb8b1e2a90155545f2159538acdd0fc5cfd68d31d6af38d278166bcea
|
|
BLAKE2b-256 checksum How to use checksums |
f83a1788090a3ee5675e925d90ebcdbfc1ab5e921784b6becb63195a28df5a2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / epitopegen-0.1.0-py3-none-any.whl
| Download URL | epitopegen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 48.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
499fe9ba8109ce31007d6c843970137f430373abbe156cce2869f31fe97621b0
|
|
BLAKE2b-256 checksum How to use checksums |
b9b998c4ee8c6380026e4cbfb12e7b50a96937cb815fa1d95b5af9a7032960e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for epitopegen 0.1.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.
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.