Protein Preparation
Prepare protein structures for docking with protonation and binding site detection (PDB2PQR, P2Rank).
Difficulty
Prerequisites
ivybloom auth login)Protein preparation makes raw PDB structures docking-ready by assigning protonation states (PDB2PQR/PROPKA) and detecting binding sites (P2Rank). Use these commands in scripted pipelines to prepare structures before docking, rather than preparing each protein by hand. For the full CLI command set, see the CLI overview.
Protein Preparation (since v0.8.10)
Prepare protein structures with PDB2PQR protonation and P2Rank binding site detection.
Overview
The proteinprep command group runs the same jobs as the web chat:
| Command | Job | Backend | Input |
|---|---|---|---|
run | PDB2PQR protonation + optional P2Rank | PDB2PQR/PROPKA + P2Rank | PDB file or ID |
protonate | PDB2PQR protonation only | PDB2PQR/PROPKA | PDB file or ID |
sites | P2Rank binding site detection | P2Rank | PDB file, ID, or UniProt |
status | Poll a job by ID | — | Job ID |
Note: Structure quality checks are not available; the server has no quality backend. Upload structures up to 2 MB. Use the web chat if you need visual inspection before submission.
Full Preparation (run)
Protonate a structure and optionally detect binding sites:
Parameters
[pdb-file|pdb-id]stringrequiredLocal PDB file (uploaded on submit, max 2 MB) or a 4-character PDB ID (e.g., 1ABC). Positional argument.
--phfloatdefault: 7.4pH for protonation state assignment (0–14). Controls histidine, aspartate, glutamate, and lysine charge.
--force-fieldstringdefault: AMBERForce field for protonation: AMBER, CHARMM, or PARSE.
--keep-heteroatomsbooldefault: falseKeep ligands, ions, and water molecules. By default they are removed.
--detect-sitesbooldefault: falseAlso run P2Rank binding site detection on the same structure.
--outputstringSave the protonated structure as PQR to this file (short form -o). Only works when --wait=true.
--overwritebooldefault: falseOverwrite an existing --output file instead of failing.
--waitbooldefault: trueWait for the jobs to finish and return results. Set to false to submit and return job IDs only.
--detailedbooldefault: falseShow the per-residue protonation table for human output.
--min-volumefloatdefault: 0Hide pockets smaller than this volume in Ų (applied locally, doesn't affect server results).
Protonation Only (protonate)
Assign protonation states at a target pH without detecting binding sites:
Parameters
[pdb-file|pdb-id]stringrequiredLocal PDB file (max 2 MB) or PDB ID.
--phfloatdefault: 7.4Target pH (0–14).
--force-fieldstringdefault: AMBERForce field: AMBER, CHARMM, or PARSE.
--keep-heteroatomsbooldefault: falseKeep ligands, ions, and waters.
--outputstringSave protonated structure as PQR (short form -o).
--overwritebooldefault: falseOverwrite an existing output file.
--waitbooldefault: trueWait for the job to finish.
--detailedbooldefault: falseShow the per-residue protonation table.
Binding Site Detection (sites)
Identify druggable binding pockets on a protein surface using P2Rank:
Parameters
[pdb-file|pdb-id]stringLocal PDB file, PDB ID, or UniProt accession. One is required unless --uniprot is used.
--uniprotstringUniProt accession (e.g., P00533). Only this command accepts UniProt.
--pdb-idstringExplicit PDB ID flag (alternative to positional argument).
--topintdefault: 0Return only the top N highest-scoring pockets. Omit or set to 0 to return all.
--modelstringdefault: defaultP2Rank model: default or alphafold. The alphafold model works better on predicted structures.
--visualizationbooldefault: falseGenerate pocket visualization files (PML, trajectory, etc.).
--waitbooldefault: trueWait for the job to finish.
--min-volumefloatdefault: 0Hide pockets smaller than this volume in Ų (applied locally, doesn't affect server results).
P2Rank: Machine learning-based pocket prediction optimized for druggability scoring. This is the only method available. Fpocket and DoGSiteScorer are not supported by the CLI.
Job Status (status)
Check the status of a submitted protonation or binding site job:
Parameters
job-idstringrequiredJob ID returned by a previous run, protonate, or sites command.
--outputstringSave a completed protonation job's PQR to this file (short form -o).
--overwritebooldefault: falseOverwrite an existing output file.
--detailedbooldefault: falseShow the per-residue protonation table.
Workflow Examples
PDB File to Docking-Ready Structure
Batch Preparation with Polling
AlphaFold Structure to Binding Sites
When you have a predicted structure (e.g., from ESMFold):
Troubleshooting
Job failed: Check the error message in the status. Common issues:
- File is corrupted or not a valid PDB format
- File is too large (max 2 MB)
- Invalid pH range (must be 0–14)
- Invalid force field (use AMBER, CHARMM, or PARSE)
PQR file is empty: Protonation jobs return PQR (not PDB) on success. Use --output filename.pqr, not .pdb.
Binding sites not detected: The structure may have unusual chains or be very small. Try the full structure without filtering by --top.
Read next
- Job Management — Monitor preparation and docking jobs
- Batch Processing — Screen multiple structures in parallel
- Recipes — Complete drug discovery workflows
Was this page helpful?