rcsb_seqcoord_alignments
Map sequence identifiers across PDB, UniProt, and NCBI to find corresponding proteins and aligned regions.
Instructions
Cross-reference a sequence across PDB, UniProt, and NCBI, with aligned ranges.
This is the tool for "which X identifiers correspond to this sequence?" across databases — including NCBI. The RCSB Data API only cross-references UniProt, so use THIS tool for NCBI RefSeq protein / genome mappings (and PDB<->UniProt too). The returned target_alignments[].target_id values are the mapped identifiers in the to_ref system, each with its aligned regions.
Examples: - "What NCBI proteins map to PDB entity 4HHB_1?" query_id="4HHB_1", from_ref="PDB_ENTITY", to_ref="NCBI_PROTEIN" - "Which PDB entities correspond to UniProt P69905?" query_id="P69905", from_ref="UNIPROT", to_ref="PDB_ENTITY"
Args: query_id: The sequence id, in the from_ref system's format — UNIPROT "P69905", NCBI_PROTEIN "NP_000508", NCBI_GENOME "NC_000016", PDB_ENTITY "4HHB_1" (entry_entityNumber), PDB_INSTANCE "4HHB.A" (entry.asym_id). PDB ids must be ENTITY-level, never a bare entry: for a whole entry, first get its polymer entity ids (4HHB -> 4HHB_1, 4HHB_2) and query each one. from_ref: Reference system of query_id. to_ref: Reference system to map onto. seq_range: Optional [begin, end] (1-based) to restrict the query region. fields: Optional GraphQL selection to override the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| to_ref | Yes | ||
| from_ref | Yes | ||
| query_id | Yes | ||
| seq_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||