interpro-database
Skill2 starsChanged 3 months agoMITView on GitHub
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.
8 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- MarieLynneBlock/arcanum-artifextheir own version, first seen Nov 1, 2026
- Osmosy/vector-geneedited, first seen Oct 13, 2026
- BeyondTheProtocol/polarisedited, first seen Sep 25, 2026
- jaechang-hits/SciAgent-Skillstheir own version, first seen Jul 24, 2026
- google-deepmind/science-skillsedited, first seen Jul 1, 2026
- uppifyagency/boilerplate-saas-2026edited, first seen Jun 2, 2026
Used with
Projects with it also use usfiscaldata, benchling-integration and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
yf8578Skillusfiscaldata
Query the U.S. Treasury Fiscal Data API for federal financial data including national debt, government spending, revenue, interest rates, exchange rates, and savings bonds. Access 54 datasets and 182 data tables with no API key required. Use when working with U.S. federal fiscal data, national debt tracking (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates on Treasury securities, foreign exchange rates, savings bonds, or any U.S. government financial statistics.
Also in 4 projects that use this
garri333Skillbenchling-integration
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
Also in 5 projects that use this
garri333Skilletetoolkit
Phylogenetic tree toolkit (ETE). Tree manipulation (Newick/NHX), evolutionary event detection, orthology/paralogy, NCBI taxonomy, visualization (PDF/SVG), for phylogenomics.
Also in 5 projects that use this
tondevrelSkillscikit-bio
Library for bioinformatics and community ecology statistics. Provides data structures and algorithms for sequences, alignments, phylogenetics, and diversity analysis. Essential for microbiome research and ecological data science. Use for alpha/beta diversity metrics, ordination (PCoA), phylogenetic trees, sequence manipulation (DNA/RNA/Protein), distance matrices, PERMANOVA, and community ecology analysis.
Also in 5 projects that use this
tondevrelSkillsimpy
A process-based discrete-event simulation framework. Use for modeling queuing systems, supply chains, manufacturing processes, network simulation, project management, and any system where events occur at specific points in time. Load when working with discrete event simulation, process modeling, resource allocation, virtual time, simpy.Environment, simpy.Resource, or event-driven simulation.
Also in 4 projects that use this
ashrafkahoush-uxSkillwhat-if-oracle
Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like "what if...", "what would happen if...", "what are the possibilities", "explore scenarios", "scenario analysis", "possibility space", "what could go wrong", "best case / worst case", "risk analysis", "contingency planning", "strategic options", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.
Also in 4 projects that use this
- +5 more from garri333
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- google-deepmind/science-skills★ 3.4k99% same
- BeyondTheProtocol/polaris★ 4799% same
- uppifyagency/boilerplate-saas-2026★ 1100% same
- Osmosy/vector-gene★ 099% same
Wrote their own version · 4
- LeonChaoX/qinyan-academic-skills★ 910same name
- jaechang-hits/SciAgent-Skills★ 386same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- MarieLynneBlock/arcanum-artifex★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository93 other files it gives its agents.
- AGENTS.mdAGENTS.md
- npm/AGENTS.mdAGENTS.md
- advanced-image-slicing-skillSkill
- agents-sdkSkill
- agent-weaver-builderSkill
- alphafold-database-fetch-and-analyzeSkill
- alphagenome-single-variant-analysisSkill
- animation-scroll-effectsSkill
- backend-api-shield-servicesSkill
- chembl-databaseSkill
- chronicle-logger-timestampSkill
- cicd-automation-deploySkill
- cinematic-animator-gsapSkill
- clinical-trials-databaseSkill
- clinvar-databaseSkill
- cloudflare-ai-resourcesSkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- data-modeler-schemaSkill
- dbsnp-databaseSkill
- design-system-master-hslSkill
- durable-objectsSkill
- embl-ebi-olsSkill
- encode-ccres-databaseSkill
- ensembl-databaseSkill
- explode-animation-skillSkill
- find-skillsSkill
- foldseek-structural-searchSkill
- frontend-clean-coder-jsSkill
- gnomad-databaseSkill
- google-antigravity-sdkSkill
- gtex-databaseSkill
- human-protein-atlas-databaseSkill
- inner-learner-feedbackSkill
- integrative-architect-docsSkill
- intent-observer-audit360Skill
- isolated-sandbox-environmentSkill
- jaspar-databaseSkill
- k6-load-testingSkill
- lightweight-dep-managerSkill
- literature-search-arxivSkill
- literature-search-biorxivSkill
- literature-search-europepmcSkill
- literature-search-openalexSkill
- maestro-hadi-orchestrationSkill
- majlis-rulesSkill
- marketing-funnel-skillSkill
- ncbi-sequence-fetchSkill
- neuro-marketing-copywriterSkill
- nuclei-security-auditorSkill
- openfda-databaseSkill
- opentargets-databaseSkill
- owasp-zap-api-shieldSkill
- pdb-databaseSkill
- pdf-scan-layer-cleanerSkill
- premium-visual-polish-skillSkill
- protein-sequence-msaSkill
- protein-sequence-similarity-searchSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 9 are common, 0 are distinctive, and 8 are very specific to this project.
9
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. - Very specific: line 23
User Notification: If LICENSE_NOTIFICATION.txt does not already exist in this skill directory then (1) prominently notify the user to check …
- Very specific: line 55
Use the Wrapper: ALWAYS execute the scripts/interpro_client.py helper script to query the database rather than accessing the database …
- Very specific: line 58
For exploratory queries: ALWAYS use the CLI with a strict --limit.
- Very specific: line 61
Output to file: Use the CLI with --output to output to a file rather than attempting to print it all to the console.
- Common: line 64
For more complex pipelines: import the module natively into your Python scripts to consume the generator directly, preventing the need to …
- Common: line 67
Notification: If this skill is used, ensure this is mentioned in the output.
- Common: line 296
Analyzing "Dark Matter" (Uncharacterised Proteins): Use when a protein returns no hits in standard InterPro.
- Common: line 299
Resolving Complex Repeats: Use for proteins with multiple tandem repeats (e.g., TPR or WD40) where standard HMMs might merge or miss them.
- Common: line 301
Predicting Discontinuous Domains: Use when a domain sequence is interrupted by a completely different inserted sequence.
- Common: line 306
Precise Boundary Delineation: When you need more accurate start-and-stop coordinates for a domain than fuzzy standard hits provide.
- Common: line 313
When you are asked to find annotations for a protein and standard InterPro queries return no results or no annotations, you MUST check …
- Very specific: line 317
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 …
- Common: line 324
If found, ALWAYS report to the user that these annotations are deep learning predictions from InterPro-N.
- Very specific: line 354
Always Use UniProt Accessions, NEVER Gene Names: When looking up proteins in InterPro, you MUST use their UniProt Accessions (e.g.
- Common: line 357
If the user provides a gene name, you must use a database like Ensembl or UniProt first to resolve it to an accession.
- Very specific: line 360
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 …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
InterPro Database Access
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If LICENSE_NOTIFICATION.txt does not already exist in this skill directory then (1) prominently notify the user to check the terms at https://www.ebi.ac.uk/interpro/ and https://www.ebi.ac.uk/about/terms-of-use/, then (2) create the file recording the notification text and timestamp.
Overview
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:
- Identify what domains, families, and sites are found in a particular protein.
- Identify all proteins that belong to a protein family or contain a particular domain, even when the names and activities of the proteins are highly variable.
- Examine the species in which a particular protein family or domain is found.
- Annotate genomes with protein family information and Gene Ontology (GO) terms.
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.
Core Rules
- Use the Wrapper: ALWAYS execute the
scripts/interpro_client.pyhelper script to query the database rather than accessing the database directly. The scripts automatically enforce fair use and implement retry logic. - For exploratory queries: ALWAYS use the CLI with a strict
--limit. This allows you to rapidly understand the data schema without polluting your context window or fetching millions of results. - Output to file: Use the CLI with --output to output to a file rather than attempting to print it all to the console. Process the output using jq or code.
- For more complex pipelines import the module natively into your Python scripts to consume the generator directly, preventing the need to deserialize CLI strings in large workflows.
- Notification: If this skill is used, ensure this is mentioned in the output.
Examples:
uv run ./scripts/interpro_client.py fetch protein --source_db reviewed --limit 2 --query_params tax_id=9606 --output exploratory_results.jsonlimport 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"])4 Ways to Construct Endpoints:
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
Valid Source Databases (--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.
Quick Reference / Core Endpoints & Parameters
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.,countersfor match coordinates).group_by/sort_by: Aggregate or sort results (valid values depend on context, see Full API Reference).- Example:
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}).- Example:
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.- Example:
./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.- Example:
./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.- Example:
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}).- Example:
uv run ./scripts/interpro_client.py fetch set --source_db pfam --accession CL0001 --limit 10 --output pfam_clan.jsonl
InterPro Domain Architecture (IDA) Search
InterPro 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.
Step 1: Find matching architectures (ida_search)
The ida_search parameter is used on the root /entry endpoint to find all
Domain Architectures (IDAs) containing the domains you specify.
- Constraints:
- Valid ONLY on the root
/entryendpoint. - Cannot be combined with non-IDA parameters.
- Valid ONLY on the root
- Modifiers (Only valid with
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). Requiresorderedflag 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.jsonlNote: This returns the architectures and their unique ida_ids, not all
individual proteins.
Step 2: Fetch proteins for those architectures (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:
- Valid on
/proteinand/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).
InterPro Entry Types
Each InterPro entry is assigned a type indicating what you can infer when a protein matches the entry:
- Domain: Distinct functional, structural or sequence units that may exist in a variety of biological contexts. Example: PH domain or classical C2H2 zinc finger.
- Family: A group of proteins sharing a common evolutionary origin reflected by related functions, sequence similarities, or primary/secondary/tertiary structures.
- Homologous Superfamily: Proteins sharing an evolutionary origin reflected by structural similarity but often displaying very low sequence similarity. Usually comprises signatures from the SUPERFAMILY and CATH-Gene3D databases.
- Repeat: A short sequence that is typically repeated within a protein, often <50 amino acids long. Example: Leucine Rich Repeats or WD40 repeats.
- Site: Includes
Active site(sequence containing conserved residues for catalytic activity) andBinding site(sequence containing conserved residues forming a protein interaction site).
InterPro-N Predictions
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.
When to use InterPro-N
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:
- Analyzing "Dark Matter" (Uncharacterised Proteins): Use when a protein returns no hits in standard InterPro. InterPro-N excels at identifying remote homologs.
- Resolving Complex Repeats: Use for proteins with multiple tandem repeats (e.g., TPR or WD40) where standard HMMs might merge or miss them.
- Predicting Discontinuous Domains: Use when a domain sequence is interrupted by a completely different inserted sequence.
Instead of standard InterPro (specific scenarios):
- Precise Boundary Delineation: When you need more accurate start-and-stop coordinates for a domain than fuzzy standard hits provide.
- Large-Scale Metagenomic Screening: For initial high-recovery screening of fragmented or highly divergent sequences.
Fallback Strategy: Checking InterPro-N
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.
How to Use
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.jsonlVia Python Pipeline:
results = fetch_interpro_data(
endpoint="protein",
source_db="uniprot",
accession="A0A096LNN2",
flags=["interpro_n"])Strict Lookup Rules
- 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
countfield from the initial API JSON response using theget_interpro_count()helper. NEVER iterate over thefetch_interpro_datagenerator 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.jsonVia 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
Quick examples
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.
1. Determining all protein domains
# 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.jsonl2. Fetching all PDB structures for an Entry
# 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.jsonlDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

