Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

protein-interaction-network-analysis蛋白质相互作用网络分析

Agent Skill

protein-interaction-network-analysis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

28,330

周安装

790

GitHub Stars

971

下载量

6,442
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:protein-interaction-network-analysis(蛋白质相互作用网络分析)
来源仓库:https://github.com/wu-yc/labclaw
仓库路径:skills/protein-interaction-network-analysis
安装命令:
npx skills add https://github.com/wu-yc/labclaw --skill 'Protein Interaction Network Analysis'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/wu-yc/labclaw --skill 'Protein Interaction Network Analysis'

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息聚合与过滤,适用于蛋白质网络分析任务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态。
  • 安装前建议核实是否会触发联网、命令执行或文件读写等敏感操作。
  • protein-interaction-network-analysis 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Protein Interaction Network Analysis

Comprehensive protein interaction network analysis using ToolUniverse tools. Analyzes protein networks through a 4-phase workflow: identifier mapping, network retrieval, enrichment analysis, and optional structural data.

Features

Identifier Mapping - Convert protein names to database IDs (STRING, UniProt, Ensembl) ✅ Network Retrieval - Get interaction networks with confidence scores (0-1.0) ✅ Functional Enrichment - GO terms, KEGG pathways, Reactome pathways ✅ PPI Enrichment - Test if proteins form functional modules ✅ Structural Data - Optional SAXS/SANS solution structures (SASBDB) ✅ Fallback Strategy - STRING primary (no API key) → BioGRID secondary (if key available)

Databases Used

DatabaseCoverageAPI KeyPurpose
STRING14M+ proteins, 5,000+ organisms❌ Not requiredPrimary interaction source
BioGRID2.3M+ interactions, 80+ organisms✅ RequiredFallback, curated data
SASBDB2,000+ SAXS/SANS entries❌ Not requiredSolution structures

Quick Start

Basic Usage

from tooluniverse import ToolUniverse
from python_implementation import analyze_protein_network

# Initialize ToolUniverse
tu = ToolUniverse()

# Analyze protein network
result = analyze_protein_network(
    tu=tu,
    proteins=["TP53", "MDM2", "ATM", "CHEK2"],
    species=9606,  # Human
    confidence_score=0.7  # High confidence
)

# Access results
print(f"Mapped: {len(result.mapped_proteins)} proteins")
print(f"Network: {result.total_interactions} interactions")
print(f"Enrichment: {len(result.enriched_terms)} GO terms")
print(f"PPI p-value: {result.ppi_enrichment.get('p_value', 1.0):.2e}")

Expected Output

🔍 Phase 1: Mapping 4 protein identifiers...
✅ Mapped 4/4 proteins (100.0%)

🕸️  Phase 2: Retrieving interaction network...
✅ STRING: Retrieved 6 interactions

🧬 Phase 3: Performing enrichment analysis...
✅ Found 245 enriched GO terms (FDR < 0.05)
✅ PPI enrichment significant (p=3.45e-05)

✅ Analysis complete!

Use Cases

1. Single Protein Analysis

Discover interaction partners for a protein of interest:

result = analyze_protein_network(
    tu=tu,
    proteins=["TP53"],  # Single protein
    species=9606,
    confidence_score=0.7
)

# Top 5 partners will be in the network
for edge in result.network_edges[:5]:
    print(f"{edge['preferredName_A']} ↔ {edge['preferredName_B']} "
          f"(score: {edge['score']})")

2. Protein Complex Validation

Test if proteins form a functional complex:

# DNA damage response proteins
proteins = ["TP53", "ATM", "CHEK2", "BRCA1", "BRCA2"]

result = analyze_protein_network(tu=tu, proteins=proteins)

# Check PPI enrichment
if result.ppi_enrichment.get("p_value", 1.0) < 0.05:
    print("✅ Proteins form functional module!")
    print(f"   Expected edges: {result.ppi_enrichment['expected_number_of_edges']:.1f}")
    print(f"   Observed edges: {result.ppi_enrichment['number_of_edges']}")
else:
    print("⚠️  Proteins may be unrelated")

3. Pathway Discovery

Find enriched pathways for a protein set:

result = analyze_protein_network(
    tu=tu,
    proteins=["MAPK1", "MAPK3", "RAF1", "MAP2K1"],  # MAPK pathway
    confidence_score=0.7
)

# Show top enriched processes
print("\nTop Enriched Pathways:")
for term in result.enriched_terms[:10]:
    print(f"  {term['term']}: p={term['p_value']:.2e}, FDR={term['fdr']:.2e}")

4. Multi-Protein Network Analysis

Build complete interaction network for multiple proteins:

# Apoptosis regulators
proteins = ["TP53", "BCL2", "BAX", "CASP3", "CASP9"]

result = analyze_protein_network(
    tu=tu,
    proteins=proteins,
    confidence_score=0.7
)

# Export network for Cytoscape
import pandas as pd
df = pd.DataFrame(result.network_edges)
df.to_csv("apoptosis_network.tsv", sep="\t", index=False)

5. With BioGRID Validation

Use BioGRID for experimentally validated interactions:

# Requires BIOGRID_API_KEY in environment
result = analyze_protein_network(
    tu=tu,
    proteins=["TP53", "MDM2"],
    include_biogrid=True  # Enable BioGRID fallback
)

print(f"Primary source: {result.primary_source}")  # "STRING" or "BioGRID"

6. Including Structural Data

Add SAXS/SANS solution structures:

result = analyze_protein_network(
    tu=tu,
    proteins=["TP53"],
    include_structure=True  # Query SASBDB
)

if result.structural_data:
    print(f"\nFound {len(result.structural_data)} SAXS/SANS entries:")
    for entry in result.structural_data:
        print(f"  {entry.get('sasbdb_id')}: {entry.get('title')}")

Parameters

analyze_protein_network() Parameters

ParameterTypeDefaultDescription
tuToolUniverseRequiredToolUniverse instance
proteinslist[str]RequiredProtein identifiers (gene symbols, UniProt IDs)
speciesint9606NCBI taxonomy ID (9606=human, 10090=mouse)
confidence_scorefloat0.7Min interaction confidence (0-1). 0.4=low, 0.7=high, 0.9=very high
include_biogridboolFalseUse BioGRID if STRING fails (requires API key)
include_structureboolFalseInclude SASBDB structural data (slower)
suppress_warningsboolTrueSuppress ToolUniverse loading warnings

Species IDs (Common)

  • 9606 - Homo sapiens (human)
  • 10090 - Mus musculus (mouse)
  • 10116 - Rattus norvegicus (rat)
  • 7227 - Drosophila melanogaster (fruit fly)
  • 6239 - Caenorhabditis elegans (worm)
  • 7955 - Danio rerio (zebrafish)
  • 559292 - Saccharomyces cerevisiae (yeast)

Confidence Score Guidelines

ScoreLevelDescriptionUse Case
0.15Very lowAll evidenceExploratory, hypothesis generation
0.4LowMedium evidenceDefault STRING threshold
0.7HighStrong evidenceRecommended - reliable interactions
0.9Very highStrongest evidenceCore interactions only

Results Structure

ProteinNetworkResult Object

@dataclass
class ProteinNetworkResult:
    # Phase 1: Identifier mapping
    mapped_proteins: List[Dict[str, Any]]
    mapping_success_rate: float

    # Phase 2: Network retrieval
    network_edges: List[Dict[str, Any]]
    total_interactions: int

    # Phase 3: Enrichment analysis
    enriched_terms: List[Dict[str, Any]]
    ppi_enrichment: Dict[str, Any]

    # Phase 4: Structural data (optional)
    structural_data: Optional[List[Dict[str, Any]]]

    # Metadata
    primary_source: str  # "STRING" or "BioGRID"
    warnings: List[str]

Network Edge Format (STRING)

{
    "stringId_A": "9606.ENSP00000269305",  # Protein A STRING ID
    "stringId_B": "9606.ENSP00000258149",  # Protein B STRING ID
    "preferredName_A": "TP53",             # Protein A name
    "preferredName_B": "MDM2",             # Protein B name
    "ncbiTaxonId": 9606,                   # Species
    "score": 0.999,                        # Combined confidence (0-1)
    "nscore": 0.0,                         # Neighborhood score
    "fscore": 0.0,                         # Gene fusion score
    "pscore": 0.0,                         # Phylogenetic profile score
    "ascore": 0.947,                       # Coexpression score
    "escore": 0.951,                       # Experimental score
    "dscore": 0.9,                         # Database score
    "tscore": 0.994                        # Text mining score
}

Enrichment Term Format

{
    "category": "Process",                  # GO category
    "term": "GO:0006915",                   # GO term ID
    "description": "apoptotic process",     # Term description
    "number_of_genes": 4,                   # Genes in your set
    "number_of_genes_in_background": 1234, # Genes in genome
    "p_value": 1.23e-05,                    # Enrichment p-value
    "fdr": 0.0012,                          # FDR correction
    "inputGenes": "TP53,MDM2,BAX,CASP3"    # Matching genes
}

Workflow Details

4-Phase Analysis Pipeline

┌─────────────────────────────────────────────────────────────┐
│ Phase 1: Identifier Mapping                                 │
│ ─────────────────────────────────────────────────────────── │
│ STRING_map_identifiers()                                    │
│   • Validates protein names exist in database              │
│   • Converts to STRING IDs for consistency                 │
│   • Returns mapping success rate                           │
└─────────────────────────────────────────────────────────────┘
                            ↓
┌─────────────────────────────────────────────────────────────┐
│ Phase 2: Network Retrieval                                  │
│ ─────────────────────────────────────────────────────────── │
│ PRIMARY: STRING_get_network() (no API key needed)          │
│   • Retrieves all pairwise interactions                    │
│   • Returns confidence scores by evidence type             │
│                                                             │
│ FALLBACK: BioGRID_get_interactions() (if enabled)          │
│   • Used if STRING fails or for validation                 │
│   • Requires BIOGRID_API_KEY                               │
└─────────────────────────────────────────────────────────────┘
                            ↓
┌─────────────────────────────────────────────────────────────┐
│ Phase 3: Enrichment Analysis                                │
│ ─────────────────────────────────────────────────────────── │
│ STRING_functional_enrichment()                              │
│   • GO terms (Process, Component, Function)                │
│   • KEGG pathways                                           │
│   • Reactome pathways                                       │
│   • FDR-corrected p-values                                  │
│                                                             │
│ STRING_ppi_enrichment()                                     │
│   • Tests if proteins interact more than random            │
│   • Returns p-value for functional coherence               │
└─────────────────────────────────────────────────────────────┘
                            ↓
┌─────────────────────────────────────────────────────────────┐
│ Phase 4: Structural Data (Optional)                         │
│ ─────────────────────────────────────────────────────────── │
│ SASBDB_search_entries()                                     │
│   • SAXS/SANS solution structures                           │
│   • Protein flexibility and conformations                   │
│   • Complements crystal/cryo-EM data                       │
└─────────────────────────────────────────────────────────────┘

Installation & Setup

Prerequisites

# Install ToolUniverse (if not already installed)
pip install tooluniverse

# Or with extras
pip install tooluniverse[all]

Optional: BioGRID API Key

For BioGRID fallback functionality:

  1. Register for free API key: https://webservice.thebiogrid.org/
  2. Add to .env file: BIOGRID_API_KEY=your_key_here

Skill Files

tooluniverse-protein-interactions/
├── SKILL.md                    # This file
├── python_implementation.py    # Main implementation
├── QUICK_START.md             # Quick reference
├── DOMAIN_ANALYSIS.md         # Design rationale
├── PHASE2_COMPLETE.md         # Tool testing results
├── PHASE4_IMPLEMENTATION_COMPLETE.md
└── KNOWN_ISSUES.md            # ToolUniverse limitations

Known Limitations

1. ToolUniverse Verbose Output

Issue: ToolUniverse prints 40+ warning messages during analysis.

Workaround: Filter output when running:

python your_script.py 2>&1 | grep -v "Error loading tools"

See KNOWN_ISSUES.md for details.

2. BioGRID Requires API Key

BioGRID fallback requires free API key. STRING works without any API key.

3. SASBDB May Have API Issues

SASBDB endpoints occasionally return errors. Structural data is optional.

Performance

Typical Execution Times

OperationTimeNotes
Identifier mapping1-2 secFor 5 proteins
Network retrieval2-3 secDepends on network size
Enrichment analysis3-5 secFor 374 terms
Full 4-phase analysis6-10 secExcluding ToolUniverse overhead

Note: Add 4-8 seconds per tool call for ToolUniverse loading (framework limitation).

Optimization Tips

  1. Disable structural data if not needed: include_structure=False
  2. Use higher confidence scores to reduce network size: confidence_score=0.9
  3. Filter output to avoid processing warning messages
  4. Reuse ToolUniverse instance across multiple analyses

Troubleshooting

"Error: 'protein_ids' is a required property"

Fixed in this skill - All parameter names verified in Phase 2 testing.

No interactions found

  • Check protein names are correct (case-sensitive)
  • Try lower confidence score: confidence_score=0.4
  • Verify species ID is correct
  • Check if proteins actually interact (not all proteins have known interactions)

BioGRID not working

Slow performance

  • This is expected (see KNOWN_ISSUES.md)
  • ToolUniverse framework reloads tools on every call
  • Use output filtering to reduce processing time

Examples

See python_implementation.py for:

  • example_tp53_analysis() - Complete TP53 network analysis
  • analyze_protein_network() - Main function with all options
  • ProteinNetworkResult - Result data structure

References

Support

For issues with:

  • This skill: Check KNOWN_ISSUES.md and troubleshooting section
  • ToolUniverse framework: See TOOLUNIVERSE_BUG_REPORT.md
  • API errors: Check database status pages (STRING, BioGRID, SASBDB)

License

Same as ToolUniverse framework license.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.53%
按下载量换算2,353

Claude

30.21%
按下载量换算1,946

Cursor

17.12%
按下载量换算1,103

Gemini CLI

8.11%
按下载量换算522

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills