MannLabs / PeptDeep-HLA

DL model to predict HLA peptide presentation
Apache License 2.0
13 stars 6 forks source link
deep-learning hla immunopeptidomics peptidomics

PeptDeep-HLA

A deep learning-model that predicts if a HLA peptide is present or not.

This is a sub-package of AlphaPeptDeep, and see our publication for details.

Quick start

Use Colab to train the models and predict HLA peptides, see:

Installation

After installing anaconda, please clone and install this package using commands below:

cd path/to/place/this/package
git clone https://github.com/MannLabs/PeptDeep-HLA.git
cd PeptDeep-HLA
pip install .

Or install directly via pip:

pip install git+https://github.com/MannLabs/PeptDeep-HLA

CLI

After installation, we can use command line interface (CLI) to train sample-specific HLA models and predict HLA peptides either from fasta files or from peptide tables. Type the command below will show usage messages.

peptdeep_hla class1 -h

Here are the details of the CLI parameters/options:

For example, use the following command to predict from fasta without trainfer learning:

peptdeep_hla class1 --fasta /Users/zengwenfeng/Workspace/Data/fasta/irtfusion.fasta --prediction_save_as /Users/zengwenfeng/Workspace/Data/fasta/irt_hla.tsv

Notebook

Using Jupyter notebooks might be easier if users are not familiar with CLI.

HLA1_Classifier.ipynb. We used this notebook to train the pretrained models:

HLA1_transfer.ipynb. A simple example of transfer learning to train the sample-specific model.

Spectral libraries

After HLA peptides are predicted, we can then use these peptides to predict spectral libraries with AlphaPeptDeep for HLA DIA analysis.

Citations

Wen-Feng Zeng, Xie-Xuan Zhou, Sander Willems, Constantin Ammar, Maria Wahle, Isabell Bludau, Eugenia Voytik, Maximillian T. Strauss & Matthias Mann. AlphaPeptDeep: a modular deep learning framework to predict peptide properties for proteomics. Nat Commun 13, 7238 (2022). https://doi.org/10.1038/s41467-022-34904-3