PDB / AlphaFold
Retrieve 3D protein structures from the RCSB Protein Data Bank or AlphaFold DB. Use pdb_fetch for experimental structures and alphafold_fetch for AI-predicted models.
TOOL
pdb_fetchFetch metadata and structure coordinates for any PDB entry and optionally save to workspace.
| Parameter | Type | Description |
|---|---|---|
| pdb_id * | string | 4-character PDB ID (e.g. 6LU7). |
| format | string | pdb, cif, or fasta (default: pdb). |
| workspace_id | string | Set to save structure file to your workspace. |
from smartsbio import SmartsBio
client = SmartsBio(api_key="sk_live_...")
ws_id = client.workspaces.list()[0].id
result = client.tools.run(
tool_id="pdb_fetch",
input={
"pdb_id": "6LU7", # SARS-CoV-2 main protease
"format": "pdb",
"workspace_id": ws_id,
"output_path": "structures/",
},
)
print(f"Title : {result['title']}")
print(f"Method : {result['method']}")
print(f"Resolution : {result['resolution_a']} Å")
print(f"Chains : {result['chains']}")
print(f"Deposited : {result['deposition_date']}")
print(f"File path : {result['file_path']}")
# Download PDB file
pdb_file = client.files.download(result["file_path"], workspace_id=ws_id, dest="./structures/")
print(f"Saved to : {pdb_file}")import { SmartsBio } from '@smartsbio/sdk';
const client = new SmartsBio({ apiKey: 'sk_live_...' });
const [workspace] = await client.workspaces.list();
const result = await client.tools.run('pdb_fetch', {
input: {
pdbId: '6LU7',
format: 'pdb',
workspaceId: workspace.id,
outputPath: 'structures/',
},
});
console.log('Title :', result.title);
console.log('Method :', result.method);
console.log('Resolution:', result.resolutionA, 'Å');
console.log('Chains :', result.chains);
console.log('File path :', result.filePath);
const pdbFile = await client.files.download(result.filePath, workspace.id, './structures/');
console.log('Saved to :', pdbFile);curl -X POST https://api.smarts.bio/v1/tools/pdb_fetch/run \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"input": {
"pdb_id": "6LU7",
"format": "pdb",
"workspace_id": "ws_abc123",
"output_path": "structures/"
}
}'# Fetch 6LU7 (SARS-CoV-2 main protease) as PDB smarts tool run pdb_fetch \ --param pdb_id=6LU7 \ --param format=pdb \ --param output_path=structures/ # Download the structure file smarts file download structures/ ./structures/
TOOL
alphafold_fetchDownload an AlphaFold predicted structure by UniProt accession. Returns pLDDT confidence scores alongside the structure file.
| Parameter | Type | Description |
|---|---|---|
| uniprot_id * | string | UniProt accession (e.g. P00533). |
| format | string | pdb or cif (default: pdb). |
| workspace_id | string | Set to save structure to your workspace. |
from smartsbio import SmartsBio
client = SmartsBio(api_key="sk_live_...")
ws_id = client.workspaces.list()[0].id
result = client.tools.run(
tool_id="alphafold_fetch",
input={
"uniprot_id": "P00533", # EGFR
"format": "pdb",
"workspace_id": ws_id,
"output_path": "structures/alphafold/",
},
)
print(f"Protein : {result['protein_name']}")
print(f"UniProt : {result['uniprot_id']}")
print(f"Length : {result['sequence_length']} aa")
print(f"pLDDT mean: {result['mean_plddt']:.1f}")
print(f"High conf : {result['high_conf_pct']:.0f}% of residues pLDDT ≥ 70")
pdb_path = client.files.download(result["file_path"], workspace_id=ws_id, dest="./alphafold/")
print(f"Saved to : {pdb_path}")import { SmartsBio } from '@smartsbio/sdk';
const client = new SmartsBio({ apiKey: 'sk_live_...' });
const [workspace] = await client.workspaces.list();
const result = await client.tools.run('alphafold_fetch', {
input: {
uniprotId: 'P00533',
format: 'pdb',
workspaceId: workspace.id,
outputPath: 'structures/alphafold/',
},
});
console.log('Protein :', result.proteinName);
console.log('Length :', result.sequenceLength, 'aa');
console.log('pLDDT mean:', result.meanPlddt.toFixed(1));
console.log(`High conf : ${result.highConfPct.toFixed(0)}% of residues pLDDT ≥ 70`);
const pdbPath = await client.files.download(result.filePath, workspace.id, './alphafold/');
console.log('Saved to :', pdbPath);curl -X POST https://api.smarts.bio/v1/tools/alphafold_fetch/run \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"input": {
"uniprot_id": "P00533",
"format": "pdb",
"workspace_id": "ws_abc123",
"output_path": "structures/alphafold/"
}
}' | jq '{protein_name, sequence_length, mean_plddt, high_conf_pct}'# Fetch the AlphaFold model for EGFR (UniProt P00533) smarts tool run alphafold_fetch \ --param uniprot_id=P00533 \ --param format=pdb \ --param output_path=structures/alphafold/ # Download the structure file smarts file download structures/alphafold/ ./alphafold/
pLDDT confidence bands
- ≥ 90 — Very high confidence, suitable for detailed structural analysis.
- 70–90 — High confidence, most backbone predictions are reliable.
- 50–70 — Low confidence, treat with caution; may be disordered in vivo.
- < 50 — Very low confidence; likely intrinsically disordered region.