IO¶
File loading and structure management.
Shortcuts¶
| Shortcut | Full Command |
|---|---|
/load <file_or_id> |
/io load <file_or_id> |
/clear |
/io clear |
Commands¶
/io load¶
Load a structure from a PDB ID or file path.
/io load 1ake # Fetch from PDB by ID
/io load structure.pdb # Load local file
/io load model.cif # Load mmCIF file
Behavior:
- 4-character alphanumeric strings are treated as PDB IDs and fetched from RCSB
- File paths are loaded directly
- Auto-detects metals and applies special styling (spheres + coordination)
- Registers structure in the session system for multi-structure support
- Updates the scope to the newly loaded structure
Returns: "Loaded 1AKE (3816 atoms, chains: A)"
/io clear¶
Remove all loaded structures and reset the viewer.
Clears the structure session, resets scope, and removes all objects.
/io density¶
Load and display electron density maps.
/io project¶
Load a codemol project file.