fetch_structure
Retrieve protein structures from PDB or AlphaFold DB, isolating the functional multimer and coloring AlphaFold predictions by confidence.
Instructions
Fetches a protein structure from the PDB, or a predicted model from AlphaFold DB.
By default, it attempts to fetch the first biological assembly (multimer), and removes any unrelated chains/states that are not part of the primary multimer.
A UniProt accession or an AF- prefixed identifier routes to AlphaFold DB
instead and is coloured by pLDDT confidence — see :func:fetch_alphafold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | Clear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view. | |
| obj_name | No | Optional custom name for the object in PyMOL | |
| pdb_code | Yes | 4-letter PDB code (e.g. "1abc"), or an AlphaFold identifier (e.g. "P69905", "af-P69905"). | |
| multimer_cutoff | No | Distance (A) between chains to keep them in the same multimer. Default 8.0A is suitable for most functional assemblies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |