Map Identifiers
map_identifiersMap a UniProtKB accession to primary external identifiers from databases like PDB, Ensembl, GeneID, and Pfam. Optionally restrict to specific databases for targeted cross-referencing.
Instructions
Map a UniProtKB accession to its PRIMARY external identifiers: the genomic/structural/family core (PDB, AlphaFoldDB, Ensembl, RefSeq, GeneID, HGNC, KEGG, OrthoDB, Pfam, InterPro) by default. Optionally restrict to specific databases. Returns ids grouped by database plus the databases that matched and per-database counts. response_mode (default compact) returns short ids; full restores raw IRIs. For the exhaustive cross-reference set (incl. drug/disease databases like DrugBank/ChEMBL/OpenTargets) use get_protein_cross_references instead. Signature: map_identifiers(accession, databases=, response_mode=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accession | Yes | UniProtKB accession, e.g. P05067 (isoforms like P05067-2 accepted). | |
| databases | No | Target database short names (omit for all available). | |
| response_mode | No | Verbosity: minimal | compact | standard | full (default compact). | compact |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| _meta | No | ||
| error_code | No | ||
| message | No | ||
| retryable | No | ||
| recovery_action | No | ||
| field | No | ||
| allowed_values | No | ||
| hint | No | ||
| accession | No | ||
| database_count | No | ||
| counts | No | ||
| by_database | No | ||
| requested_databases | No | ||
| mapped_databases | No | ||
| unmatched_databases | No | ||
| database_hint | No | ||
| truncated_databases | No |