[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CP4RC9WMBPN47KRE199TKV":3,"skill-same:01M7CP4RC9WMBPN47KRE199TKV":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CP4RC9WMBPN47KRE199TKV","string-database",null,"Query STRING API for protein-protein interactions (59M proteins, 20B interactions). Network analysis, GO\u002FKEGG enrichment, interaction discovery, 5000+ species, for systems biology.","Carchaloneo22\u002FClaude-Code-template","Carchaloneo22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F159488757?v=4","01M7CK5MQXAFZE3W7SAP69KNYR","Carlos Chaparro","01M7CK5MRFE26CDPEQDN5RSQPK",2,"MIT","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fstring-database\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: string-database\ndescription: \"Query STRING API for protein-protein interactions (59M proteins, 20B interactions). Network analysis, GO\u002FKEGG enrichment, interaction discovery, 5000+ species, for systems biology.\"\n---\n\n# STRING Database\n\n## Overview\n\nSTRING is a comprehensive database of known and predicted protein-protein interactions covering 59M proteins and 20B+ interactions across 5000+ organisms. Query interaction networks, perform functional enrichment, discover partners via REST API for systems biology and pathway analysis.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Retrieving protein-protein interaction networks for single or multiple proteins\n- Performing functional enrichment analysis (GO, KEGG, Pfam) on protein lists\n- Discovering interaction partners and expanding protein networks\n- Testing if proteins form significantly enriched functional modules\n- Generating network visualizations with evidence-based coloring\n- Analyzing homology and protein family relationships\n- Conducting cross-species protein interaction comparisons\n- Identifying hub proteins and network connectivity patterns\n\n## Quick Start\n\nThe skill provides:\n1. Python helper functions (`scripts\u002Fstring_api.py`) for all STRING REST API operations\n2. Comprehensive reference documentation (`references\u002Fstring_reference.md`) with detailed API specifications\n\nWhen users request STRING data, determine which operation is needed and use the appropriate function from `scripts\u002Fstring_api.py`.\n\n## Core Operations\n\n### 1. Identifier Mapping (`string_map_ids`)\n\nConvert gene names, protein names, and external IDs to STRING identifiers.\n\n**When to use**: Starting any STRING analysis, validating protein names, finding canonical identifiers.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_map_ids\n\n# Map single protein\nresult = string_map_ids('TP53', species=9606)\n\n# Map multiple proteins\nresult = string_map_ids(['TP53', 'BRCA1', 'EGFR', 'MDM2'], species=9606)\n\n# Map with multiple matches per query\nresult = string_map_ids('p53', species=9606, limit=5)\n```\n\n**Parameters**:\n- `species`: NCBI taxon ID (9606 = human, 10090 = mouse, 7227 = fly)\n- `limit`: Number of matches per identifier (default: 1)\n- `echo_query`: Include query term in output (default: 1)\n\n**Best practice**: Always map identifiers first for faster subsequent queries.\n\n### 2. Network Retrieval (`string_network`)\n\nGet protein-protein interaction network data in tabular format.\n\n**When to use**: Building interaction networks, analyzing connectivity, retrieving interaction evidence.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_network\n\n# Get network for single protein\nnetwork = string_network('9606.ENSP00000269305', species=9606)\n\n# Get network with multiple proteins\nproteins = ['9606.ENSP00000269305', '9606.ENSP00000275493']\nnetwork = string_network(proteins, required_score=700)\n\n# Expand network with additional interactors\nnetwork = string_network('TP53', species=9606, add_nodes=10, required_score=400)\n\n# Physical interactions only\nnetwork = string_network('TP53', species=9606, network_type='physical')\n```\n\n**Parameters**:\n- `required_score`: Confidence threshold (0-1000)\n  - 150: low confidence (exploratory)\n  - 400: medium confidence (default, standard analysis)\n  - 700: high confidence (conservative)\n  - 900: highest confidence (very stringent)\n- `network_type`: `'functional'` (all evidence, default) or `'physical'` (direct binding only)\n- `add_nodes`: Add N most connected proteins (0-10)\n\n**Output columns**: Interaction pairs, confidence scores, and individual evidence scores (neighborhood, fusion, coexpression, experimental, database, text-mining).\n\n### 3. Network Visualization (`string_network_image`)\n\nGenerate network visualization as PNG image.\n\n**When to use**: Creating figures, visual exploration, presentations.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_network_image\n\n# Get network image\nproteins = ['TP53', 'MDM2', 'ATM', 'CHEK2', 'BRCA1']\nimg_data = string_network_image(proteins, species=9606, required_score=700)\n\n# Save image\nwith open('network.png', 'wb') as f:\n    f.write(img_data)\n\n# Evidence-colored network\nimg = string_network_image(proteins, species=9606, network_flavor='evidence')\n\n# Confidence-based visualization\nimg = string_network_image(proteins, species=9606, network_flavor='confidence')\n\n# Actions network (activation\u002Finhibition)\nimg = string_network_image(proteins, species=9606, network_flavor='actions')\n```\n\n**Network flavors**:\n- `'evidence'`: Colored lines show evidence types (default)\n- `'confidence'`: Line thickness represents confidence\n- `'actions'`: Shows activating\u002Finhibiting relationships\n\n### 4. Interaction Partners (`string_interaction_partners`)\n\nFind all proteins that interact with given protein(s).\n\n**When to use**: Discovering novel interactions, finding hub proteins, expanding networks.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_interaction_partners\n\n# Get top 10 interactors of TP53\npartners = string_interaction_partners('TP53', species=9606, limit=10)\n\n# Get high-confidence interactors\npartners = string_interaction_partners('TP53', species=9606,\n                                      limit=20, required_score=700)\n\n# Find interactors for multiple proteins\npartners = string_interaction_partners(['TP53', 'MDM2'],\n                                      species=9606, limit=15)\n```\n\n**Parameters**:\n- `limit`: Maximum number of partners to return (default: 10)\n- `required_score`: Confidence threshold (0-1000)\n\n**Use cases**:\n- Hub protein identification\n- Network expansion from seed proteins\n- Discovering indirect connections\n\n### 5. Functional Enrichment (`string_enrichment`)\n\nPerform enrichment analysis across Gene Ontology, KEGG pathways, Pfam domains, and more.\n\n**When to use**: Interpreting protein lists, pathway analysis, functional characterization, understanding biological processes.\n\n**Usage**:\n```python\nfrom scripts.string_enrichment import string_enrichment\n\n# Enrichment for a protein list\nproteins = ['TP53', 'MDM2', 'ATM', 'CHEK2', 'BRCA1', 'ATR', 'TP73']\nenrichment = string_enrichment(proteins, species=9606)\n\n# Parse results to find significant terms\nimport pandas as pd\ndf = pd.read_csv(io.StringIO(enrichment), sep='\\t')\nsignificant = df[df['fdr'] \u003C 0.05]\n```\n\n**Enrichment categories**:\n- **Gene Ontology**: Biological Process, Molecular Function, Cellular Component\n- **KEGG Pathways**: Metabolic and signaling pathways\n- **Pfam**: Protein domains\n- **InterPro**: Protein families and domains\n- **SMART**: Domain architecture\n- **UniProt Keywords**: Curated functional keywords\n\n**Output columns**:\n- `category`: Annotation database (e.g., \"KEGG Pathways\", \"GO Biological Process\")\n- `term`: Term identifier\n- `description`: Human-readable term description\n- `number_of_genes`: Input proteins with this annotation\n- `p_value`: Uncorrected enrichment p-value\n- `fdr`: False discovery rate (corrected p-value)\n\n**Statistical method**: Fisher's exact test with Benjamini-Hochberg FDR correction.\n\n**Interpretation**: FDR \u003C 0.05 indicates statistically significant enrichment.\n\n### 6. PPI Enrichment (`string_ppi_enrichment`)\n\nTest if a protein network has significantly more interactions than expected by chance.\n\n**When to use**: Validating if proteins form functional module, testing network connectivity.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_ppi_enrichment\nimport json\n\n# Test network connectivity\nproteins = ['TP53', 'MDM2', 'ATM', 'CHEK2', 'BRCA1']\nresult = string_ppi_enrichment(proteins, species=9606, required_score=400)\n\n# Parse JSON result\ndata = json.loads(result)\nprint(f\"Observed edges: {data['number_of_edges']}\")\nprint(f\"Expected edges: {data['expected_number_of_edges']}\")\nprint(f\"P-value: {data['p_value']}\")\n```\n\n**Output fields**:\n- `number_of_nodes`: Proteins in network\n- `number_of_edges`: Observed interactions\n- `expected_number_of_edges`: Expected in random network\n- `p_value`: Statistical significance\n\n**Interpretation**:\n- p-value \u003C 0.05: Network is significantly enriched (proteins likely form functional module)\n- p-value ≥ 0.05: No significant enrichment (proteins may be unrelated)\n\n### 7. Homology Scores (`string_homology`)\n\nRetrieve protein similarity and homology information.\n\n**When to use**: Identifying protein families, paralog analysis, cross-species comparisons.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_homology\n\n# Get homology between proteins\nproteins = ['TP53', 'TP63', 'TP73']  # p53 family\nhomology = string_homology(proteins, species=9606)\n```\n\n**Use cases**:\n- Protein family identification\n- Paralog discovery\n- Evolutionary analysis\n\n### 8. Version Information (`string_version`)\n\nGet current STRING database version.\n\n**When to use**: Ensuring reproducibility, documenting methods.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_version\n\nversion = string_version()\nprint(f\"STRING version: {version}\")\n```\n\n## Common Analysis Workflows\n\n### Workflow 1: Protein List Analysis (Standard Workflow)\n\n**Use case**: Analyze a list of proteins from experiment (e.g., differential expression, proteomics).\n\n```python\nfrom scripts.string_api import (string_map_ids, string_network,\n                                string_enrichment, string_ppi_enrichment,\n                                string_network_image)\n\n# Step 1: Map gene names to STRING IDs\ngene_list = ['TP53', 'BRCA1', 'ATM', 'CHEK2', 'MDM2', 'ATR', 'BRCA2']\nmapping = string_map_ids(gene_list, species=9606)\n\n# Step 2: Get interaction network\nnetwork = string_network(gene_list, species=9606, required_score=400)\n\n# Step 3: Test if network is enriched\nppi_result = string_ppi_enrichment(gene_list, species=9606)\n\n# Step 4: Perform functional enrichment\nenrichment = string_enrichment(gene_list, species=9606)\n\n# Step 5: Generate network visualization\nimg = string_network_image(gene_list, species=9606,\n                          network_flavor='evidence', required_score=400)\nwith open('protein_network.png', 'wb') as f:\n    f.write(img)\n\n# Step 6: Parse and interpret results\n```\n\n### Workflow 2: Single Protein Investigation\n\n**Use case**: Deep dive into one protein's interactions and partners.\n\n```python\nfrom scripts.string_api import (string_map_ids, string_interaction_partners,\n                                string_network_image)\n\n# Step 1: Map protein name\nprotein = 'TP53'\nmapping = string_map_ids(protein, species=9606)\n\n# Step 2: Get all interaction partners\npartners = string_interaction_partners(protein, species=9606,\n                                      limit=20, required_score=700)\n\n# Step 3: Visualize expanded network\nimg = string_network_image(protein, species=9606, add_nodes=15,\n                          network_flavor='confidence', required_score=700)\nwith open('tp53_network.png', 'wb') as f:\n    f.write(img)\n```\n\n### Workflow 3: Pathway-Centric Analysis\n\n**Use case**: Identify and visualize proteins in a specific biological pathway.\n\n```python\nfrom scripts.string_api import string_enrichment, string_network\n\n# Step 1: Start with known pathway proteins\ndna_repair_proteins = ['TP53', 'ATM', 'ATR', 'CHEK1', 'CHEK2',\n                       'BRCA1', 'BRCA2', 'RAD51', 'XRCC1']\n\n# Step 2: Get network\nnetwork = string_network(dna_repair_proteins, species=9606,\n                        required_score=700, add_nodes=5)\n\n# Step 3: Enrichment to confirm pathway annotation\nenrichment = string_enrichment(dna_repair_proteins, species=9606)\n\n# Step 4: Parse enrichment for DNA repair pathways\nimport pandas as pd\nimport io\ndf = pd.read_csv(io.StringIO(enrichment), sep='\\t')\ndna_repair = df[df['description'].str.contains('DNA repair', case=False)]\n```\n\n### Workflow 4: Cross-Species Analysis\n\n**Use case**: Compare protein interactions across different organisms.\n\n```python\nfrom scripts.string_api import string_network\n\n# Human network\nhuman_network = string_network('TP53', species=9606, required_score=700)\n\n# Mouse network\nmouse_network = string_network('Trp53', species=10090, required_score=700)\n\n# Yeast network (if ortholog exists)\nyeast_network = string_network('gene_name', species=4932, required_score=700)\n```\n\n### Workflow 5: Network Expansion and Discovery\n\n**Use case**: Start with seed proteins and discover connected functional modules.\n\n```python\nfrom scripts.string_api import (string_interaction_partners, string_network,\n                                string_enrichment)\n\n# Step 1: Start with seed protein(s)\nseed_proteins = ['TP53']\n\n# Step 2: Get first-degree interactors\npartners = string_interaction_partners(seed_proteins, species=9606,\n                                      limit=30, required_score=700)\n\n# Step 3: Parse partners to get protein list\nimport pandas as pd\nimport io\ndf = pd.read_csv(io.StringIO(partners), sep='\\t')\nall_proteins = list(set(df['preferredName_A'].tolist() +\n                       df['preferredName_B'].tolist()))\n\n# Step 4: Perform enrichment on expanded network\nenrichment = string_enrichment(all_proteins[:50], species=9606)\n\n# Step 5: Filter for interesting functional modules\nenrichment_df = pd.read_csv(io.StringIO(enrichment), sep='\\t')\nmodules = enrichment_df[enrichment_df['fdr'] \u003C 0.001]\n```\n\n## Common Species\n\nWhen specifying species, use NCBI taxon IDs:\n\n| Organism | Common Name | Taxon ID |\n|----------|-------------|----------|\n| Homo sapiens | Human | 9606 |\n| Mus musculus | Mouse | 10090 |\n| Rattus norvegicus | Rat | 10116 |\n| Drosophila melanogaster | Fruit fly | 7227 |\n| Caenorhabditis elegans | C. elegans | 6239 |\n| Saccharomyces cerevisiae | Yeast | 4932 |\n| Arabidopsis thaliana | Thale cress | 3702 |\n| Escherichia coli | E. coli | 511145 |\n| Danio rerio | Zebrafish | 7955 |\n\nFull list available at: https:\u002F\u002Fstring-db.org\u002Fcgi\u002Finput?input_page_active_form=organisms\n\n## Understanding Confidence Scores\n\nSTRING provides combined confidence scores (0-1000) integrating multiple evidence types:\n\n### Evidence Channels\n\n1. **Neighborhood (nscore)**: Conserved genomic neighborhood across species\n2. **Fusion (fscore)**: Gene fusion events\n3. **Phylogenetic Profile (pscore)**: Co-occurrence patterns across species\n4. **Coexpression (ascore)**: Correlated RNA expression\n5. **Experimental (escore)**: Biochemical and genetic experiments\n6. **Database (dscore)**: Curated pathway and complex databases\n7. **Text-mining (tscore)**: Literature co-occurrence and NLP extraction\n\n### Recommended Thresholds\n\nChoose threshold based on analysis goals:\n\n- **150 (low confidence)**: Exploratory analysis, hypothesis generation\n- **400 (medium confidence)**: Standard analysis, balanced sensitivity\u002Fspecificity\n- **700 (high confidence)**: Conservative analysis, high-confidence interactions\n- **900 (highest confidence)**: Very stringent, experimental evidence preferred\n\n**Trade-offs**:\n- Lower thresholds: More interactions (higher recall, more false positives)\n- Higher thresholds: Fewer interactions (higher precision, more false negatives)\n\n## Network Types\n\n### Functional Networks (Default)\n\nIncludes all evidence types (experimental, computational, text-mining). Represents proteins that are functionally associated, even without direct physical binding.\n\n**When to use**:\n- Pathway analysis\n- Functional enrichment studies\n- Systems biology\n- Most general analyses\n\n### Physical Networks\n\nOnly includes evidence for direct physical binding (experimental data and database annotations for physical interactions).\n\n**When to use**:\n- Structural biology studies\n- Protein complex analysis\n- Direct binding validation\n- When physical contact is required\n\n## API Best Practices\n\n1. **Always map identifiers first**: Use `string_map_ids()` before other operations for faster queries\n2. **Use STRING IDs when possible**: Use format `9606.ENSP00000269305` instead of gene names\n3. **Specify species for networks >10 proteins**: Required for accurate results\n4. **Respect rate limits**: Wait 1 second between API calls\n5. **Use versioned URLs for reproducibility**: Available in reference documentation\n6. **Handle errors gracefully**: Check for \"Error:\" prefix in returned strings\n7. **Choose appropriate confidence thresholds**: Match threshold to analysis goals\n\n## Detailed Reference\n\nFor comprehensive API documentation, complete parameter lists, output formats, and advanced usage, refer to `references\u002Fstring_reference.md`. This includes:\n\n- Complete API endpoint specifications\n- All supported output formats (TSV, JSON, XML, PSI-MI)\n- Advanced features (bulk upload, values\u002Franks enrichment)\n- Error handling and troubleshooting\n- Integration with other tools (Cytoscape, R, Python libraries)\n- Data license and citation information\n\n## Troubleshooting\n\n**No proteins found**:\n- Verify species parameter matches identifiers\n- Try mapping identifiers first with `string_map_ids()`\n- Check for typos in protein names\n\n**Empty network results**:\n- Lower confidence threshold (`required_score`)\n- Check if proteins actually interact\n- Verify species is correct\n\n**Timeout or slow queries**:\n- Reduce number of input proteins\n- Use STRING IDs instead of gene names\n- Split large queries into batches\n\n**\"Species required\" error**:\n- Add `species` parameter for networks with >10 proteins\n- Always include species for consistency\n\n**Results look unexpected**:\n- Check STRING version with `string_version()`\n- Verify network_type is appropriate (functional vs physical)\n- Review confidence threshold selection\n\n## Additional Resources\n\nFor proteome-scale analysis or complete species network upload:\n- Visit https:\u002F\u002Fstring-db.org\n- Use \"Upload proteome\" feature\n- STRING will generate complete interaction network and predict functions\n\nFor bulk downloads of complete datasets:\n- Download page: https:\u002F\u002Fstring-db.org\u002Fcgi\u002Fdownload\n- Includes complete interaction files, protein annotations, and pathway mappings\n\n## Data License\n\nSTRING data is freely available under **Creative Commons BY 4.0** license:\n- Free for academic and commercial use\n- Attribution required when publishing\n- Cite latest STRING publication\n\n## Citation\n\nWhen using STRING in publications, cite the most recent publication from: https:\u002F\u002Fstring-db.org\u002Fcgi\u002Fabout\n","# STRING Database\n\n## Overview\n\nSTRING is a comprehensive database of known and predicted protein-protein interactions covering 59M proteins and 20B+ interactions across 5000+ organisms. Query interaction networks, perform functional enrichment, discover partners via REST API for systems biology and pathway analysis.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Retrieving protein-protein interaction networks for single or multiple proteins\n- Performing functional enrichment analysis (GO, KEGG, Pfam) on protein lists\n- Discovering interaction partners and expanding protein networks\n- Testing if proteins form significantly enriched functional modules\n- Generating network visualizations with evidence-based coloring\n- Analyzing homology and protein family relationships\n- Conducting cross-species protein interaction comparisons\n- Identifying hub proteins and network connectivity patterns\n\n## Quick Start\n\nThe skill provides:\n1. Python helper functions (`scripts\u002Fstring_api.py`) for all STRING REST API operations\n2. Comprehensive reference documentation (`references\u002Fstring_reference.md`) with detailed API specifications\n\nWhen users request STRING data, determine which operation is needed and use the appropriate function from `scripts\u002Fstring_api.py`.\n\n## Core Operations\n\n### 1. Identifier Mapping (`string_map_ids`)\n\nConvert gene names, protein names, and external IDs to STRING identifiers.\n\n**When to use**: Starting any STRING analysis, validating protein names, finding canonical identifiers.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_map_ids\n\n# Map single protein\nresult = string_map_ids('TP53', species=9606)\n\n# Map multiple proteins\nresult = string_map_ids(['TP53', 'BRCA1', 'EGFR', 'MDM2'], species=9606)\n\n# Map with multiple matches per query\nresult = string_map_ids('p53', species=9606, limit=5)\n```\n\n**Parameters**:\n- `species`: NCBI taxon ID (9606 = human, 10090 = mouse, 7227 = fly)\n- `limit`: Number of matches per identifier (default: 1)\n- `echo_query`: Include query term in output (default: 1)\n\n**Best practice**: Always map identifiers first for faster subsequent queries.\n\n### 2. Network Retrieval (`string_network`)\n\nGet protein-protein interaction network data in tabular format.\n\n**When to use**: Building interaction networks, analyzing connectivity, retrieving interaction evidence.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_network\n\n# Get network for single protein\nnetwork = string_network('9606.ENSP00000269305', species=9606)\n\n# Get network with multiple proteins\nproteins = ['9606.ENSP00000269305', '9606.ENSP00000275493']\nnetwork = string_network(proteins, required_score=700)\n\n# Expand network with additional interactors\nnetwork = string_network('TP53', species=9606, add_nodes=10, required_score=400)\n\n# Physical interactions only\nnetwork = string_network('TP53', species=9606, network_type='physical')\n```\n\n**Parameters**:\n- `required_score`: Confidence threshold (0-1000)\n  - 150: low confidence (exploratory)\n  - 400: medium confidence (default, standard analysis)\n  - 700: high confidence (conservative)\n  - 900: highest confidence (very stringent)\n- `network_type`: `'functional'` (all evidence, default) or `'physical'` (direct binding only)\n- `add_nodes`: Add N most connected proteins (0-10)\n\n**Output columns**: Interaction pairs, confidence scores, and individual evidence scores (neighborhood, fusion, coexpression, experimental, database, text-mining).\n\n### 3. Network Visualization (`string_network_image`)\n\nGenerate network visualization as PNG image.\n\n**When to use**: Creating figures, visual exploration, presentations.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_network_image\n\n# Get network image\nproteins = ['TP53', 'MDM2', 'ATM', 'CHEK2', 'BRCA1']\nimg_data = string_network_image(proteins, species=9606, required_score=700)\n\n# Save image\nwith open('network.png', 'wb') as f:\n    f.write(img_data)\n\n# Evidence-colored network\nimg = string_network_image(proteins, species=9606, network_flavor='evidence')\n\n# Confidence-based visualization\nimg = string_network_image(proteins, species=9606, network_flavor='confidence')\n\n# Actions network (activation\u002Finhibition)\nimg = string_network_image(proteins, species=9606, network_flavor='actions')\n```\n\n**Network flavors**:\n- `'evidence'`: Colored lines show evidence types (default)\n- `'confidence'`: Line thickness represents confidence\n- `'actions'`: Shows activating\u002Finhibiting relationships\n\n### 4. Interaction Partners (`string_interaction_partners`)\n\nFind all proteins that interact with given protein(s).\n\n**When to use**: Discovering novel interactions, finding hub proteins, expanding networks.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_interaction_partners\n\n# Get top 10 interactors of TP53\npartners = string_interaction_partners('TP53', species=9606, limit=10)\n\n# Get high-confidence interactors\npartners = string_interaction_partners('TP53', species=9606,\n                                      limit=20, required_score=700)\n\n# Find interactors for multiple proteins\npartners = string_interaction_partners(['TP53', 'MDM2'],\n                                      species=9606, limit=15)\n```\n\n**Parameters**:\n- `limit`: Maximum number of partners to return (default: 10)\n- `required_score`: Confidence threshold (0-1000)\n\n**Use cases**:\n- Hub protein identification\n- Network expansion from seed proteins\n- Discovering indirect connections\n\n### 5. Functional Enrichment (`string_enrichment`)\n\nPerform enrichment analysis across Gene Ontology, KEGG pathways, Pfam domains, and more.\n\n**When to use**: Interpreting protein lists, pathway analysis, functional characterization, understanding biological processes.\n\n**Usage**:\n```python\nfrom scripts.string_enrichment import string_enrichment\n\n# Enrichment for a protein list\nproteins = ['TP53', 'MDM2', 'ATM', 'CHEK2', 'BRCA1', 'ATR', 'TP73']\nenrichment = string_enrichment(proteins, species=9606)\n\n# Parse results to find significant terms\nimport pandas as pd\ndf = pd.read_csv(io.StringIO(enrichment), sep='\\t')\nsignificant = df[df['fdr'] \u003C 0.05]\n```\n\n**Enrichment categories**:\n- **Gene Ontology**: Biological Process, Molecular Function, Cellular Component\n- **KEGG Pathways**: Metabolic and signaling pathways\n- **Pfam**: Protein domains\n- **InterPro**: Protein families and domains\n- **SMART**: Domain architecture\n- **UniProt Keywords**: Curated functional keywords\n\n**Output columns**:\n- `category`: Annotation database (e.g., \"KEGG Pathways\", \"GO Biological Process\")\n- `term`: Term identifier\n- `description`: Human-readable term description\n- `number_of_genes`: Input proteins with this annotation\n- `p_value`: Uncorrected enrichment p-value\n- `fdr`: False discovery rate (corrected p-value)\n\n**Statistical method**: Fisher's exact test with Benjamini-Hochberg FDR correction.\n\n**Interpretation**: FDR \u003C 0.05 indicates statistically significant enrichment.\n\n### 6. PPI Enrichment (`string_ppi_enrichment`)\n\nTest if a protein network has significantly more interactions than expected by chance.\n\n**When to use**: Validating if proteins form functional module, testing network connectivity.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_ppi_enrichment\nimport json\n\n# Test network connectivity\nproteins = ['TP53', 'MDM2', 'ATM', 'CHEK2', 'BRCA1']\nresult = string_ppi_enrichment(proteins, species=9606, required_score=400)\n\n# Parse JSON result\ndata = json.loads(result)\nprint(f\"Observed edges: {data['number_of_edges']}\")\nprint(f\"Expected edges: {data['expected_number_of_edges']}\")\nprint(f\"P-value: {data['p_value']}\")\n```\n\n**Output fields**:\n- `number_of_nodes`: Proteins in network\n- `number_of_edges`: Observed interactions\n- `expected_number_of_edges`: Expected in random network\n- `p_value`: Statistical significance\n\n**Interpretation**:\n- p-value \u003C 0.05: Network is significantly enriched (proteins likely form functional module)\n- p-value ≥ 0.05: No significant enrichment (proteins may be unrelated)\n\n### 7. Homology Scores (`string_homology`)\n\nRetrieve protein similarity and homology information.\n\n**When to use**: Identifying protein families, paralog analysis, cross-species comparisons.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_homology\n\n# Get homology between proteins\nproteins = ['TP53', 'TP63', 'TP73']  # p53 family\nhomology = string_homology(proteins, species=9606)\n```\n\n**Use cases**:\n- Protein family identification\n- Paralog discovery\n- Evolutionary analysis\n\n### 8. Version Information (`string_version`)\n\nGet current STRING database version.\n\n**When to use**: Ensuring reproducibility, documenting methods.\n\n**Usage**:\n```python\nfrom scripts.string_api import string_version\n\nversion = string_version()\nprint(f\"STRING version: {version}\")\n```\n\n## Common Analysis Workflows\n\n### Workflow 1: Protein List Analysis (Standard Workflow)\n\n**Use case**: Analyze a list of proteins from experiment (e.g., differential expression, proteomics).\n\n```python\nfrom scripts.string_api import (string_map_ids, string_network,\n                                string_enrichment, string_ppi_enrichment,\n                                string_network_image)\n\n# Step 1: Map gene names to STRING IDs\ngene_list = ['TP53', 'BRCA1', 'ATM', 'CHEK2', 'MDM2', 'ATR', 'BRCA2']\nmapping = string_map_ids(gene_list, species=9606)\n\n# Step 2: Get interaction network\nnetwork = string_network(gene_list, species=9606, required_score=400)\n\n# Step 3: Test if network is enriched\nppi_result = string_ppi_enrichment(gene_list, species=9606)\n\n# Step 4: Perform functional enrichment\nenrichment = string_enrichment(gene_list, species=9606)\n\n# Step 5: Generate network visualization\nimg = string_network_image(gene_list, species=9606,\n                          network_flavor='evidence', required_score=400)\nwith open('protein_network.png', 'wb') as f:\n    f.write(img)\n\n# Step 6: Parse and interpret results\n```\n\n### Workflow 2: Single Protein Investigation\n\n**Use case**: Deep dive into one protein's interactions and partners.\n\n```python\nfrom scripts.string_api import (string_map_ids, string_interaction_partners,\n                                string_network_image)\n\n# Step 1: Map protein name\nprotein = 'TP53'\nmapping = string_map_ids(protein, species=9606)\n\n# Step 2: Get all interaction partners\npartners = string_interaction_partners(protein, species=9606,\n                                      limit=20, required_score=700)\n\n# Step 3: Visualize expanded network\nimg = string_network_image(protein, species=9606, add_nodes=15,\n                          network_flavor='confidence', required_score=700)\nwith open('tp53_network.png', 'wb') as f:\n    f.write(img)\n```\n\n### Workflow 3: Pathway-Centric Analysis\n\n**Use case**: Identify and visualize proteins in a specific biological pathway.\n\n```python\nfrom scripts.string_api import string_enrichment, string_network\n\n# Step 1: Start with known pathway proteins\ndna_repair_proteins = ['TP53', 'ATM', 'ATR', 'CHEK1', 'CHEK2',\n                       'BRCA1', 'BRCA2', 'RAD51', 'XRCC1']\n\n# Step 2: Get network\nnetwork = string_network(dna_repair_proteins, species=9606,\n                        required_score=700, add_nodes=5)\n\n# Step 3: Enrichment to confirm pathway annotation\nenrichment = string_enrichment(dna_repair_proteins, species=9606)\n\n# Step 4: Parse enrichment for DNA repair pathways\nimport pandas as pd\nimport io\ndf = pd.read_csv(io.StringIO(enrichment), sep='\\t')\ndna_repair = df[df['description'].str.contains('DNA repair', case=False)]\n```\n\n### Workflow 4: Cross-Species Analysis\n\n**Use case**: Compare protein interactions across different organisms.\n\n```python\nfrom scripts.string_api import string_network\n\n# Human network\nhuman_network = string_network('TP53', species=9606, required_score=700)\n\n# Mouse network\nmouse_network = string_network('Trp53', species=10090, required_score=700)\n\n# Yeast network (if ortholog exists)\nyeast_network = string_network('gene_name', species=4932, required_score=700)\n```\n\n### Workflow 5: Network Expansion and Discovery\n\n**Use case**: Start with seed proteins and discover connected functional modules.\n\n```python\nfrom scripts.string_api import (string_interaction_partners, string_network,\n                                string_enrichment)\n\n# Step 1: Start with seed protein(s)\nseed_proteins = ['TP53']\n\n# Step 2: Get first-degree interactors\npartners = string_interaction_partners(seed_proteins, species=9606,\n                                      limit=30, required_score=700)\n\n# Step 3: Parse partners to get protein list\nimport pandas as pd\nimport io\ndf = pd.read_csv(io.StringIO(partners), sep='\\t')\nall_proteins = list(set(df['preferredName_A'].tolist() +\n                       df['preferredName_B'].tolist()))\n\n# Step 4: Perform enrichment on expanded network\nenrichment = string_enrichment(all_proteins[:50], species=9606)\n\n# Step 5: Filter for interesting functional modules\nenrichment_df = pd.read_csv(io.StringIO(enrichment), sep='\\t')\nmodules = enrichment_df[enrichment_df['fdr'] \u003C 0.001]\n```\n\n## Common Species\n\nWhen specifying species, use NCBI taxon IDs:\n\n| Organism | Common Name | Taxon ID |\n|----------|-------------|----------|\n| Homo sapiens | Human | 9606 |\n| Mus musculus | Mouse | 10090 |\n| Rattus norvegicus | Rat | 10116 |\n| Drosophila melanogaster | Fruit fly | 7227 |\n| Caenorhabditis elegans | C. elegans | 6239 |\n| Saccharomyces cerevisiae | Yeast | 4932 |\n| Arabidopsis thaliana | Thale cress | 3702 |\n| Escherichia coli | E. coli | 511145 |\n| Danio rerio | Zebrafish | 7955 |\n\nFull list available at: https:\u002F\u002Fstring-db.org\u002Fcgi\u002Finput?input_page_active_form=organisms\n\n## Understanding Confidence Scores\n\nSTRING provides combined confidence scores (0-1000) integrating multiple evidence types:\n\n### Evidence Channels\n\n1. **Neighborhood (nscore)**: Conserved genomic neighborhood across species\n2. **Fusion (fscore)**: Gene fusion events\n3. **Phylogenetic Profile (pscore)**: Co-occurrence patterns across species\n4. **Coexpression (ascore)**: Correlated RNA expression\n5. **Experimental (escore)**: Biochemical and genetic experiments\n6. **Database (dscore)**: Curated pathway and complex databases\n7. **Text-mining (tscore)**: Literature co-occurrence and NLP extraction\n\n### Recommended Thresholds\n\nChoose threshold based on analysis goals:\n\n- **150 (low confidence)**: Exploratory analysis, hypothesis generation\n- **400 (medium confidence)**: Standard analysis, balanced sensitivity\u002Fspecificity\n- **700 (high confidence)**: Conservative analysis, high-confidence interactions\n- **900 (highest confidence)**: Very stringent, experimental evidence preferred\n\n**Trade-offs**:\n- Lower thresholds: More interactions (higher recall, more false positives)\n- Higher thresholds: Fewer interactions (higher precision, more false negatives)\n\n## Network Types\n\n### Functional Networks (Default)\n\nIncludes all evidence types (experimental, computational, text-mining). Represents proteins that are functionally associated, even without direct physical binding.\n\n**When to use**:\n- Pathway analysis\n- Functional enrichment studies\n- Systems biology\n- Most general analyses\n\n### Physical Networks\n\nOnly includes evidence for direct physical binding (experimental data and database annotations for physical interactions).\n\n**When to use**:\n- Structural biology studies\n- Protein complex analysis\n- Direct binding validation\n- When physical contact is required\n\n## API Best Practices\n\n1. **Always map identifiers first**: Use `string_map_ids()` before other operations for faster queries\n2. **Use STRING IDs when possible**: Use format `9606.ENSP00000269305` instead of gene names\n3. **Specify species for networks >10 proteins**: Required for accurate results\n4. **Respect rate limits**: Wait 1 second between API calls\n5. **Use versioned URLs for reproducibility**: Available in reference documentation\n6. **Handle errors gracefully**: Check for \"Error:\" prefix in returned strings\n7. **Choose appropriate confidence thresholds**: Match threshold to analysis goals\n\n## Detailed Reference\n\nFor comprehensive API documentation, complete parameter lists, output formats, and advanced usage, refer to `references\u002Fstring_reference.md`. This includes:\n\n- Complete API endpoint specifications\n- All supported output formats (TSV, JSON, XML, PSI-MI)\n- Advanced features (bulk upload, values\u002Franks enrichment)\n- Error handling and troubleshooting\n- Integration with other tools (Cytoscape, R, Python libraries)\n- Data license and citation information\n\n## Troubleshooting\n\n**No proteins found**:\n- Verify species parameter matches identifiers\n- Try mapping identifiers first with `string_map_ids()`\n- Check for typos in protein names\n\n**Empty network results**:\n- Lower confidence threshold (`required_score`)\n- Check if proteins actually interact\n- Verify species is correct\n\n**Timeout or slow queries**:\n- Reduce number of input proteins\n- Use STRING IDs instead of gene names\n- Split large queries into batches\n\n**\"Species required\" error**:\n- Add `species` parameter for networks with >10 proteins\n- Always include species for consistency\n\n**Results look unexpected**:\n- Check STRING version with `string_version()`\n- Verify network_type is appropriate (functional vs physical)\n- Review confidence threshold selection\n\n## Additional Resources\n\nFor proteome-scale analysis or complete species network upload:\n- Visit https:\u002F\u002Fstring-db.org\n- Use \"Upload proteome\" feature\n- STRING will generate complete interaction network and predict functions\n\nFor bulk downloads of complete datasets:\n- Download page: https:\u002F\u002Fstring-db.org\u002Fcgi\u002Fdownload\n- Includes complete interaction files, protein annotations, and pathway mappings\n\n## Data License\n\nSTRING data is freely available under **Creative Commons BY 4.0** license:\n- Free for academic and commercial use\n- Attribution required when publishing\n- Cite latest STRING publication\n\n## Citation\n\nWhen using STRING in publications, cite the most recent publication from: https:\u002F\u002Fstring-db.org\u002Fcgi\u002Fabout\n",{"name":5,"description":7},"add-x-twitter-scraper-skill","7bc347b2f7dc2dde2761a965585925e0d0171748","cli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fstring-database",0,"https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template","https:\u002F\u002Fgithub.com\u002FCarchaloneo22","Ingeniero Informático | Ingeniero en Desarrollo de Software | Consultor TIC en Gestión Publica | Docente Análisis y Desarrollo de Software. ","2026-09-12 11:10:56",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Carchaloneo22\u002FClaude-Code-template --skill string-database",{"tool":38,"command":39},"bunx","bunx skills add Carchaloneo22\u002FClaude-Code-template --skill string-database",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Carchaloneo22\u002FClaude-Code-template --skill string-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fstring-database\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fstring_reference.md","REFERENCE","参考文档",13697,"https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fstring-database\u002Freferences\u002Fstring_reference.md",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Fstring_api.py","SCRIPT","脚本",11927,"https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fstring-database\u002Fscripts\u002Fstring_api.py",[59,66,75,82,89,96],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CPQFVGKX7H3Q5Y9CN0XAZN","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fzapier-make-patterns\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CPQDR2HMKAYHAAY99EA4B2","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CPQ7K5MAQSXEB027HZFM2G","workflow-automation","Workflow automation is the infrastructure that makes AI agents reliable. Without durable execution, a network hiccup during a 10-step payment flow means lost money and angry customers. With it, workflows resume exactly where they left off.  This skill covers the platforms (n8n, Temporal, Inngest) and patterns (sequential, parallel, orchestrator-worker) that turn brittle scripts into production-grade automation.  Key insight: The platforms make different tradeoffs. n8n optimizes for accessibility","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fworkflow-automation\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CPQ34F18JHMEM8NHQS1N7K","trigger-dev","Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Ftrigger-dev\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CPPZSXXDB1SAWT5N63ACZT","planning-with-files","Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fplanning-with-files\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7CPPTQSBVWSK0R10FJNMP0F","n8n-workflow-patterns","Proven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow patterns, planning workflow architecture, or asking about webhook processing, HTTP API integration, database operations, AI agent workflows, or scheduled tasks.","https:\u002F\u002Fgithub.com\u002FCarchaloneo22\u002FClaude-Code-template\u002Fblob\u002Fadd-x-twitter-scraper-skill\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fn8n\u002Fn8n-workflow-patterns\u002FSKILL.md",[],[]]