get_sequence
Returns a loaded structure's amino-acid sequence in FASTA and maps sequence positions to PDB residue numbers, including chain breaks and unmodelled gaps.
Instructions
Returns the amino-acid sequence of a loaded structure, in FASTA.
Also reports how the sequence positions line up with the residue numbers in the file, and where the chain is broken. Both matter: PDB numbering rarely starts at 1, so "residue 50" in a paper and position 50 in the sequence are usually different residues — and unmodelled loops leave gaps in the structure that the sequence alone does not reveal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"obj_name": "<obj_name>"
},
"name": "get_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain to extract. Omit for every chain in the object. | |
| obj_name | Yes | PyMOL object (e.g. "1hsg"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |