/v1/immunology/mhc_bindingimport requests
API_KEY = "sk-sci-your-key-here"
url = "https://scirouter.ai/v1/immunology/mhc_binding"
response = requests.post(url, json={
"peptides": ["YLQPRTFLL", "KLPDDFTGCV"],
"hla_alleles": ["HLA-A*02:01", "HLA-B*07:02"]
}, headers={"Authorization": f"Bearer {API_KEY}"})
results = response.json()
for r in results["predictions"]:
print(f"{r['peptide']} + {r['allele']}: "
f"{r['affinity_nm']:.1f} nM ({r['rank']:.2f}%)")Cancer neoantigen identification
Personalized vaccine design
T-cell epitope mapping
Immunogenicity assessment