warp-pep Command Reference
All-atom peptide structure builder and mutation tool using internal coordinate geometry.Synopsis
Global Options
Emit NDJSON progress events to stderr
Commands
build - Build Peptide Structure
Construct all-atom peptide structures from amino acid sequences.Input Options (Choose One)
One-letter amino acid sequence (e.g.,
ACDEFGH)Three-letter codes, hyphen-separated (e.g.,
ALA-CYX-HID-GLU)Path to JSON configuration file
Output Options
Output file path
Output format:
pdb, cif, xyz, gro, mol2, crd, lammpsStructure Options
Add terminal carboxyl oxygen (OXT)
Auto-detect disulfide bonds (Sγ-Sγ < 2.5 Å) and relabel CYS → CYX
Ramachandran preset:
extended/ext(φ=180°, ψ=180°, default)alpha-helix/alpha/helix(φ=-57°, ψ=-47°)beta-sheet/beta/sheet(φ=-120°, ψ=+130°)polyproline/ppii(φ=-75°, ψ=+145°)
Backbone Angle Customization
Comma-separated phi angles (degrees, length = residues-1)
Comma-separated psi angles (degrees, length = residues-1)
Comma-separated omega angles (degrees, length = residues-1, default=180)
Emit progress events to stderr
Examples
Build alpha helix:mutate - Mutate Residues
Mutate one or more residues in an existing structure or sequence.Input Options (Choose One)
Input structure file (PDB, etc.)
One-letter amino acid sequence
Three-letter codes, hyphen-separated
Mutation Specification
Comma-separated mutations in format
<from><position><to>:A5G- Mutate residue 5 from Ala to GlyW123A- Mutate residue 123 from Trp to AlaA5G,L10W,C15M- Multiple mutations
Output Options
Output file path
Output format:
pdb, cif, xyz, gro, mol2, crd, lammpsStructure Options
Add terminal carboxyl oxygen (OXT)
Auto-detect disulfide bonds after mutation
Ramachandran preset (same options as build)
Emit progress events to stderr
Examples
Mutate single residue:JSON Configuration
Single-Chain Specification
Three-letter amino acid codes
Ramachandran preset name
Add terminal oxygen
Auto-detect disulfide bonds
List of mutation strings
Output file path
Output format
Multi-Chain Specification
Array of chain specifications
Chain identifier (A-Z)
Three-letter amino acid codes for this chain
Ramachandran preset for this chain
Supported Amino Acids
Standard 20
One-letter codes:A C D E F G H I K L M N P Q R S T V W Y
| Code | Residue | Code | Residue | Code | Residue | Code | Residue |
|---|---|---|---|---|---|---|---|
| A | Alanine | F | Phenylalanine | L | Leucine | R | Arginine |
| C | Cysteine | G | Glycine | M | Methionine | S | Serine |
| D | Aspartate | H | Histidine | N | Asparagine | T | Threonine |
| E | Glutamate | I | Isoleucine | P | Proline | V | Valine |
| K | Lysine | Q | Glutamine | W | Tryptophan | ||
| Y | Tyrosine |
Amber Force Field Variants
| Code | Residue | Description |
|---|---|---|
| CYX | Cysteine | Disulfide-bonded (SS bridge) |
| HID | Histidine | Nδ-H tautomer |
| HIE | Histidine | Nε-H tautomer |
| HIP | Histidine | Doubly protonated (+1) |
| ASH | Aspartate | Protonated (neutral) |
| GLH | Glutamate | Protonated (neutral) |
| LYN | Lysine | Neutral (deprotonated) |
Non-Standard Residues
| Code | Canonical | Description |
|---|---|---|
| MSE | MET | Selenomethionine (Se replaces S) |
| PCA | GLU | Pyroglutamic acid (cyclic) |
D-Amino Acids
Use lowercase one-letter codes for D-enantiomers:aGlA = D-Ala, Gly, Leu, Ala
Ramachandran Presets
| Preset | φ (phi) | ψ (psi) | Description |
|---|---|---|---|
extended / ext | 180° | 180° | Extended conformation (default) |
alpha-helix / alpha / helix | -57° | -47° | Right-handed α-helix |
beta-sheet / beta / sheet | -120° | +130° | Anti-parallel β-sheet |
polyproline / ppii | -75° | +145° | Polyproline-II helix |
Supported Output Formats
Protein Data Bank format (CONECT, TER supported)
Crystallographic Information File
Simple XYZ coordinate format
GROMACS format (nm → Å conversion)
Tripos MOL2 format
Amber coordinate format
LAMMPS data format
Streaming Mode
When--stream is enabled, warp-pep emits NDJSON events to stderr:
operation_started:
Advanced Features
Custom Backbone Angles
Specify per-residue backbone dihedrals:num_residues - 1 (inter-residue junctions).
Disulfide Bond Detection
Auto-detect Sγ-Sγ distances < 2.5 Å and relabel CYS → CYX:SSBOND records to PDB output.
Cis Peptide Bonds
For cis bonds (e.g., preceding proline):Terminal Capping
Note: ACE (N-terminal) and NME (C-terminal) caps are supported in the Rust library API but not currently exposed via CLI flags. Use the Python/Rust API directly for capping workflows.Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Invalid input, configuration error, or runtime failure |
Notes
- All bond lengths, angles, and dihedrals use standard peptide geometry
- Peptide bonds default to trans (ω = 180°)
- Internal units are Angstrom
- Multi-chain structures renumber residues globally (sequential seq_id)
- JSON spec is self-contained (may include output path and format)
Integration Examples
Build and Solvate with warp-pack
Python Subprocess Wrapper
Peptide Builder Guide
Complete guide to peptide building workflows
warp-pack Reference
Molecule packing for solvation