download_structure_file
Download protein structure files from RCSB PDB using a 4-character PDB ID. Choose from PDB, mmCIF, XML, or compressed formats and save to your desired directory.
Instructions
Download a structure file from RCSB PDB.
Args: pdb_id: The 4-character PDB identifier (e.g., '1ABC') file_format: Format to download. Options: - 'pdb': PDB format (default) - 'cif': mmCIF format - 'xml': PDBML/XML format - 'pdb.gz': Compressed PDB - 'cif.gz': Compressed mmCIF - 'xml.gz': Compressed XML output_dir: Directory to save the file (optional, defaults to current directory) filename: Custom filename (optional, uses PDB ID + extension by default)
Returns: JSON string with download status and file path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdb_id | Yes | ||
| filename | No | ||
| output_dir | No | ||
| file_format | No | pdb |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |