Logo di Protein Interactions

Protein Interactions

Community
ssinder
protein-interactions

Analyzes protein-ligand and protein-protein interactions from PLIP XML reports and AlphaFold model packages using a self-contained standard-library XML parser: extracts residue-level salt bridges, hydrogen bonds, hydrophobic, pi-stacking, water bridges, halogen bonds and metal complexes, ranks hotspot residues, and emits Mermaid network graphs plus PyMOL annotation scripts. This skill should be used when interaction detection, hotspot ranking, PLIP report parsing, interaction network visualisation or AlphaFold confidence analysis is requested.

Panoramica

Autoressinder
Repositorybioinformatics-agent-skills
Nome della skillprotein-interactions
Stelle
75
Fork
2
File inclusi
7
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 7 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da ssinder su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Protein Interactions in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/ssinder/bioinformatics-agent-skills/tree/main/skills/protein-interactions
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ssinder/bioinformatics-agent-skills.git /tmp/bioinformatics-agent-skills
mkdir -p .claude/skills
cp -r /tmp/bioinformatics-agent-skills/skills/protein-interactions .claude/skills/protein-interactions
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Protein Interactions in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Protein Interactions non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Protein Interactions non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Protein Interaction Analysis

Overview

This skill turns PLIP (Protein-Ligand Interaction Profiler) reports into structured, residue-level interaction records and visualisations. The XML parsing is implemented with the Python standard library (xml.etree.ElementTree) only — no lxml, no Biopython, no network access — so a report produced on a workstation can be analysed anywhere. On top of the parsed records the skill computes per-type and per-residue statistics, renders an interaction network as a Mermaid flowchart with per-interaction-type colouring, and generates a ready-to-run PyMOL script that selects and labels the interacting residues in the 3D structure.

AlphaFold model packages (*.zip from the AlphaFold Protein Structure Database) can be fed in directly: the best model is picked by predicted TM-score confidence (pTM + 0.5 × ipTM) and the per-model confidence JSON is summarised.

When to Use This Skill

  • Parsing a PLIP report.xml into machine-readable residue-level interactions
  • Ranking hotspot residues by interaction count on receptor and ligand sides
  • Detecting salt bridges / hydrogen bonds / π-stacking / water bridges without PLIP
  • Selecting the best AlphaFold model from a multi-model package and reporting pLDDT
  • Generating a Mermaid interaction graph for reports, slides or documentation
  • Generating PyMOL commands that visualise and label the interacting residues

Quick Start

bash
# 解析已有 PLIP 报告
python scripts/analyze_interactions.py --input report.xml --output results/

# 同时生成 Mermaid 网络图与 PyMOL 标注脚本
python scripts/analyze_interactions.py --input report.xml \
    --output results/ --make-mermaid --make-pymol

# 直接运行 PLIP 分析结构(需已安装 plip)
python scripts/analyze_interactions.py --input 1crn.pdb --run-plip \
    --plip-structure 1crn.pdb --output results/

# 分析 AlphaFold 模型包(自动挑选置信度最高的模型)
python scripts/analyze_interactions.py --input AF-P69905-F1-model_v4.zip \
    --output results/ --make-mermaid

Workflow

  1. Collect — --input accepts a PLIP report.xml, a directory containing report.xml files, or an AlphaFold *.zip package. Directories are scanned recursively for report.xml.
  2. Parse — plip_parser.py walks the XML with xml.etree.ElementTree, handling both the modern attribute-style schema (<site ... onf="A:ARG+102:NE"> with child <salt_bridge> elements) and the legacy element-style schema (<resnr>, <restype>, <reschain> with _lig suffixed variants). Residue labels are decoded into chain / resname / resnr / atom fields, distinguishing protein residues (A:ARG+102:NE) from ligand atoms (LIG:1:CL1).
  3. Summarise — summarize_interactions counts interactions per type; the entry script additionally ranks receptor and ligand residues by participation count to identify hotspots.
  4. Visualise — interaction_network.py renders the Mermaid flowchart (nodes = residues grouped into receptor / ligand subgraphs, edges = individual interactions coloured by type via linkStyle) and the PyMOL script (select / show sticks / color / label / distance commands).
  5. Report — writes interaction_analysis.json and interactions_residue_level.csv, one row per interaction.

Parameters

ParameterDefaultDescription
--inputrequiredreport.xml、包含报告的目录,或 AlphaFold *.zip
--outputresults/输出目录
--run-plipoff对输入结构运行 PLIP
--plip-structure—传给 PLIP 的结构文件(PDB)
--plip-executable自动查找 plipPLIP 可执行文件路径
--plip-timeout600PLIP 超时秒数
--make-mermaidoff生成 Mermaid 相互作用网络图
--make-pymoloff生成 PyMOL 标注脚本
--formatbothjson / csv / both
--top-residues10统计中展示的热门残基数量

Outputs

FileContent
interaction_analysis.json每个报告的完整结果:相互作用记录、按类型统计、热门残基
interactions_residue_level.csv残基级扁平表(受体残基、配体残基、类型、原子、距离)
*_interaction_network.mdMermaid flowchart 网络图(启用 --make-mermaid)
*_annotation.pmlPyMOL 标注脚本(启用 --make-pymol)

Validation

  • Record count sanity: a PLIP report on a ligand with a buried binding site normally yields tens to a few hundred interactions; 0 records for a non-empty report.xml means the schema was not recognised — inspect the file.
  • Residue label integrity: decoded labels must keep resnr as an integer and resname as a three-letter code; protein labels contain a + separator (A:ARG+102), ligand labels do not.
  • Hotspot plausibility: a binding hotspot usually shows ≥ 3 interactions (e.g. ARG102 engaging the ligand in 3 distinct contacts). A flat histogram of one interaction per residue usually means the receptor/ligand roles were swapped or hydrogens were stripped from the input structure.
  • Type cross-check: salt bridges require oppositely charged side chains (ARG/LYS versus ASP/GLU); a salt bridge between two ARG residues is a parsing error, not a result.
  • AlphaFold confidence: pLDDT > 90 is high confidence, 70-90 is acceptable, < 70 marks a disordered or unreliable region; a mean pLDDT below 70 means the model should not be used for interaction analysis at all.
  • Network graph integrity: the Mermaid file must contain one linkStyle line per edge; a mismatch means edges were dropped during rendering.

References

  • references/methodology.md — PLIP XML schema, interaction definitions, statistics and rendering
  • references/troubleshooting.md — common failures and how to diagnose them

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Protein Interactions?

Analyzes protein-ligand and protein-protein interactions from PLIP XML reports and AlphaFold model packages using a self-contained standard-library XML parser: extracts residue-level salt bridges, hydrogen bonds, hydrophobic, pi-stacking, water bridges, halogen bonds and metal complexes, ranks hotspot residues, and emits Mermaid network graphs plus PyMOL annotation scripts. This skill should be used when interaction detection, hotspot ranking, PLIP report parsing, interaction network visualisation or AlphaFold confidence analysis is requested.

Perché usare Protein Interactions su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Protein Interactions è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Protein Interactions in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ssinder/bioinformatics-agent-skills/tree/main/skills/protein-interactions. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Protein Interactions?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Protein Interactions?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Protein Interactions: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Protein Interactions è gratuita?

Sì. È pubblicata su GitHub da ssinder con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇