Immunogenicity MHC 2¶
Predicts MHC class II peptide-binding immunogenicity from provided protein structures. It scans each protein sequence using a sliding window to generate peptides, scores their predicted binding to a specified MHC-II allele, and returns a consolidated score table.

Usage¶
Use this node when you need to assess potential MHC-II epitope immunogenicity for one or more protein structures. Provide one or more PDBs, choose an MHC-II allele and peptide window size, and run in PROD for real predictions, MOCK for quick demos, or TEST for faster limited runs. The output CSV can be used for downstream filtering, ranking, or annotation of candidate designs.
Inputs¶
| Field | Required | Type | Description | Example | 
|---|---|---|---|---|
| pdb | True | PDB | Protein structures to evaluate. Accepts one or more PDBs keyed by name. | {'candidate_A.pdb': 'ATOM ...', 'candidate_B.pdb': 'ATOM ...'} | 
| allele_name | True | STRING | MHC class II allele to evaluate binding against. | DRB1*01:01 | 
| window_size | True | INT | Sliding window length (peptide size) used to generate candidate epitopes from the sequence. | 15 | 
| mode | True | ENUM['MOCK','PROD','TEST'] | Execution mode. MOCK uses predefined results for demonstration, PROD runs full prediction, TEST uses limited inputs for faster runs. | PROD | 
Outputs¶
| Field | Type | Description | Example | 
|---|---|---|---|
| score.csv | CSV | Table of predicted MHC-II immunogenicity metrics for all peptides generated from each input structure. | protein,allele,window_size,start,end,peptide,score candidate_A.pdb,DRB1*01:01,15,5,19,ABCDE... ,0.87 candidate_A.pdb,DRB1*01:01,15,6,20,BCDEF... ,0.65 ... | 
Important Notes¶
- Input PDB must be provided as a mapping from names to PDB contents; each entry is processed independently.
- Valid window_size range is 11 to 30; default is 15.
- allele_name should be a valid MHC-II allele (for example, DRB1*01:01).
- In TEST mode, processing is limited to the first provided structure to speed up execution. The window_size is not automatically reduced for this node in TEST mode.
- MOCK mode returns predefined example data useful for demos and interface testing.
- Output CSV consolidates peptide scores for all inputs; expect multiple rows per protein corresponding to each sliding window peptide.
Troubleshooting¶
- No output or empty CSV: Ensure at least one valid PDB input is provided and allele_name is correctly formatted.
- Unexpectedly long runtime: Reduce the number of input structures, choose TEST mode for a quick sanity check, or increase peptide window size cautiously to reduce the total number of windows.
- Invalid window_size error: Pick an integer within the allowed range (11–30).
- Allele not supported: Verify the allele_name string is correctly specified (e.g., DRB1*04:01) and supported by the underlying service.
- Mixed or duplicate protein names: Provide unique keys for each PDB in the input mapping to avoid overwriting results.
Example Pipelines¶
