Skip to content

ejglynn/mhcglobe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MHCGlobe and MHCPerf

Motivation: Computational tools that predict peptide binding by major histocompatibility complex (MHC) proteins play an essential role in current approaches to harness adaptive immunity to fight viral pathogens and cancers. However, there are >22,000 known class-I MHC allelic variants, and it is unknown how well binding preferences are predicted for most alleles. We introduce a machine learning framework that enables state-of-the-art MHC binding prediction along with per-allele estimates of predictive performance.

If you utilize MHCGlobe or MHCPerf in your research please cite:

E. Glynn,D. Ghersi,& M. Singh, Toward equitable major histocompatibility complex binding predictions, Proc. Natl. Acad. Sci. U.S.A. 122 (8) e2405106122, https://doi.org/10.1073/pnas.2405106122 (2025).

MHCGlobe & MHCPerf Installation

MHCGlobe and MHCPerf are both easily accessible for model inference and re-training.

  1. Download the mhcglobe git repository containing the code:

    git clone https://github.com/ejglynn/mhcglobe.git

  2. Update the mhcglobe_dir variable in src/paths.py with the full path to your mhcglobe folder.

  3. Download the two pickle files available on Zenodo and place them in the data folder.

  4. From the mhcglobe folder create and activate a Python3 virtual environment with the following commands:

    python3 -m pip install --user --upgrade pip

    python3 -m pip install --user virtualenv

    python3 -m venv env

    source env/bin/activate

  5. Install prerequisites in the virtual environment:

    pip3 install jupyter pandas scipy sklearn tensorflow tqdm

  6. From the mhcglobe folder, start jupyter:

    jupyter notebook

On your browser, click on the MHCGlobe_User_Notebook.ipynb to open and interact with the notebook.

To speed things up, output files have already been provided in the output folder. If you want to recompute these files, simply delete or rename the output folder.

About

MHCGlobe and MHCPerf for peptide-MHC binding prediction & allele-level performance estimation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors