Command Reference
Pharmacon exposes six top-level commands, each grouping related subcommands.
Command |
Description |
|---|---|
Analyze MD trajectories: RMSD, RMSF, distances, angles, hydrogen bonds, protein–ligand and protein–protein interactions, PCA, average structure |
|
Analyze static structures: molecular properties and amino-acid sequence extraction |
|
Print metadata and group tree of |
|
Export |
|
Render publication-ready plots from |
|
Merge multiple |
General syntax
pharmacon <command> <subcommand> [options]
pharmacon --help # top-level help
pharmacon trajectory --help # trajectory subcommands
pharmacon trajectory rmsd --help # RMSD flags
Adding a new subcommand
Pharmacon uses auto-discovery. Drop a .py file into the appropriate
src/pharmacon/command_line/<command>/ directory. The module must export:
SUBCOMMAND_NAME: str # e.g. "my-analysis"
SUMMARY: str # one-line description
def build_parser(subparsers, parents): ...
def validate(args): ...
def run(args): ...
No registration step is required — the registry discovers it at import time. See Architecture for the full development pattern.