FennOmix-MHC
Project description
FennOmix-MHC
Foundation model for MHC class I peptide binding prediction built on deep contrastive learning.
See the online documentation for full API details and tutorials.
Installation
Install the latest release from PyPI:
pip install fennomix-mhc
Or install the development version directly from GitHub:
pip install git+https://github.com/FennOmix/FennOmix.MHC.git
Command line interface
After installation the fennomix-mhc command exposes several sub-commands. The examples below assume your peptide or protein sequences are stored in FASTA or tabular files.
Embed MHC proteins
fennomix-mhc embed-proteins --fasta my_hla.fasta --out-folder ./output
Embed peptides
fennomix-mhc embed-peptides --peptide-file peptides.tsv --out-folder ./output
Predict epitopes for MHC alleles
fennomix-mhc predict-epitopes-for-mhc --peptide-file peptides.tsv \
--alleles A02_01,B07_02 --out-folder ./output
Predict MHC binders for given epitopes
fennomix-mhc predict-mhc-binders-for-epitopes --peptide-file peptides.tsv \
--out-folder ./output
Additional commands deconvolute-peptides and deconvolute-and-predict-peptides are also available.
Pipeline API
All functionality of the command line interface is available through the fennomix_mhc.pipeline_api module:
from fennomix_mhc.pipeline_api import (
embed_proteins,
embed_peptides_from_file,
predict_epitopes_for_mhc,
predict_mhc_binders_for_epitopes,
)
# compute and save embeddings
embed_proteins("my_hla.fasta", "./output")
embed_peptides_from_file("peptides.tsv", "./output")
# run predictions using the saved files
predict_epitopes_for_mhc(
"peptides.tsv",
["A02_01"],
"./output",
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fennomix-mhc-0.0.1.dev0.tar.gz.
File metadata
- Download URL: fennomix-mhc-0.0.1.dev0.tar.gz
- Upload date:
- Size: 108.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f60f6c634d86093ecabbae1397a15ba6ddb3246c2d30b85dd219dd443b48003
|
|
| MD5 |
e88c7eec3bc4635384db812262acb9bd
|
|
| BLAKE2b-256 |
3fff1b1bee3a110094334991a95b4033ed182bedfb4f21d6d09e83cf9ed992e1
|
File details
Details for the file fennomix_mhc-0.0.1.dev0-py3-none-any.whl.
File metadata
- Download URL: fennomix_mhc-0.0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 116.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5ff82106bfc4f62e54db8810bd3e57c697a1befe5cb44579084d0ebfa245bb
|
|
| MD5 |
ba64fa2097315bf53b17b1813e219e5c
|
|
| BLAKE2b-256 |
78847027a2611c6303f4858148dcf4245e91045d59402f736e6a7b738a4229f3
|