Wrap epiTCR (and its with-MHC variant epiTCR-BH) as an mhctools pMHC:TCR binding predictor (pMHC_TCR_binding).
Upstream: https://github.com/ddiem-ri-4D/epiTCR — a Random-Forest TCR–epitope binding predictor.
Pretrained weights: shipped in-repo — models/rdforestWithoutMHCModel.pickle.zip (~8.5 MB) and models/rdforestWithMHCModel.pickle.zip (~9 MB). No retraining needed.
Framework / deps: scikit-learn 1.1 (RandomForest). Very light — but sklearn pickles are version-sensitive, so pin scikit-learn==1.1 for loading.
License: CC-BY-NC — non-commercial. Fine for a wrapper, but weights shouldn't be redistributed for commercial use; favor the "user brings their own clone" pattern.
Inputs / output:
- epiTCR (
--chain ce): CDR3β + epitope → binding probability (mhc_dependence="none").
- epiTCR-BH (
--chain cem): CDR3β + epitope + MHC → binding probability (mhc_dependence="single_allele"). Needs an HLA→pseudo-sequence step (same idea as netMHCpan pseudo-seqs).
Ease: Easy (epiTCR) to easy-moderate (epiTCR-BH, due to the HLA pseudo-seq preprocessing). Pure sklearn, one-line predict.py.
Suggested wrapping approach: in-process via joblib/pickle load (sklearn is already effectively available), or subprocess. Expose both the with- and without-MHC configs; epiTCR-BH is one of the few benchmark methods that actually consumes an MHC allele.
Surfaced from a survey of TCREpitopeBenchmark for methods with public pretrained weights that run easily for inference.
https://claude.ai/code/session_01LZahFhBSCiehXTESCYQ7wG
Wrap epiTCR (and its with-MHC variant epiTCR-BH) as an
mhctoolspMHC:TCR binding predictor (pMHC_TCR_binding).Upstream: https://github.com/ddiem-ri-4D/epiTCR — a Random-Forest TCR–epitope binding predictor.
Pretrained weights: shipped in-repo —
models/rdforestWithoutMHCModel.pickle.zip(~8.5 MB) andmodels/rdforestWithMHCModel.pickle.zip(~9 MB). No retraining needed.Framework / deps: scikit-learn 1.1 (RandomForest). Very light — but sklearn pickles are version-sensitive, so pin
scikit-learn==1.1for loading.License: CC-BY-NC — non-commercial. Fine for a wrapper, but weights shouldn't be redistributed for commercial use; favor the "user brings their own clone" pattern.
Inputs / output:
--chain ce): CDR3β + epitope → binding probability (mhc_dependence="none").--chain cem): CDR3β + epitope + MHC → binding probability (mhc_dependence="single_allele"). Needs an HLA→pseudo-sequence step (same idea as netMHCpan pseudo-seqs).Ease: Easy (epiTCR) to easy-moderate (epiTCR-BH, due to the HLA pseudo-seq preprocessing). Pure sklearn, one-line
predict.py.Suggested wrapping approach: in-process via
joblib/pickleload (sklearn is already effectively available), or subprocess. Expose both the with- and without-MHC configs; epiTCR-BH is one of the few benchmark methods that actually consumes an MHC allele.Surfaced from a survey of TCREpitopeBenchmark for methods with public pretrained weights that run easily for inference.
https://claude.ai/code/session_01LZahFhBSCiehXTESCYQ7wG