[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M735N27639DZN4WDA7ATQ3EP":3,"skill-same:01M735N27639DZN4WDA7ATQ3EP":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M735N27639DZN4WDA7ATQ3EP","alterlab-interpro",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. Part of the AlterLab Academic Skills suite.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"CC0-1.0","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Falterlab-interpro\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: alterlab-interpro\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. Part of the AlterLab Academic Skills suite.\nlicense: CC0-1.0\nmetadata:\n    skill-author: AlterLab\n    version: \"1.0.0\"\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":14,"metadata":23,"description":7},{"version":24,"skill-author":25},"1.0.0","AlterLab","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Falterlab-interpro",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add roohe\u002Fagentic-super-skills --skill alterlab-interpro",{"tool":40,"command":41},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill alterlab-interpro",{"tool":43,"command":44},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill alterlab-interpro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Falterlab-interpro\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fdomain_analysis.md","REFERENCE","参考文档",4909,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Falterlab-interpro\u002Freferences\u002Fdomain_analysis.md",[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","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\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]