### Interpro Database
Works with
name: "interpro-database"
description: "Identify domains, families, and sites in proteins; find all proteins in a family or sharing a domain; explore species distribution for a domain; annotate genomes with protein families and GO terms. In..."
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioninterpro-databaseExecute the skills CLI command in your project's root directory to begin installation:
Fetches interpro-database from google-deepmind/science-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate interpro-database. Access via /interpro-database in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
0
upvotes
Run in your terminal
0
installs
0
this week
—
stars
| name | interpro-database |
| description | > Identify domains, families, and sites in proteins; find all proteins in a family or sharing a domain; explore species distribution for a domain; annotate genomes with protein families and GO terms. InterPro combines 14 databases (e.g., Pfam, CDD) into one searchable resource. InterPro-N significantly expands annotation and sequence coverage with deep learning. Includes domain architecture (IDA) search. |
uv: Read the uv skill and follow its Setup instructions to ensure
uv is installed and on PATH.InterPro combines signatures from multiple, diverse databases into a single searchable resource, reducing redundancy and helping users interpret their sequence analysis results. By uniting these member databases (e.g., Pfam, CDD, SMART), InterPro capitalises on their individual strengths to produce a powerful diagnostic tool and integrated resource.
Use interpro-database to:
This skill provides a robust utility, interpro_client.py, to interact with the
InterPro API seamlessly. It natively handles rate limiting (HTTP 429),
background query sleep tracking (HTTP 408), terminal errors (HTTP 404/410), and
lazy pagination.
scripts/interpro_client.py helper
script to query the database rather than accessing the database directly.
The scripts automatically enforce fair use and implement retry logic.--limit.
This allows you to rapidly understand the data schema without polluting your
context window or fetching millions of results.Examples:
uv run ./scripts/interpro_client.py fetch protein --source_db reviewed --limit 2 --query_params tax_id=9606 --output exploratory_results.jsonl
import sys
sys.path.append('scripts')
from interpro_client import fetch_interpro_data
import itertools
# fetch_interpro_data lazily yields results page-by-page
results = fetch_interpro_data(
endpoint="entry",
source_db="pfam",
query_params={"page_size": 10}
)
for match in itertools.islice(results, 10):
print(match["metadata"]["accession"])
The arguments strictly map to the four common API path constructions. Do not
format your own / separated strings:
/{endpoint} (e.g. /entry) uv run ./scripts/interpro_client.py fetch entry --limit 10 --output entries.jsonl/{endpoint}/{sourceDB} (e.g. /entry/pfam) uv run ./scripts/interpro_client.py fetch entry --source_db pfam --limit 10 --output pfam_entries.jsonl/{endpoint}/{sourceDB}/{accession} (e.g. /entry/pfam/PF00001) uv run ./scripts/interpro_client.py fetch entry --source_db pfam --accession PF00001 --limit 10 --output pf00001_entry.jsonl/{endpoint}/{sourceDB}/{linked_endpoint}/{sourceDB}/{accession} (e.g.
/entry/interpro/protein/uniprot/P04637) uv run ./scripts/interpro_client.py fetch entry \ --source_db interpro \ --linked_endpoint protein \ --linked_source_db uniprot \ --linked_accession P04637 \ --limit 10 --output p04637_entries.jsonl--source_db)Each endpoint only accepts specific source_db values. Using an invalid value
returns a 404 error.
/entry (16 values): interpro, pfam, cathgene3d, ssf,
panther, cdd, profile, smart, ncbifam, prosite, prints,
hamap, pirsf, sfld, antifam./protein (3 values): uniprot (all), reviewed (SwissProt),
unreviewed (TrEMBL)./structure (1 value): pdb./taxonomy (1 value): uniprot./proteome (1 value): uniprot./set (2 values): pfam, cdd.For a complete, exhaustive list of all query parameters, see the Full API Reference.
The API is fully open and supports 6 core endpoints. You can combine them using the linked parameters described above. Below is a nested list of the specific query parameters available for each endpoint:
/entry (Domain, family, active site, repeat, or homologous superfamily
entries)
integrated: Filter by integrated status (e.g., pfam).type: Filter by type (e.g., family, domain,
homologous_superfamily).go_term / go_category: Filter by Gene Ontology.ida_search / ida_ignore / exact / ordered: Filter by domain
architecture (see IDA Search section).extra_fields: Request additional data (e.g., counters for match
coordinates).group_by / sort_by: Aggregate or sort results (valid values depend
on context, see Full API Reference).uv run ./scripts/interpro_client.py count entry --source_db pfam --query_params type=domain --output count.jsonl/protein (Protein records matching entries or domains)
tax_id: Filter by taxonomy ID (does not search lineage).match_presence: Filter by proteins having InterPro matches
(true/false).is_fragment: Filter complete vs. fragment sequences.group_by: Aggregate results (e.g., taxonomy).extra_fields: Request sequence or match details.isoforms / residues / structureinfo: Include specific
sub-features.conservation / extra_features: Append residue conservation flags or
Mobidb/coil features (only valid for
/protein/{source_db}/{accession}).uv run ./scripts/interpro_client.py fetch protein --source_db uniprot --limit 20 --query_params tax_id=9606 --output human_proteins.jsonl/structure (PDB structures linked to InterPro entries)
experiment_type: Filter by experimental method (e.g., X-RAY DIFFRACTION).resolution: Filter by resolution limit.extra_fields: Include additional structural metadata.group_by: Aggregate results../scripts/interpro_client.py fetch structure --source_db pdb --accession 1ATP --limit 10 --output 1atp_structures.jsonl/taxonomy (Taxonomy distribution nodes)
key_species: Filter to limit to key species.with_names: Include scientific names.filter_by_entry / filter_by_entry_db: Filter intersection with
specific entries.extra_fields: Additional taxonomic metadata../scripts/interpro_client.py fetch taxonomy --source_db uniprot --accession 9606 --limit 10 --output human_taxonomy.jsonl/proteome (Complete proteomes linked to InterPro)
extra_fields: General query expansion.uv run ./scripts/interpro_client.py fetch proteome --source_db uniprot --accession UP000005640 --limit 10 --output proteome.jsonl/set (Curated sets of related entries, e.g., Pfam clans)
extra_fields: Additional metadata (only valid for
/set/{sourceDB}).uv run ./scripts/interpro_client.py fetch set --source_db pfam --accession CL0001 --limit 10 --output pfam_clan.jsonlInterPro provides powerful tools for searching proteins by their domain architecture (the exact combination and order of domains). Because the API does not allow querying proteins directly by multiple domains at once (e.g., "give me proteins with PF00069 AND PF00017"), finding proteins with specific domain combinations requires a two-step process.
ida_search)The ida_search parameter is used on the root /entry endpoint to find all
Domain Architectures (IDAs) containing the domains you specify.
/entry endpoint.ida_search):
ida_ignore: Ignores the given domains in the search (query param).ordered: Ensures domains appear in the exact specified order (flag).exact: Ensures the architecture matches exactly (no additional
domains) (flag). Requires ordered flag to be present.Example: Find architectures containing both a kinase domain (PF00069) and an SH2 domain (PF00017), in that exact order:
uv run scripts/interpro_client.py fetch entry
--query_params ida_search=PF00069,PF00017
--flags ordered exact
--output architectures.jsonl
Note: This returns the architectures and their unique ida_ids, not all
individual proteins.
ida)Once you have the ida_ids (e.g., 619edbb...) from Step 1, you can fetch all
the actual proteins that share that precise layout by filtering the /protein
endpoint.
Constraints:
/protein and /entry/{sourceDB}/{accession} endpoints.Example: Fetch proteins matching one of the architecture IDs from Step 1:
uv run scripts/interpro_client.py fetch protein
--source_db uniprot
--query_params ida=619edbb2b445bfa3ad51bd894e3c115b025a5f25
--output matching_proteins.jsonl
(When building pipelines or querying comprehensively, you would loop through
all the ida_ids from Step 1 and run Step 2 for each one).
Each InterPro entry is assigned a type indicating what you can infer when a protein matches the entry:
Active site (sequence containing conserved residues for
catalytic activity) and Binding site (sequence containing conserved
residues forming a protein interaction site).InterPro-N is a deep-learning-based extension of the standard InterPro database. It utilizes an AI architecture inspired by computer vision to treat protein sequence annotation as a "panoptic segmentation" task, labeling residues and distinguishing between domains.
Standard InterPro signatures are the "gold standard" and should not be discarded in favor of InterPro-N predictions. Use InterPro-N primarily to fill in gaps or refine results.
In addition to standard InterPro:
Instead of standard InterPro (specific scenarios):
When you are asked to find annotations for a protein and standard InterPro queries return no results or no annotations, you MUST check InterPro-N as a fallback.
Example Scenario: If a user asks to "List the SSF annotations for protein X"
and the standard query returns no hits, you should retry the query with the
interpro_n flag.
This fallback is crucial because InterPro-N can identify remote homologs and domains in "dark matter" proteins that standard methods miss.
If found, ALWAYS report to the user that these annotations are deep learning predictions from InterPro-N.
InterPro-N predictions are accessed by passing the interpro_n flag to the
protein endpoint with uniprot as the source database.
Via CLI:
uv run ./scripts/interpro_client.py fetch protein
--source_db uniprot
--accession A0A096LNN2
--flags interpro_n
--output A0A096LNN2_interpro_n.jsonl
Via Python Pipeline:
results = fetch_interpro_data(
endpoint="protein",
source_db="uniprot",
accession="A0A096LNN2",
flags=["interpro_n"])
Always Use UniProt Accessions, NEVER Gene Names: When looking up
proteins in InterPro, you MUST use their UniProt Accessions (e.g. P04637).
InterPro does not natively support or reliably map gene names (e.g. TP53).
If the user provides a gene name, you must use a database like Ensembl or
UniProt first to resolve it to an accession.
NEVER Iterate to Count: When asked for an aggregate count (e.g., "How
many domains are there?"), you MUST read the count field from the initial
API JSON response using the get_interpro_count() helper. NEVER iterate
over the fetch_interpro_data generator to tally elements. Iterating over
an endpoint with 50,000+ entries just to count them silently hangs the agent
and abuses the API. Every time. No exceptions.
✅ Correct:
Via CLI:
uv run ./scripts/interpro_client.py count entry
--source_db interpro
--query_params type=domain
--output count.json
Via Python Pipeline:
from interpro_client import get_interpro_count
cnt = get_interpro_count(
endpoint="entry",
source_db="interpro",
query_params={"type": "domain"},
)
❌ Wrong (Iterating over fetch):
# NEVER DO THIS:
uv run ./scripts/interpro_client.py fetch entry
--source_db interpro
--query_params type=domain
--output output.jsonl
&& wc -l output.jsonl
For detailed examples of the invocations and JSON output schemas returned by various endpoints, see the Example Responses Reference. This TSV contains command-line calls, Python equivalents, and the corresponding JSON payload structures.
# Fetches InterPro Entries within UniProt protein P04637
# URL equivalent: /entry/interpro/protein/uniprot/P04637
uv run ./scripts/interpro_client.py fetch entry
--source_db interpro
--linked_endpoint protein
--linked_source_db uniprot
--linked_accession P04637
--output p04637_domains.jsonl
# URL equivalent: /structure/pdb/entry/interpro/IPR011615
# Only fetch the first 5 structures
uv run ./scripts/interpro_client.py fetch structure
--source_db pdb
--linked_endpoint entry
--linked_source_db interpro
--linked_accession IPR011615
--output ipr011615_structures.jsonl
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
google-deepmind/science-skills
google-deepmind/science-skills
google-deepmind/science-skills
K-Dense-AI/scientific-agent-skills
K-Dense-AI/scientific-agent-skills
K-Dense-AI/scientific-agent-skills
interpro-database has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: interpro-database is focused, and the summary matches what you get after install.
We added interpro-database from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Solid pick for teams standardizing on skills: interpro-database is focused, and the summary matches what you get after install.
interpro-database has been reliable in day-to-day use. Documentation quality is above average for community skills.
interpro-database fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added interpro-database from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
interpro-database fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
interpro-database has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: interpro-database is focused, and the summary matches what you get after install.
showing 1-10 of 42