[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DP2V85ZXBG4F8P4XXNV32P":3,"skill-same:01M6DP2V85ZXBG4F8P4XXNV32P":63},{"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":23,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":44,"commitSha":45,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M6DP2V85ZXBG4F8P4XXNV32P","interpro-database",null,"Query InterPro for protein family, domain, and functional site annotations. Integrates Pfam, PANTHER, PRINTS, SMART, SUPERFAMILY, and 11 other member databases. Use for protein function prediction, domain architecture analysis, evolutionary classification, and GO term mapping.","huamu668\u002Fclawhub-openclaw-medical","huamu668","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F202473531?v=4","01M6DK1V7D7VP9PJ06Z1VXVK13","huamu","01M6DK1VBYG1BX5FT154AFZHAS",0,"CC0-1.0","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Finterpro-database\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36],"database","interpro database","go","architecture","analysis","classification","site","annotations","use","databases","family","query","domain","2026-11-10 10:12:30",false,"---\nname: interpro-database\ndescription: Query InterPro for protein family, domain, and functional site annotations. Integrates Pfam, PANTHER, PRINTS, SMART, SUPERFAMILY, and 11 other member databases. Use for protein function prediction, domain architecture analysis, evolutionary classification, and GO term mapping.\nlicense: CC0-1.0\nmetadata:\n    skill-author: Kuan-lin Huang\n---\n\n# InterPro Database\n\n## Overview\n\nInterPro (https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002F) is a comprehensive resource for protein family and domain classification maintained by EMBL-EBI. It integrates signatures from 13 member databases including Pfam, PANTHER, PRINTS, ProSite, SMART, TIGRFAM, SUPERFAMILY, CDD, and others, providing a unified view of protein functional annotations for over 100 million protein sequences.\n\nInterPro classifies proteins into:\n- **Families**: Groups of proteins sharing common ancestry and function\n- **Domains**: Independently folding structural\u002Ffunctional units\n- **Homologous superfamilies**: Structurally similar protein regions\n- **Repeats**: Short tandem sequences\n- **Sites**: Functional sites (active, binding, PTM)\n\n**Key resources:**\n- InterPro website: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002F\n- REST API: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fapi\u002F\n- API documentation: https:\u002F\u002Fgithub.com\u002FProteinsWebTeam\u002Finterpro7-api\u002Fblob\u002Fmaster\u002Fdocs\u002F\n- Python client: via `requests`\n\n## When to Use This Skill\n\nUse InterPro when:\n\n- **Protein function prediction**: What function(s) does an uncharacterized protein likely have?\n- **Domain architecture**: What domains make up a protein, and in what order?\n- **Protein family classification**: Which family\u002Fsuperfamily does a protein belong to?\n- **GO term annotation**: Map protein sequences to Gene Ontology terms via InterPro\n- **Evolutionary analysis**: Are two proteins in the same homologous superfamily?\n- **Structure prediction context**: What domains should a new protein structure be compared against?\n- **Pipeline annotation**: Batch-annotate proteomes or novel sequences\n\n## Core Capabilities\n\n### 1. InterPro REST API\n\nBase URL: `https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fapi\u002F`\n\n```python\nimport requests\n\nBASE_URL = \"https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fapi\"\n\ndef interpro_get(endpoint, params=None):\n    url = f\"{BASE_URL}\u002F{endpoint}\"\n    headers = {\"Accept\": \"application\u002Fjson\"}\n    response = requests.get(url, params=params, headers=headers)\n    response.raise_for_status()\n    return response.json()\n```\n\n### 2. Look Up a Protein\n\n```python\ndef get_protein_entries(uniprot_id):\n    \"\"\"Get all InterPro entries that match a UniProt protein.\"\"\"\n    data = interpro_get(f\"protein\u002FUniProt\u002F{uniprot_id}\u002Fentry\u002FInterPro\u002F\")\n    return data\n\n# Example: Human p53 (TP53)\nresult = get_protein_entries(\"P04637\")\nentries = result.get(\"results\", [])\n\nfor entry in entries:\n    meta = entry[\"metadata\"]\n    print(f\"  {meta['accession']} ({meta['type']}): {meta['name']}\")\n    # e.g., IPR011615 (domain): p53, tetramerisation domain\n    #       IPR010991 (domain): p53, DNA-binding domain\n    #       IPR013872 (family): p53 family\n```\n\n### 3. Get Specific InterPro Entry\n\n```python\ndef get_entry(interpro_id):\n    \"\"\"Fetch details for an InterPro entry.\"\"\"\n    return interpro_get(f\"entry\u002FInterPro\u002F{interpro_id}\u002F\")\n\n# Example: Get Pfam domain PF00397 (WW domain)\nww_entry = get_entry(\"IPR001202\")\nprint(f\"Name: {ww_entry['metadata']['name']}\")\nprint(f\"Type: {ww_entry['metadata']['type']}\")\n\n# Also supports member database IDs:\ndef get_pfam_entry(pfam_id):\n    return interpro_get(f\"entry\u002FPfam\u002F{pfam_id}\u002F\")\n\npfam = get_pfam_entry(\"PF00397\")\n```\n\n### 4. Search Proteins by InterPro Entry\n\n```python\ndef get_proteins_for_entry(interpro_id, database=\"UniProt\", page_size=25):\n    \"\"\"Get all proteins annotated with an InterPro entry.\"\"\"\n    params = {\"page_size\": page_size}\n    data = interpro_get(f\"entry\u002FInterPro\u002F{interpro_id}\u002Fprotein\u002F{database}\u002F\", params)\n    return data\n\n# Example: Find all human kinase-domain proteins\nkinase_proteins = get_proteins_for_entry(\"IPR000719\")  # Protein kinase domain\nprint(f\"Total proteins: {kinase_proteins['count']}\")\n```\n\n### 5. Domain Architecture\n\n```python\ndef get_domain_architecture(uniprot_id):\n    \"\"\"Get the complete domain architecture of a protein.\"\"\"\n    data = interpro_get(f\"protein\u002FUniProt\u002F{uniprot_id}\u002F\")\n    return data\n\n# Example: Get full domain architecture for EGFR\negfr = get_domain_architecture(\"P00533\")\n\n# The response includes locations of all matching entries on the sequence\nfor entry in egfr.get(\"entries\", []):\n    for fragment in entry.get(\"entry_protein_locations\", []):\n        for loc in fragment.get(\"fragments\", []):\n            print(f\"  {entry['accession']}: {loc['start']}-{loc['end']}\")\n```\n\n### 6. GO Term Mapping\n\n```python\ndef get_go_terms_for_protein(uniprot_id):\n    \"\"\"Get GO terms associated with a protein via InterPro.\"\"\"\n    data = interpro_get(f\"protein\u002FUniProt\u002F{uniprot_id}\u002F\")\n\n    # GO terms are embedded in the entry metadata\n    go_terms = []\n    for entry in data.get(\"entries\", []):\n        go = entry.get(\"metadata\", {}).get(\"go_terms\", [])\n        go_terms.extend(go)\n\n    # Deduplicate\n    seen = set()\n    unique_go = []\n    for term in go_terms:\n        if term[\"identifier\"] not in seen:\n            seen.add(term[\"identifier\"])\n            unique_go.append(term)\n\n    return unique_go\n\n# GO terms include:\n# {\"identifier\": \"GO:0004672\", \"name\": \"protein kinase activity\", \"category\": {\"code\": \"F\", \"name\": \"Molecular Function\"}}\n```\n\n### 7. Batch Protein Lookup\n\n```python\ndef batch_lookup_proteins(uniprot_ids, database=\"UniProt\"):\n    \"\"\"Look up multiple proteins and collect their InterPro entries.\"\"\"\n    import time\n    results = {}\n    for uid in uniprot_ids:\n        try:\n            data = interpro_get(f\"protein\u002F{database}\u002F{uid}\u002Fentry\u002FInterPro\u002F\")\n            entries = data.get(\"results\", [])\n            results[uid] = [\n                {\n                    \"accession\": e[\"metadata\"][\"accession\"],\n                    \"name\": e[\"metadata\"][\"name\"],\n                    \"type\": e[\"metadata\"][\"type\"]\n                }\n                for e in entries\n            ]\n        except Exception as e:\n            results[uid] = {\"error\": str(e)}\n        time.sleep(0.3)  # Rate limiting\n    return results\n\n# Example\nproteins = [\"P04637\", \"P00533\", \"P38398\", \"Q9Y6I9\"]\ndomain_info = batch_lookup_proteins(proteins)\nfor uid, entries in domain_info.items():\n    print(f\"\\n{uid}:\")\n    for e in entries[:3]:\n        print(f\"  - {e['accession']} ({e['type']}): {e['name']}\")\n```\n\n### 8. Search by Text or Taxonomy\n\n```python\ndef search_entries(query, entry_type=None, taxonomy_id=None):\n    \"\"\"Search InterPro entries by text.\"\"\"\n    params = {\"search\": query, \"page_size\": 20}\n    if entry_type:\n        params[\"type\"] = entry_type  # family, domain, homologous_superfamily, etc.\n\n    endpoint = \"entry\u002FInterPro\u002F\"\n    if taxonomy_id:\n        endpoint = f\"entry\u002FInterPro\u002Ftaxonomy\u002FUniProt\u002F{taxonomy_id}\u002F\"\n\n    return interpro_get(endpoint, params)\n\n# Search for kinase-related entries\nkinase_entries = search_entries(\"kinase\", entry_type=\"domain\")\n```\n\n## Query Workflows\n\n### Workflow 1: Characterize an Unknown Protein\n\n1. **Run InterProScan** locally or via the web (https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fsearch\u002Fsequence\u002F) to scan a protein sequence\n2. **Parse results** to identify domain architecture\n3. **Look up each InterPro entry** for biological context\n4. **Get GO terms** from associated InterPro entries for functional inference\n\n```python\n# After running InterProScan and getting a UniProt ID:\ndef characterize_protein(uniprot_id):\n    \"\"\"Complete characterization workflow.\"\"\"\n\n    # 1. Get all annotations\n    entries = get_protein_entries(uniprot_id)\n\n    # 2. Group by type\n    by_type = {}\n    for e in entries.get(\"results\", []):\n        t = e[\"metadata\"][\"type\"]\n        by_type.setdefault(t, []).append({\n            \"accession\": e[\"metadata\"][\"accession\"],\n            \"name\": e[\"metadata\"][\"name\"]\n        })\n\n    # 3. Get GO terms\n    go_terms = get_go_terms_for_protein(uniprot_id)\n\n    return {\n        \"families\": by_type.get(\"family\", []),\n        \"domains\": by_type.get(\"domain\", []),\n        \"superfamilies\": by_type.get(\"homologous_superfamily\", []),\n        \"go_terms\": go_terms\n    }\n```\n\n### Workflow 2: Find All Members of a Protein Family\n\n1. Identify the InterPro family entry ID (e.g., IPR000719 for protein kinases)\n2. Query all UniProt proteins annotated with that entry\n3. Filter by organism\u002Ftaxonomy if needed\n4. Download FASTA sequences for phylogenetic analysis\n\n### Workflow 3: Comparative Domain Analysis\n\n1. Collect proteins of interest (e.g., all paralogs)\n2. Get domain architecture for each protein\n3. Compare domain compositions and orders\n4. Identify domain gain\u002Floss events\n\n## API Endpoint Summary\n\n| Endpoint | Description |\n|----------|-------------|\n| `\u002Fprotein\u002FUniProt\u002F{id}\u002F` | Full annotation for a protein |\n| `\u002Fprotein\u002FUniProt\u002F{id}\u002Fentry\u002FInterPro\u002F` | InterPro entries for a protein |\n| `\u002Fentry\u002FInterPro\u002F{id}\u002F` | Details of an InterPro entry |\n| `\u002Fentry\u002FPfam\u002F{id}\u002F` | Pfam entry details |\n| `\u002Fentry\u002FInterPro\u002F{id}\u002Fprotein\u002FUniProt\u002F` | Proteins with an entry |\n| `\u002Fentry\u002FInterPro\u002F` | Search\u002Flist InterPro entries |\n| `\u002Ftaxonomy\u002FUniProt\u002F{tax_id}\u002F` | Proteins from a taxon |\n| `\u002Fstructure\u002FPDB\u002F{pdb_id}\u002F` | Structures mapped to InterPro |\n\n## Member Databases\n\n| Database | Focus |\n|----------|-------|\n| Pfam | Protein domains (HMM profiles) |\n| PANTHER | Protein families and subfamilies |\n| PRINTS | Protein fingerprints |\n| ProSitePatterns | Amino acid patterns |\n| ProSiteProfiles | Protein profile patterns |\n| SMART | Protein domain analysis |\n| TIGRFAM | JCVI curated protein families |\n| SUPERFAMILY | Structural classification |\n| CDD | Conserved Domain Database (NCBI) |\n| HAMAP | Microbial protein families |\n| NCBIfam | NCBI curated TIGRFAMs |\n| Gene3D | CATH structural classification |\n| PIRSR | PIR site rules |\n\n## Best Practices\n\n- **Use UniProt accession numbers** (not gene names) for the most reliable lookups\n- **Distinguish types**: `family` gives broad classification; `domain` gives specific structural\u002Ffunctional units\n- **InterProScan is faster for novel sequences**: For sequences not in UniProt, submit to the web service\n- **Handle pagination**: Large result sets require iterating through pages\n- **Combine with UniProt data**: InterPro entries often include links to UniProt, PDB, and GO\n\n## Additional Resources\n\n- **InterPro website**: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002F\n- **InterProScan** (run locally): https:\u002F\u002Fgithub.com\u002Febi-pf-team\u002Finterproscan\n- **API documentation**: https:\u002F\u002Fgithub.com\u002FProteinsWebTeam\u002Finterpro7-api\u002Fblob\u002Fmaster\u002Fdocs\u002F\n- **Pfam**: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fentry\u002Fpfam\u002F\n- **Citation**: Paysan-Lafosse T et al. (2023) Nucleic Acids Research. PMID: 36350672\n","# InterPro Database\n\n## Overview\n\nInterPro (https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002F) is a comprehensive resource for protein family and domain classification maintained by EMBL-EBI. It integrates signatures from 13 member databases including Pfam, PANTHER, PRINTS, ProSite, SMART, TIGRFAM, SUPERFAMILY, CDD, and others, providing a unified view of protein functional annotations for over 100 million protein sequences.\n\nInterPro classifies proteins into:\n- **Families**: Groups of proteins sharing common ancestry and function\n- **Domains**: Independently folding structural\u002Ffunctional units\n- **Homologous superfamilies**: Structurally similar protein regions\n- **Repeats**: Short tandem sequences\n- **Sites**: Functional sites (active, binding, PTM)\n\n**Key resources:**\n- InterPro website: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002F\n- REST API: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fapi\u002F\n- API documentation: https:\u002F\u002Fgithub.com\u002FProteinsWebTeam\u002Finterpro7-api\u002Fblob\u002Fmaster\u002Fdocs\u002F\n- Python client: via `requests`\n\n## When to Use This Skill\n\nUse InterPro when:\n\n- **Protein function prediction**: What function(s) does an uncharacterized protein likely have?\n- **Domain architecture**: What domains make up a protein, and in what order?\n- **Protein family classification**: Which family\u002Fsuperfamily does a protein belong to?\n- **GO term annotation**: Map protein sequences to Gene Ontology terms via InterPro\n- **Evolutionary analysis**: Are two proteins in the same homologous superfamily?\n- **Structure prediction context**: What domains should a new protein structure be compared against?\n- **Pipeline annotation**: Batch-annotate proteomes or novel sequences\n\n## Core Capabilities\n\n### 1. InterPro REST API\n\nBase URL: `https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fapi\u002F`\n\n```python\nimport requests\n\nBASE_URL = \"https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fapi\"\n\ndef interpro_get(endpoint, params=None):\n    url = f\"{BASE_URL}\u002F{endpoint}\"\n    headers = {\"Accept\": \"application\u002Fjson\"}\n    response = requests.get(url, params=params, headers=headers)\n    response.raise_for_status()\n    return response.json()\n```\n\n### 2. Look Up a Protein\n\n```python\ndef get_protein_entries(uniprot_id):\n    \"\"\"Get all InterPro entries that match a UniProt protein.\"\"\"\n    data = interpro_get(f\"protein\u002FUniProt\u002F{uniprot_id}\u002Fentry\u002FInterPro\u002F\")\n    return data\n\n# Example: Human p53 (TP53)\nresult = get_protein_entries(\"P04637\")\nentries = result.get(\"results\", [])\n\nfor entry in entries:\n    meta = entry[\"metadata\"]\n    print(f\"  {meta['accession']} ({meta['type']}): {meta['name']}\")\n    # e.g., IPR011615 (domain): p53, tetramerisation domain\n    #       IPR010991 (domain): p53, DNA-binding domain\n    #       IPR013872 (family): p53 family\n```\n\n### 3. Get Specific InterPro Entry\n\n```python\ndef get_entry(interpro_id):\n    \"\"\"Fetch details for an InterPro entry.\"\"\"\n    return interpro_get(f\"entry\u002FInterPro\u002F{interpro_id}\u002F\")\n\n# Example: Get Pfam domain PF00397 (WW domain)\nww_entry = get_entry(\"IPR001202\")\nprint(f\"Name: {ww_entry['metadata']['name']}\")\nprint(f\"Type: {ww_entry['metadata']['type']}\")\n\n# Also supports member database IDs:\ndef get_pfam_entry(pfam_id):\n    return interpro_get(f\"entry\u002FPfam\u002F{pfam_id}\u002F\")\n\npfam = get_pfam_entry(\"PF00397\")\n```\n\n### 4. Search Proteins by InterPro Entry\n\n```python\ndef get_proteins_for_entry(interpro_id, database=\"UniProt\", page_size=25):\n    \"\"\"Get all proteins annotated with an InterPro entry.\"\"\"\n    params = {\"page_size\": page_size}\n    data = interpro_get(f\"entry\u002FInterPro\u002F{interpro_id}\u002Fprotein\u002F{database}\u002F\", params)\n    return data\n\n# Example: Find all human kinase-domain proteins\nkinase_proteins = get_proteins_for_entry(\"IPR000719\")  # Protein kinase domain\nprint(f\"Total proteins: {kinase_proteins['count']}\")\n```\n\n### 5. Domain Architecture\n\n```python\ndef get_domain_architecture(uniprot_id):\n    \"\"\"Get the complete domain architecture of a protein.\"\"\"\n    data = interpro_get(f\"protein\u002FUniProt\u002F{uniprot_id}\u002F\")\n    return data\n\n# Example: Get full domain architecture for EGFR\negfr = get_domain_architecture(\"P00533\")\n\n# The response includes locations of all matching entries on the sequence\nfor entry in egfr.get(\"entries\", []):\n    for fragment in entry.get(\"entry_protein_locations\", []):\n        for loc in fragment.get(\"fragments\", []):\n            print(f\"  {entry['accession']}: {loc['start']}-{loc['end']}\")\n```\n\n### 6. GO Term Mapping\n\n```python\ndef get_go_terms_for_protein(uniprot_id):\n    \"\"\"Get GO terms associated with a protein via InterPro.\"\"\"\n    data = interpro_get(f\"protein\u002FUniProt\u002F{uniprot_id}\u002F\")\n\n    # GO terms are embedded in the entry metadata\n    go_terms = []\n    for entry in data.get(\"entries\", []):\n        go = entry.get(\"metadata\", {}).get(\"go_terms\", [])\n        go_terms.extend(go)\n\n    # Deduplicate\n    seen = set()\n    unique_go = []\n    for term in go_terms:\n        if term[\"identifier\"] not in seen:\n            seen.add(term[\"identifier\"])\n            unique_go.append(term)\n\n    return unique_go\n\n# GO terms include:\n# {\"identifier\": \"GO:0004672\", \"name\": \"protein kinase activity\", \"category\": {\"code\": \"F\", \"name\": \"Molecular Function\"}}\n```\n\n### 7. Batch Protein Lookup\n\n```python\ndef batch_lookup_proteins(uniprot_ids, database=\"UniProt\"):\n    \"\"\"Look up multiple proteins and collect their InterPro entries.\"\"\"\n    import time\n    results = {}\n    for uid in uniprot_ids:\n        try:\n            data = interpro_get(f\"protein\u002F{database}\u002F{uid}\u002Fentry\u002FInterPro\u002F\")\n            entries = data.get(\"results\", [])\n            results[uid] = [\n                {\n                    \"accession\": e[\"metadata\"][\"accession\"],\n                    \"name\": e[\"metadata\"][\"name\"],\n                    \"type\": e[\"metadata\"][\"type\"]\n                }\n                for e in entries\n            ]\n        except Exception as e:\n            results[uid] = {\"error\": str(e)}\n        time.sleep(0.3)  # Rate limiting\n    return results\n\n# Example\nproteins = [\"P04637\", \"P00533\", \"P38398\", \"Q9Y6I9\"]\ndomain_info = batch_lookup_proteins(proteins)\nfor uid, entries in domain_info.items():\n    print(f\"\\n{uid}:\")\n    for e in entries[:3]:\n        print(f\"  - {e['accession']} ({e['type']}): {e['name']}\")\n```\n\n### 8. Search by Text or Taxonomy\n\n```python\ndef search_entries(query, entry_type=None, taxonomy_id=None):\n    \"\"\"Search InterPro entries by text.\"\"\"\n    params = {\"search\": query, \"page_size\": 20}\n    if entry_type:\n        params[\"type\"] = entry_type  # family, domain, homologous_superfamily, etc.\n\n    endpoint = \"entry\u002FInterPro\u002F\"\n    if taxonomy_id:\n        endpoint = f\"entry\u002FInterPro\u002Ftaxonomy\u002FUniProt\u002F{taxonomy_id}\u002F\"\n\n    return interpro_get(endpoint, params)\n\n# Search for kinase-related entries\nkinase_entries = search_entries(\"kinase\", entry_type=\"domain\")\n```\n\n## Query Workflows\n\n### Workflow 1: Characterize an Unknown Protein\n\n1. **Run InterProScan** locally or via the web (https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fsearch\u002Fsequence\u002F) to scan a protein sequence\n2. **Parse results** to identify domain architecture\n3. **Look up each InterPro entry** for biological context\n4. **Get GO terms** from associated InterPro entries for functional inference\n\n```python\n# After running InterProScan and getting a UniProt ID:\ndef characterize_protein(uniprot_id):\n    \"\"\"Complete characterization workflow.\"\"\"\n\n    # 1. Get all annotations\n    entries = get_protein_entries(uniprot_id)\n\n    # 2. Group by type\n    by_type = {}\n    for e in entries.get(\"results\", []):\n        t = e[\"metadata\"][\"type\"]\n        by_type.setdefault(t, []).append({\n            \"accession\": e[\"metadata\"][\"accession\"],\n            \"name\": e[\"metadata\"][\"name\"]\n        })\n\n    # 3. Get GO terms\n    go_terms = get_go_terms_for_protein(uniprot_id)\n\n    return {\n        \"families\": by_type.get(\"family\", []),\n        \"domains\": by_type.get(\"domain\", []),\n        \"superfamilies\": by_type.get(\"homologous_superfamily\", []),\n        \"go_terms\": go_terms\n    }\n```\n\n### Workflow 2: Find All Members of a Protein Family\n\n1. Identify the InterPro family entry ID (e.g., IPR000719 for protein kinases)\n2. Query all UniProt proteins annotated with that entry\n3. Filter by organism\u002Ftaxonomy if needed\n4. Download FASTA sequences for phylogenetic analysis\n\n### Workflow 3: Comparative Domain Analysis\n\n1. Collect proteins of interest (e.g., all paralogs)\n2. Get domain architecture for each protein\n3. Compare domain compositions and orders\n4. Identify domain gain\u002Floss events\n\n## API Endpoint Summary\n\n| Endpoint | Description |\n|----------|-------------|\n| `\u002Fprotein\u002FUniProt\u002F{id}\u002F` | Full annotation for a protein |\n| `\u002Fprotein\u002FUniProt\u002F{id}\u002Fentry\u002FInterPro\u002F` | InterPro entries for a protein |\n| `\u002Fentry\u002FInterPro\u002F{id}\u002F` | Details of an InterPro entry |\n| `\u002Fentry\u002FPfam\u002F{id}\u002F` | Pfam entry details |\n| `\u002Fentry\u002FInterPro\u002F{id}\u002Fprotein\u002FUniProt\u002F` | Proteins with an entry |\n| `\u002Fentry\u002FInterPro\u002F` | Search\u002Flist InterPro entries |\n| `\u002Ftaxonomy\u002FUniProt\u002F{tax_id}\u002F` | Proteins from a taxon |\n| `\u002Fstructure\u002FPDB\u002F{pdb_id}\u002F` | Structures mapped to InterPro |\n\n## Member Databases\n\n| Database | Focus |\n|----------|-------|\n| Pfam | Protein domains (HMM profiles) |\n| PANTHER | Protein families and subfamilies |\n| PRINTS | Protein fingerprints |\n| ProSitePatterns | Amino acid patterns |\n| ProSiteProfiles | Protein profile patterns |\n| SMART | Protein domain analysis |\n| TIGRFAM | JCVI curated protein families |\n| SUPERFAMILY | Structural classification |\n| CDD | Conserved Domain Database (NCBI) |\n| HAMAP | Microbial protein families |\n| NCBIfam | NCBI curated TIGRFAMs |\n| Gene3D | CATH structural classification |\n| PIRSR | PIR site rules |\n\n## Best Practices\n\n- **Use UniProt accession numbers** (not gene names) for the most reliable lookups\n- **Distinguish types**: `family` gives broad classification; `domain` gives specific structural\u002Ffunctional units\n- **InterProScan is faster for novel sequences**: For sequences not in UniProt, submit to the web service\n- **Handle pagination**: Large result sets require iterating through pages\n- **Combine with UniProt data**: InterPro entries often include links to UniProt, PDB, and GO\n\n## Additional Resources\n\n- **InterPro website**: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002F\n- **InterProScan** (run locally): https:\u002F\u002Fgithub.com\u002Febi-pf-team\u002Finterproscan\n- **API documentation**: https:\u002F\u002Fgithub.com\u002FProteinsWebTeam\u002Finterpro7-api\u002Fblob\u002Fmaster\u002Fdocs\u002F\n- **Pfam**: https:\u002F\u002Fwww.ebi.ac.uk\u002Finterpro\u002Fentry\u002Fpfam\u002F\n- **Citation**: Paysan-Lafosse T et al. (2023) Nucleic Acids Research. PMID: 36350672\n",{"name":5,"license":15,"metadata":42,"description":7},{"skill-author":43},"Kuan-lin Huang","main","d3998984163a67a891ee8397e35adf79b14e872d","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical","https:\u002F\u002Fgithub.com\u002Fhuamu668","2026-03-12 11:49:42",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add huamu668\u002Fclawhub-openclaw-medical --skill interpro-database",{"tool":55,"command":56},"bunx","bunx skills add huamu668\u002Fclawhub-openclaw-medical --skill interpro-database",{"tool":58,"command":59},"pnpm","pnpm dlx skills add huamu668\u002Fclawhub-openclaw-medical --skill interpro-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Finterpro-database\u002FSKILL.md",true,[],[64,85,113,132,146,175],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":37},"01M6DR3JGAEX5G5FR7TK3D8NS8","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fzarr-python\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,82,83,84],"python","zarr python","storage","scientific computing","numpy","arrays","pipelines","parallel","dask","cloud","gcs","s3","integration",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":94,"publishedAt":37},"01M6DR101MEDE5XT2ZZ5VBEAA5","vaex","Use this skill for processing and analyzing large tabular datasets (billions of rows) that exceed available RAM. Vaex excels at out-of-core DataFrame operations, lazy evaluation, fast aggregations, efficient visualization of big data, and machine learning on large datasets. Apply when users need to work with large CSV\u002FHDF5\u002FArrow\u002FParquet files, perform fast statistics on massive datasets, create visualizations of big data, or build ML pipelines that do not fit in memory.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fvaex\u002FSKILL.md",[91],{"categoryNo":92,"categoryName":93,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000013","分析与可视化",[87,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,32,111,112],"machine learning","in memory","learning","csv","visualization","create","core","ml","big data","memory","visualizations","fit","statistics","do","build","files","operations","work",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":37},"01M6DQVMB0GBKF2W44FKXVD1P7","torch-geometric","Graph Neural Networks (PyG). Node\u002Fgraph classification, link prediction, GCN, GAT, GraphSAGE, heterogeneous graphs, molecular property prediction, for geometric deep learning.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Ftorch-geometric\u002FSKILL.md",[],[120,97,121,122,123,124,125,126,127,128,129,130,131,29],"torch geometric","node","Neural","link","gat","molecular","graphs","deep","networks","graph","neural networks","deep learning",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":37},"01M6DQH2GZPZKEQ140GRCJ9746","tiledbvcf","Efficient storage and retrieval of genomic variant data using TileDB. Scalable VCF\u002FBCF ingestion, incremental sample addition, compressed storage, parallel queries, and export capabilities for population genomics.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Ftiledbvcf\u002FSKILL.md",[],[134,139,140,141,142,143,144,79,145,74],"data","genomics","sample","queries","ingestion","export","capabilities",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":160,"publishedAt":37},"01M6DQD9G958EM6NHJ994D0SK1","solublempnn","Solubility-optimized protein sequence design using SolubleMPNN. Use this skill when: (1) Designing for E. coli expression, (2) Optimizing solubility of designed proteins, (3) Reducing aggregation propensity, (4) Need high-yield expression, (5) Avoiding inclusion body formation.\nFor standard design, use proteinmpnn. For ligand-aware design, use ligandmpnn.","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fsolublempnn\u002FSKILL.md",[152,155],{"categoryNo":153,"categoryName":154,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":156,"categoryName":157,"taxonomyType":158,"taxonomyTypeDesc":159},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[148,161,162,32,163,164,165,166,167,168,169,170,171,172,173,174],"inclusion","yield","modal","Tools","aggregation","design","proteins","solubility","proteinmpnn","ligandmpnn","ligand-aware","inverse-folding","expression","sequence-design",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":179,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":37},"01M6DQ8W91A93MGGCEEW949HBC","scvelo","RNA velocity analysis with scVelo. Estimate cell state transitions from unspliced\u002Fspliced mRNA dynamics, infer trajectory directions, compute latent time, and identify driver genes in single-cell RNA-seq data. Complements Scanpy\u002FscVI-tools for trajectory inference.","BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fhuamu668\u002Fclawhub-openclaw-medical\u002Fblob\u002Fmain\u002Fscvelo\u002FSKILL.md",[],[177,183,184,185,186,187,188,189,190,191,28,164,139,192,193],"RNA","single-cell","infer","cell","transitions","time","compute","velocity","scanpy","state","inference"]