CLI Reference
Complete reference for all PolyzyMD command-line interface commands.
Global Options
All commands support these global options (placed before the subcommand name):
polyzymd --version # Show version
polyzymd --help # Show help
polyzymd -q <command> # Quiet mode (suppress INFO, show warnings/errors only)
polyzymd --debug <command> # Debug mode (show DEBUG logging for troubleshooting)
polyzymd --openff-logs <command> # Enable verbose OpenFF logs
polyzymd --no-color <command> # Disable colored output
Note: Global options must appear before the subcommand. For example:
polyzymd --no-color check-progress -c config.yaml(notpolyzymd check-progress --no-color -c config.yaml).
Colored Output
PolyzyMD uses per-module colored logging to help you visually distinguish
which subsystem (building, simulation, workflow, etc.) produced each log
line. Colors are auto-detected based on your terminal capabilities and can
be disabled with --no-color or the NO_COLOR environment variable.
See the Colored Logging Guide for full details including the color table, terminal support levels, and HPC notes.
Logging Behavior
By default, PolyzyMD suppresses verbose log messages from OpenFF Interchange and Toolkit libraries. These libraries generate per-atom INFO messages during system building (e.g., “Preset charges applied to atom index 8667” or “Key collision with different parameters”). For large systems with tens of thousands of atoms, this can produce millions of log lines.
Default behavior: OpenFF INFO logs are suppressed; only WARNING and ERROR messages are shown.
To enable OpenFF logs for debugging:
polyzymd --openff-logs build -c config.yaml
polyzymd --openff-logs run-gromacs -c config.yaml
Quiet mode (-q / --quiet): Suppress INFO messages, show only WARNING and ERROR with minimal format (timestamp + message only). Useful for scripting or reducing output clutter.
Debug mode (--debug): Show DEBUG-level messages with full format. Useful for troubleshooting issues.
OpenFF logs: OpenFF Interchange and Toolkit libraries are suppressed by default (they generate per-atom INFO messages during system building). Use --openff-logs to enable them for debugging force field issues.
Investigating charge assignment problems
Troubleshooting system building failures
polyzymd init
Initialize a new PolyzyMD project directory with template files.
polyzymd init --name <project_name>
polyzymd init -n <project_name>
Options
Option |
Short |
Required |
Description |
|---|---|---|---|
|
|
Yes |
Name of the project directory to create |
What It Creates
<project_name>/
├── config.yaml <- Template configuration (edit this)
├── structures/ <- Add your PDB/SDF files here
│ ├── place_protein_here.placeholder.txt
│ └── place_ligand_here.placeholder.txt
├── job_scripts/ <- Generated SLURM scripts go here
└── slurm_logs/ <- SLURM output logs go here
Example
# Create a new project
polyzymd init --name lipase_dmso_study
cd lipase_dmso_study
# Add your structure files
cp ~/structures/LipA.pdb structures/enzyme.pdb
cp ~/docking/substrate.sdf structures/substrate.sdf
# Remove placeholder files
rm structures/*.placeholder.txt
# Edit the configuration
nano config.yaml
# Validate
polyzymd validate -c config.yaml
Notes
The command will fail if the directory already exists
The template
config.yamlhas all sections commented out with example valuesUncomment and modify only the sections you need
polyzymd validate
Validate a configuration file without building or running.
polyzymd validate --config <path>
polyzymd validate -c <path>
Options
Option |
Short |
Required |
Description |
|---|---|---|---|
|
|
Yes |
Path to YAML configuration file |
What It Checks
YAML syntax validity
Required fields are present
Referenced files (PDB, SDF) exist
Monomer probabilities sum to 1.0
Valid enum values (water model, ensemble, etc.)
Co-solvent specification (volume_fraction XOR concentration)
Example
polyzymd validate -c config.yaml
Output (success):
Validating configuration: config.yaml
Configuration is valid!
Summary:
Name: LipA_polymer_simulation
Enzyme: LipA
Substrate: ResorufinButyrate
Polymers: SBMA-EGPMA
Count: 2
Length: 5
Monomer A: 98.0%
Monomer B: 2.0%
Temperature: 300.0 K
Pressure: 1.0 atm
Simulation phases:
Equilibration: 1.0 ns (NVT)
Production: 100.0 ns (NPT)
polyzymd build
Build the simulation system (parameterize, solvate) without running.
polyzymd build --config <path> [options]
polyzymd build -c <path> -r <replicate>
polyzymd build -c <path> --gromacs # Export for GROMACS
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
1 |
Replicate number (affects polymer random seed) |
|
- |
No |
from config |
Override scratch directory |
|
- |
No |
from config |
Override projects directory |
|
|
No |
from config |
Alias for –scratch-dir |
|
- |
No |
false |
Validate only, don’t build |
|
- |
No |
false |
Export to GROMACS format instead of OpenMM |
Example
# Build replicate 1 for OpenMM
polyzymd build -c config.yaml -r 1
# Build with custom output directory
polyzymd build -c config.yaml -r 1 --scratch-dir ./test_output
# Dry run to check configuration
polyzymd build -c config.yaml --dry-run
# Export to GROMACS format
polyzymd build -c config.yaml -r 1 --gromacs
Output Files (OpenMM)
The build command creates:
solvated_system.pdb- Complete system with water and ionssystem.xml- OpenMM serialized systemtopology.json- Topology informationbuild.log- Build process log
Output Files (GROMACS)
With --gromacs, the build command creates in {projects_dir}/replicate_{N}/gromacs/:
{system}.gro- GROMACS coordinate file{system}.top- GROMACS topology fileem.mdp- Energy minimization parameterseq_XX_name.mdp- Equilibration stage parametersprod.mdp- Production parametersposre_*.itp- Position restraint files (if configured)run_{system}_gromacs.sh- Shell script to run the workflow
polyzymd run-gromacs
Build and run a complete simulation using GROMACS.
Builds the system, exports to GROMACS format (.gro, .top, .mdp), and executes the full GROMACS workflow locally (energy minimization, equilibration, production, and trajectory post-processing).
polyzymd run-gromacs -c <path> [options]
polyzymd run-gromacs -c <path> --gmx-path /usr/local/gromacs/bin/gmx
polyzymd run-gromacs -c <path> --dry-run
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
1 |
Replicate number |
|
- |
No |
from config |
Override scratch directory |
|
- |
No |
from config |
Override projects directory |
|
- |
No |
“gmx” |
Path to GROMACS executable |
|
- |
No |
false |
Export files but don’t run simulation |
Example
# Run full GROMACS workflow locally
polyzymd run-gromacs -c config.yaml -r 1
# Use custom GROMACS installation
polyzymd run-gromacs -c config.yaml --gmx-path /usr/local/gromacs/bin/gmx
# Export files only (for manual execution or HPC)
polyzymd run-gromacs -c config.yaml --dry-run
Workflow
Load and validate configuration
Build system (enzyme + substrate + polymers + solvent)
Export to GROMACS format (.gro, .top, .mdp files)
Run energy minimization (grompp + mdrun)
Run equilibration stages (grompp + mdrun for each stage)
Run production MD (grompp + mdrun)
Post-process trajectory (trjconv for PBC handling)
All GROMACS output is streamed in real-time for familiar user experience. On any failure, execution stops immediately and all intermediate files are preserved for debugging.
Notes
Requires GROMACS to be installed and accessible via PATH
Use
--gmx-pathto specify a custom GROMACS executable locationMDP parameters are generated from your config.yaml to match OpenMM settings
OpenFF force field defaults are used (rcoulomb=0.9, rvdw=0.9, PME) for 1:1 parity with OpenMM
Position restraints are automatically generated for equilibration stages
Post-processing creates
prod_nojump.xtcandprod_centered.xtctrajectoriesFor OpenMM simulations, use
polyzymd run-segment(for a single segment) orpolyzymd submit(to submit self-resubmitting SLURM jobs)
Output Files
Files are created in {projects_dir}/replicate_{N}/gromacs/:
gromacs/
├── {system}.gro # Initial coordinates
├── {system}.top # Topology
├── em.mdp # Energy minimization parameters
├── eq_01_nvt.mdp # Equilibration stage 1 (NVT)
├── eq_02_npt.mdp # Equilibration stage 2 (NPT)
├── prod.mdp # Production parameters
├── posre_*.itp # Position restraint files
├── run_{system}_gromacs.sh # Generated run script
├── em.tpr, em.gro, em.edr # Energy minimization outputs
├── eq_01.*, eq_02.* # Equilibration outputs
├── prod.tpr, prod.xtc, ... # Production outputs
├── prod_nojump.xtc # Trajectory without PBC jumps
└── prod_centered.xtc # Centered trajectory for visualization
polyzymd submit
Submit self-resubmitting simulation jobs to SLURM for HPC execution.
Each replicate gets one SLURM script that handles the full simulation lifecycle: building, equilibration, production segments, interruption recovery, and resubmission. See Run PolyzyMD on SLURM Clusters for details.
polyzymd submit --config <path> --replicates <range> [options]
polyzymd submit -c <path> -r 1-5 --preset aa100
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
“1” |
Replicate range (e.g., “1-5”, “1,3,5”) |
|
- |
No |
aa100 |
SLURM partition preset |
|
- |
No |
“” |
Email for job notifications |
|
- |
No |
from config |
Override scratch directory |
|
- |
No |
from config |
Override projects directory |
|
- |
No |
auto |
Directory for job scripts |
|
- |
No |
from preset |
Override SLURM time limit (HH:MM:SS) |
|
- |
No |
3G |
Override SLURM memory allocation |
|
- |
No |
false |
Enable verbose OpenFF logs in job scripts |
|
- |
No |
false |
Generate scripts without submitting |
SLURM Presets
Preset |
Partition |
Time Limit |
Description |
|---|---|---|---|
|
aa100 |
24:00:00 |
NVIDIA A100 GPUs |
|
al40 |
24:00:00 |
NVIDIA L40 GPUs |
|
blanca-shirts |
7-00:00:00 |
Shirts lab partition |
|
atesting |
01:00:00 |
Quick tests |
Example
# Dry run first to check scripts
polyzymd submit -c config.yaml -r 1-5 --preset aa100 --dry-run
# Submit for real with email notifications
polyzymd submit -c config.yaml -r 1-5 --preset aa100 --email you@university.edu
# Quick test with short time limit
polyzymd submit -c config.yaml -r 1 --preset testing --time-limit 0:05:00
# Custom directories for HPC
polyzymd submit -c config.yaml -r 1-3 --preset aa100 \
--scratch-dir /scratch/alpine/$USER/sims \
--projects-dir /projects/$USER/polyzymd
Self-Resubmitting Jobs
The submit command creates one self-resubmitting SLURM script per replicate:
┌─────────────────────────┐
│ Job runs segment │
│ Job checks progress │◄──── resubmits itself
│ Job resubmits if │ if work remains
│ work remains │
└─────────────────────────┘
Each job is identical and idempotent — it scans the filesystem to determine what work remains. See Run PolyzyMD on SLURM Clusters for details.
polyzymd run-segment
Unified entry point for SLURM jobs. Determines what work remains by loading progress state, then runs the next segment of work.
polyzymd run-segment -c CONFIG [OPTIONS]
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
1 |
Replicate number |
|
- |
No |
from config |
Override scratch directory |
|
- |
No |
false |
Skip system building for initial segment |
Behavior
If no segments exist: builds system, equilibrates, runs production segment 0
If segments exist but simulation incomplete: continues from last completed segment
If simulation is already complete: exits 0 immediately
Exit Codes
Code |
Meaning |
|---|---|
0 |
Segment completed successfully |
1 |
Error |
99 |
Graceful interruption (wall-time/preemption signal) |
Notes
This command is called by the generated SLURM scripts, not typically by users directly
Progress is tracked in
progress.jsonin the working directory
polyzymd check-progress
Check whether a simulation is complete. Used by SLURM resubmission logic to decide whether to resubmit.
polyzymd check-progress -c CONFIG [OPTIONS]
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
1 |
Replicate number |
|
- |
No |
from config |
Override scratch directory |
Exit Codes
Code |
Meaning |
|---|---|
0 |
Simulation complete — do NOT resubmit |
1 |
Work remains — resubmit |
Example
polyzymd check-progress -c config.yaml -r 1
# Output:
# Progress: 50000000/50000000 steps (100.0%), 10 segment(s)
# Status: COMPLETE
Notes
This command is called by the generated SLURM scripts, not typically by users directly
For a visual overview of all replicates, use
polyzymd statusinstead
polyzymd status
Show a compact progress overview for all replicates of a simulation. Auto-detects replicate directories on disk and displays colored progress bars with completion percentage, nanoseconds completed, and simulation status.
Usage
polyzymd status -c config.yaml
Options
Option |
Required |
Description |
|---|---|---|
|
Yes |
Path to YAML configuration file |
Output Format
polyzymd status — fnIII_apo_OEGMA-SBMA_A50_B50_100ns_310K
──────────────────────────────────────────────────────
run1 ██████████████████████████████████████████ 100.0% 100.0/100.0 ns completed
run2 █████████████████████░░░░░░░░░░░░░░░░░░░░░ 50.2% 50.2/100.0 ns running
run3 ███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░ 35.0% 35.0/100.0 ns interrupted
run4 ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.0% 0.0/100.0 ns not_started
1/4 need attention (recover with: polyzymd recover -c config.yaml -r <N> --submit)
Status Colors
Status |
Color |
Meaning |
|---|---|---|
|
Green |
Production run finished |
|
Cyan |
Currently executing |
|
Amber |
Stalled — needs |
|
Red |
Error occurred |
|
Gray |
Directory exists but no progress data |
|
Gray |
Expected directory not on disk |
Notes
This is a read-only command — it only reads
progress.jsonfilesReplicate directories are auto-detected via the naming template in the config
The command is a one-shot snapshot (prints and exits)
Use
polyzymd recover -c config.yaml -r <N> --submitto resume interrupted replicates
polyzymd recover
Resume a stalled or interrupted simulation. Scans the working directory,
loads progress state, and reports how much work remains. With --submit,
generates and submits a self-resubmitting SLURM job that will automatically
continue from the last completed segment.
polyzymd recover -c CONFIG [OPTIONS]
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
1 |
Replicate number |
|
- |
No |
from config |
Override scratch directory |
|
- |
No |
aa100 |
SLURM preset for recovery job |
|
- |
No |
–no-submit |
Submit a recovery job (default: status only) |
|
- |
No |
false |
Show what would be submitted without submitting |
|
- |
No |
3G |
Override SLURM memory allocation (e.g. ‘4G’, ‘8G’) |
Example
# Check status only
polyzymd recover -c config.yaml -r 1
# Submit a recovery job
polyzymd recover -c config.yaml -r 1 --submit --preset blanca-shirts
# Dry-run (show what would be submitted)
polyzymd recover -c config.yaml -r 1 --submit --dry-run
Example Output (Status Only)
Working directory: /scratch/user/sim/LipA_300K_run1
Progress: 12500000/50000000 steps (25.0%)
Status: in_progress
Segments: 5
segment 0: completed (100%)
segment 1: completed (100%)
segment 2: completed (100%)
segment 3: completed (100%)
segment 4: interrupted (50%)
Remaining: 75.000 ns (37500000 steps)
To resume, run:
polyzymd recover -c config.yaml -r 1 --submit --preset aa100
Notes
Without
--submit, this is a read-only status report — useful for inspecting simulation health across replicatesWith
--submit, generates a self-resubmitting SLURM job in{working_dir}/recovery_scripts/and submits itThe recovery job is identical to a normal submission job — it uses
run-segmentto determine what work remains and continues from there
polyzymd info
Display PolyzyMD installation and dependency information.
polyzymd info
Example Output
PolyzyMD - Molecular Dynamics for Enzyme-Polymer Systems
Version: 0.1.0
Dependencies:
OpenMM: 8.1.1
OpenFF Toolkit: 0.16.0
OpenFF Interchange: 0.3.25
Pydantic: 2.7.1
Example configs: polyzymd/configs/examples/
Use Cases
Verify installation is complete
Check dependency versions for troubleshooting
Confirm GPU-enabled OpenMM is installed
polyzymd analyze
Analyze MD trajectories with various metrics.
polyzymd analyze COMMAND [OPTIONS]
Commands:
init Initialize analysis.yaml in current directory
validate Validate analysis.yaml configuration
run Run all enabled analyses from analysis.yaml
rmsf Compute RMSF (Root Mean Square Fluctuation) analysis
distances Compute inter-atomic distance analysis
polyzymd analyze init
Initialize analysis configuration for a simulation project.
polyzymd analyze init [OPTIONS]
Options:
--eq-time TEXT Default equilibration time [default: 10ns]
Must be run from a directory containing config.yaml.
Example
cd my_simulation_project
polyzymd analyze init
polyzymd analyze init --eq-time 20ns
polyzymd analyze validate
Validate an analysis.yaml configuration file without running analyses.
polyzymd analyze validate [OPTIONS]
Options:
-f, --file PATH Path to analysis.yaml [default: analysis.yaml]
--format [table|json] Output format [default: table]
What It Checks
YAML syntax and structure
Required fields present
Replicates list is non-empty
Distance pairs defined if distances enabled
Triad pairs defined if catalytic_triad enabled
Contact selections defined if contacts enabled
Example
# Basic validation
polyzymd analyze validate
# Validate specific file
polyzymd analyze validate -f path/to/analysis.yaml
# JSON output for CI integration
polyzymd analyze validate --format json
Output (success):
Validating: /path/to/analysis.yaml
✓ Configuration is valid
Replicates: [1, 2, 3]
Equilibration time: 10ns
Enabled analyses: rmsf, contacts
Output (errors):
Validating: /path/to/analysis.yaml
✗ Configuration has errors
• No replicates specified
• Distance analysis enabled but no pairs defined
JSON output:
{
"file": "/path/to/analysis.yaml",
"valid": true,
"errors": [],
"summary": {
"replicates": [1, 2, 3],
"equilibration_time": "10ns",
"enabled_analyses": ["rmsf", "contacts"]
}
}
polyzymd analyze rmsf
Compute per-residue flexibility from MD trajectories.
polyzymd analyze rmsf --config <path> --replicates <range> [OPTIONS]
polyzymd analyze rmsf -c <path> -r 1-5 --eq-time 100ns
Options
Option |
Short |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
Yes |
- |
Path to YAML configuration file |
|
|
No |
“1” |
Replicate specification: “1-5”, “1,3,5”, or “1” |
|
- |
No |
“0ns” |
Equilibration time to skip: “100ns”, “5000ps” |
|
- |
No |
“protein and name CA” |
MDAnalysis selection for RMSF atoms |
|
- |
No |
“centroid” |
Reference structure: “centroid”, “average”, “frame”, or “external” |
|
- |
No |
- |
Frame index when –reference-mode=frame (1-indexed) |
|
- |
No |
- |
Path to external PDB when –reference-mode=external |
|
- |
No |
“protein and name CA” |
Selection for trajectory alignment |
|
- |
No |
“protein” |
Selection for centroid finding |
|
- |
No |
false |
Generate plot after analysis |
|
- |
No |
false |
Force recompute even if cached |
|
|
No |
auto |
Custom output directory |
Reference Modes
Mode |
Description |
Use Case |
|---|---|---|
|
Most populated conformational state (K-Means) |
Equilibrium flexibility analysis |
|
Mathematical mean structure |
Pure thermal fluctuations |
|
User-specified frame number |
Functional state analysis |
|
External PDB file (e.g., crystal structure) |
Catalytic competence, condition-independent comparison |
Example
# Basic RMSF analysis
polyzymd analyze rmsf -c config.yaml -r 1 --eq-time 10ns
# Multiple replicates with plot
polyzymd analyze rmsf -c config.yaml -r 1-3 --eq-time 10ns --plot
# Custom reference structure
polyzymd analyze rmsf -c config.yaml -r 1 --reference-mode average
# Specific frame as reference (e.g., catalytically competent)
polyzymd analyze rmsf -c config.yaml -r 1 --reference-mode frame --reference-frame 500
# External crystal structure as reference (condition-independent)
polyzymd analyze rmsf -c config.yaml -r 1 --reference-mode external \
--reference-file /path/to/crystal_structure.pdb
Output
Results are saved in JSON format:
<projects_directory>/
└── analysis/
└── rmsf/
├── run_1/rmsf_eq10ns.json
├── run_2/rmsf_eq10ns.json
└── aggregated/rmsf_reps1-3_eq10ns.json
polyzymd compare
Compare analysis results across multiple simulation conditions with statistical testing.
polyzymd compare COMMAND [OPTIONS]
Commands:
init Initialize a new comparison project
rmsf Compare RMSF across conditions
validate Validate comparison configuration
show Display saved comparison results
plot Generate comparison plots
polyzymd compare init
Create a new comparison project with template configuration.
polyzymd compare init NAME [OPTIONS]
Arguments:
NAME Project name (creates directory)
Options:
--eq-time TEXT Default equilibration time [default: 10ns]
-o, --output-dir PATH Parent directory [default: current]
Example
polyzymd compare init polymer_study
cd polymer_study
# Edit comparison.yaml to add your conditions
polyzymd compare rmsf
Run statistical comparison of RMSF across conditions.
polyzymd compare rmsf [OPTIONS]
Requires an analysis_settings.rmsf section in comparison.yaml, with a
corresponding comparison_settings.rmsf entry (can be empty {}).
Options
Option |
Short |
Default |
Description |
|---|---|---|---|
|
|
comparison.yaml |
Path to comparison config file |
|
- |
from config |
Override equilibration time |
|
- |
false |
Enable CLI overrides for RMSF settings |
|
- |
from config |
Override atom selection (requires –override) |
|
- |
from config |
Override reference mode (requires –override) |
|
- |
from config |
Override reference frame (requires –override) |
|
- |
from config |
Override external PDB path (requires –override) |
|
- |
false |
Force recompute RMSF |
|
- |
table |
Output format: table, markdown, json |
|
|
- |
Save formatted output to file |
|
|
false |
Suppress INFO messages |
|
- |
false |
Enable DEBUG logging |
Example
# Run comparison with default settings (uses analysis_settings.rmsf from YAML)
polyzymd compare rmsf
# Override equilibration time
polyzymd compare rmsf --eq-time 20ns
# Override RMSF settings (requires --override flag)
polyzymd compare rmsf --override --selection "protein and name CA CB"
# Output as markdown
polyzymd compare rmsf --format markdown -o report.md
polyzymd compare validate
Validate a comparison.yaml configuration file without running analyses.
polyzymd compare validate [OPTIONS]
Options:
-f, --file PATH Path to comparison.yaml [default: comparison.yaml]
--format [table|json] Output format [default: table]
What It Checks
YAML syntax and structure
Required fields present
At least 2 conditions defined
Condition labels are unique
Control label matches a condition (if specified)
Config files exist for each condition
Example
# Basic validation
polyzymd compare validate
# Validate specific file
polyzymd compare validate -f path/to/comparison.yaml
# JSON output for CI integration
polyzymd compare validate --format json
Output (success):
Validating: /path/to/comparison.yaml
✓ Configuration is valid
Name: polymer_study
Conditions: 3
- WT, PEG, SBMA
Control: WT
Analysis sections: rmsf, catalytic_triad
Output (errors):
Validating: /path/to/comparison.yaml
✗ Configuration has errors
• Control 'NoPolymer' not found in conditions: ['WT', 'PEG']
• Config file not found: /path/to/missing/config.yaml
JSON output:
{
"file": "/path/to/comparison.yaml",
"valid": true,
"errors": [],
"summary": {
"name": "polymer_study",
"conditions_count": 3,
"condition_labels": ["WT", "PEG", "SBMA"],
"control": "WT",
"sections_configured": ["rmsf", "catalytic_triad"]
}
}
polyzymd compare show
Display a previously saved comparison result.
polyzymd compare show RESULT_FILE [OPTIONS]
Arguments:
RESULT_FILE Path to saved JSON result
Options:
--format [table|markdown|json] Output format [default: table]
polyzymd compare plot
Generate publication-ready plots from comparison results.
polyzymd compare plot RESULT_FILE [OPTIONS]
Arguments:
RESULT_FILE Path to saved comparison JSON
Options:
-o, --output-dir PATH Output directory [default: figures/]
--format [png|pdf|svg] Image format [default: png]
--dpi INTEGER Resolution for PNG [default: 150]
--summary / --no-summary Generate summary panel [default: yes]
--show / --no-show Display interactively [default: no]
Generated Plots
File |
Description |
|---|---|
|
Bar chart of mean RMSF by condition |
|
Bar chart of % change vs control |
|
Forest plot of Cohen’s d values |
|
Combined 3-panel summary figure |
Example
# Generate all plots
polyzymd compare plot results/rmsf_comparison_my_study.json
# High resolution for publication
polyzymd compare plot results/rmsf_comparison_my_study.json --dpi 300
# PDF format with interactive preview
polyzymd compare plot results/rmsf_comparison_my_study.json --format pdf --show
polyzymd plot
Standalone plotting for analysis results (separate from compare plot).
polyzymd plot COMMAND [OPTIONS]
Commands:
rmsf Plot and compare RMSF results
distances Plot and compare distance analysis results
polyzymd plot rmsf
Plot RMSF analysis results, optionally comparing multiple conditions.
polyzymd plot rmsf --inputs <files> [OPTIONS]
Options:
--inputs PATH... One or more RMSF result JSON files [required]
--labels TEXT... Labels for each input (same order as inputs)
-o, --output PATH Output file path
--format TEXT Output format: png, pdf, svg [default: png]
Example
# Single condition
polyzymd plot rmsf --inputs analysis/rmsf/run_1/rmsf_eq10ns.json
# Compare two conditions
polyzymd plot rmsf \
--inputs no_polymer/analysis/rmsf/aggregated/rmsf_reps1-3_eq10ns.json \
with_polymer/analysis/rmsf/aggregated/rmsf_reps1-3_eq10ns.json \
--labels "No Polymer" "With Polymer" \
-o comparison.png
Environment Variables
PolyzyMD expands environment variables in configuration paths:
Variable |
Example |
Description |
|---|---|---|
|
jola3134 |
Current username |
|
/home/jola3134 |
Home directory |
|
/home/jola3134 |
Home directory shortcut |
|
- |
Any environment variable |
Example
output:
projects_directory: "/projects/$USER/polyzymd"
scratch_directory: "/scratch/alpine/$USER/simulations"
Exit Codes
Code |
Meaning |
|---|---|
0 |
Success |
1 |
Error (validation failure, build failure, etc.) |
99 |
Graceful shutdown — simulation was interrupted but interrupted state was saved (see Run PolyzyMD on SLURM Clusters) |
See Also
Run Your First PolyzyMD Simulation - Getting started tutorial
Configuration Reference - Configuration file reference
Run PolyzyMD on SLURM Clusters - HPC and SLURM guide
RMSF Analysis: Quick Start - RMSF analysis tutorial
How to Compare Simulation Conditions - Comparing simulation conditions