/bio-immunoinformatics-epitope-prediction
Predict B-cell and T-cell epitopes using BepiPred, IEDB tools, and structure-based methods for vaccine and antibody design. Identify immunogenic regions in antigens. Use when designing vaccines, mapping antibody binding sites, or predicting immunogenic peptides.
Claude Code
$ npx -y skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction --agent claude-code
Codex
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction -a codex -y
Cursor
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction -a cursor -y
Gemini CLI
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction -a gemini-cli -y
GitHub Copilot
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction -a github-copilot -y
OpenCode
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction -a opencode -y
Windsurf
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-immunoinformatics-epitope-prediction -a windsurf -y
SKILL.md
bio-immunoinformatics-epitope-prediction.SKILL.mdname: bio-immunoinformatics-epitope-prediction
description: Predict B-cell and T-cell epitopes using BepiPred, IEDB tools, and structure-based methods for vaccine and antibody design. Identify immunogenic regions in antigens. Use when designing vaccines, mapping antibody binding sites, or predicting immunogenic peptides.
tool_type: python
primary_tool: BepiPred
Version Compatibility
Reference examples tested with: pandas 2.2+
Before using code patterns, verify installed versions match. If versions differ:
- Python: `pip show <package>` then `help(module.function)` to check signatures
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Epitope Prediction
**"Predict B-cell and T-cell epitopes in my protein"** → Identify immunogenic regions in antigens for vaccine design using sequence-based and structure-based prediction tools.
- Python: IEDB API for B-cell epitope prediction (BepiPred)
- Python: `mhcflurry` for T-cell epitope MHC binding prediction
B-Cell Epitope Prediction
**Goal:** Predict linear B-cell epitopes from protein sequence using IEDB prediction tools.
**Approach:** Submit sequence to IEDB B-cell prediction API with selectable method (BepiPred-2.0 recommended) and parse tab-separated results.
BepiPred-2.0 (Sequence-Based)
import requests
def predict_bcell_epitopes_iedb(sequence, method='bepipred2'):
'''Predict B-cell epitopes using IEDB API
Methods:
- bepipred2: Deep learning (recommended)
- bepipred: Original BepiPred
- emini: Surface accessibility
- kolaskar-tongaonkar: Antigenicity
- parker: Hydrophilicity
BepiPred-2.0 uses deep learning on crystal structures
Threshold: >0.5 predicted as epitope (default)
'''
url = 'http://tools-cluster-interface.iedb.org/tools_api/bcell/'
params = {
'method': method,
'sequence_text': sequence
}
response = requests.post(url, data=params)
# Parse response (tab-separated)
lines = response.text.strip().split('\n')
header = lines[0].split('\t')
data = [line.split('\t') for line in lines[1:]]
return header, dataParse BepiPred Results
import pandas as pd
def parse_bepipred_results(header, data, threshold=0.5):
'''Parse BepiPred output and identify epitope regions
Output columns:
- Position: Amino acid position
- Residue: Amino acid
- Score: BepiPred score (higher = more likely epitope)
Epitope threshold:
- >0.5: Default, balanced sensitivity/specificity
- >0.6: More stringent, fewer false positives
- >0.4: More sensitive, more candidates
'''
df = pd.DataFrame(data, columns=header)
df['Score'] = df['Score'].astype(float)
df['Position'] = df['Position'].astype(int)
# Identify epitope regions
df['is_epitope'] = df['Score'] > threshold
# Find continuous epitope regions
epitopes = []
current_epitope = []
for _, row in df.iterrows():
if row['is_epitope']:
current_epitope.append(row)
else:
if len(current_epitope) >= 5: # Minimum epitope length
epitopes.append({
'start': current_epitope[0]['Position'],
'end': current_epitope[-1]['Position'],
'sequence': ''.join(r['Residue'] for r in current_epitope),
'avg_score': sum(r['Score'] for r in current_epitope) / len(current_epitope)
})
current_epitope = []
return df, epitopesT-Cell Epitope Prediction
**Goal:** Predict T-cell epitopes by MHC-I binding across multiple HLA alleles.
**Approach:** Query IEDB MHC-I API for each allele-sequence combination and aggregate predictions.
def predict_tcell_epitopes_iedb(sequence, alleles, method='recommended'):
'''Predict T-cell epitopes using IEDB
MHC-I methods:
- recommended: Consensus of methods
- netmhcpan_ba: NetMHCpan binding affinity
- netmhcpan_el: NetMHCpan eluted ligand
MHC-II methods:
- recommended
- netmhciipan
'''
url = 'http://tools-cluster-interface.iedb.org/tools_api/mhci/'
results = []
for allele in alleles:
params = {
'method': method,
'sequence_text': sequence,
'allele': allele,
'length': '9' # Most common for MHC-I
}
response = requests.post(url, data=params)
# Parse results...
return resultsLinear vs Conformational Epitopes
**Goal:** Classify epitopes as linear (continuous) or conformational (discontinuous) and predict structure-based epitopes.
**Approach:** Distinguish by residue continuity in primary sequence; for conformational epitopes, use structure-based tools (DiscoTope, ElliPro) via web servers.
def classify_epitope_type(epitope_info):
'''Classify epitope as linear or conformational
Linear (continuous) epitopes:
- Consecutive amino acids in primary sequence
- ~10% of B-cell epitopes
- Easier to predict from sequence
Conformational (discontinuous) epitopes:
- Non-consecutive residues brought together by folding
- ~90% of B-cell epitopes
- Requires structure for prediction
'''
pass
def predict_conformational_epitopes(pdb_file, chain='A'):
'''Predict conformational B-cell epitopes from structure
Uses surface accessibility and protrusion index.
Requires 3D structure (PDB/mmCIF).
Tools:
- DiscoTope 2.0 (structure-based)
- ElliPro (protrusion)
- SEPPA 3.0
'''
# Structure-based prediction requires specialized tools
# Usually accessed via web servers
print('For conformational epitopes:')
print('- DiscoTope: http://tools.iedb.org/discotope/')
print('- ElliPro: http://tools.iedb.org/ellipro/')
passCombine Multiple Predictions
**Goal:** Improve epitope
Read more
name: bio-immunoinformatics-epitope-prediction description: Predict B-cell and T-cell epitopes using BepiPred, IEDB tools, and structure-based methods for vaccine and antibody design. Identify immunogenic regions in antigens. Use when designing vaccines, mapping antibody binding sites, or predicting immunogenic peptides. tool_type: python primary_tool: BepiPred
Version Compatibility
Reference examples tested with: pandas 2.2+
Before using code patterns, verify installed versions match. If versions differ:
- Python: `pip show <package>` then `help(module.function)` to check signatures
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Epitope Prediction
**"Predict B-cell and T-cell epitopes in my protein"** → Identify immunogenic regions in antigens for vaccine design using sequence-based and structure-based prediction tools.
- Python: IEDB API for B-cell epitope prediction (BepiPred)
- Python: `mhcflurry` for T-cell epitope MHC binding prediction
B-Cell Epitope Prediction
**Goal:** Predict linear B-cell epitopes from protein sequence using IEDB prediction tools.
**Approach:** Submit sequence to IEDB B-cell prediction API with selectable method (BepiPred-2.0 recommended) and parse tab-separated results.
BepiPred-2.0 (Sequence-Based)
import requests
def predict_bcell_epitopes_iedb(sequence, method='bepipred2'):
'''Predict B-cell epitopes using IEDB API
Methods:
- bepipred2: Deep learning (recommended)
- bepipred: Original BepiPred
- emini: Surface accessibility
- kolaskar-tongaonkar: Antigenicity
- parker: Hydrophilicity
BepiPred-2.0 uses deep learning on crystal structures
Threshold: >0.5 predicted as epitope (default)
'''
url = 'http://tools-cluster-interface.iedb.org/tools_api/bcell/'
params = {
'method': method,
'sequence_text': sequence
}
response = requests.post(url, data=params)
# Parse response (tab-separated)
lines = response.text.strip().split('\n')
header = lines[0].split('\t')
data = [line.split('\t') for line in lines[1:]]
return header, dataParse BepiPred Results
import pandas as pd
def parse_bepipred_results(header, data, threshold=0.5):
'''Parse BepiPred output and identify epitope regions
Output columns:
- Position: Amino acid position
- Residue: Amino acid
- Score: BepiPred score (higher = more likely epitope)
Epitope threshold:
- >0.5: Default, balanced sensitivity/specificity
- >0.6: More stringent, fewer false positives
- >0.4: More sensitive, more candidates
'''
df = pd.DataFrame(data, columns=header)
df['Score'] = df['Score'].astype(float)
df['Position'] = df['Position'].astype(int)
# Identify epitope regions
df['is_epitope'] = df['Score'] > threshold
# Find continuous epitope regions
epitopes = []
current_epitope = []
for _, row in df.iterrows():
if row['is_epitope']:
current_epitope.append(row)
else:
if len(current_epitope) >= 5: # Minimum epitope length
epitopes.append({
'start': current_epitope[0]['Position'],
'end': current_epitope[-1]['Position'],
'sequence': ''.join(r['Residue'] for r in current_epitope),
'avg_score': sum(r['Score'] for r in current_epitope) / len(current_epitope)
})
current_epitope = []
return df, epitopesT-Cell Epitope Prediction
**Goal:** Predict T-cell epitopes by MHC-I binding across multiple HLA alleles.
**Approach:** Query IEDB MHC-I API for each allele-sequence combination and aggregate predictions.
def predict_tcell_epitopes_iedb(sequence, alleles, method='recommended'):
'''Predict T-cell epitopes using IEDB
MHC-I methods:
- recommended: Consensus of methods
- netmhcpan_ba: NetMHCpan binding affinity
- netmhcpan_el: NetMHCpan eluted ligand
MHC-II methods:
- recommended
- netmhciipan
'''
url = 'http://tools-cluster-interface.iedb.org/tools_api/mhci/'
results = []
for allele in alleles:
params = {
'method': method,
'sequence_text': sequence,
'allele': allele,
'length': '9' # Most common for MHC-I
}
response = requests.post(url, data=params)
# Parse results...
return resultsLinear vs Conformational Epitopes
**Goal:** Classify epitopes as linear (continuous) or conformational (discontinuous) and predict structure-based epitopes.
**Approach:** Distinguish by residue continuity in primary sequence; for conformational epitopes, use structure-based tools (DiscoTope, ElliPro) via web servers.
def classify_epitope_type(epitope_info):
'''Classify epitope as linear or conformational
Linear (continuous) epitopes:
- Consecutive amino acids in primary sequence
- ~10% of B-cell epitopes
- Easier to predict from sequence
Conformational (discontinuous) epitopes:
- Non-consecutive residues brought together by folding
- ~90% of B-cell epitopes
- Requires structure for prediction
'''
pass
def predict_conformational_epitopes(pdb_file, chain='A'):
'''Predict conformational B-cell epitopes from structure
Uses surface accessibility and protrusion index.
Requires 3D structure (PDB/mmCIF).
Tools:
- DiscoTope 2.0 (structure-based)
- ElliPro (protrusion)
- SEPPA 3.0
'''
# Structure-based prediction requires specialized tools
# Usually accessed via web servers
print('For conformational epitopes:')
print('- DiscoTope: http://tools.iedb.org/discotope/')
print('- ElliPro: http://tools.iedb.org/ellipro/')
passCombine Multiple Predictions
**Goal:** Improve epitope
Other skills on openclaw-medical-skills.
adaptyv
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental…
adhd-daily-planner
Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time…
aeon
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting,…
agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data,…
More skills from other plugins.
paddleocr-doc-parsing
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
13c-metabolic-flux
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…
Questions about bio-immunoinformatics-epitope-prediction.
- Which coding agents can use bio-immunoinformatics-epitope-prediction?
- bio-immunoinformatics-epitope-prediction installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

