CLI Guide
The CLI is the alchemrs binary in the same package as the alchemrs library crate.
Commands:
tibarmbarexpdexp
Build
cargo build --release
Common workflow
Typical CLI usage is:
- pass one AMBER output per lambda window
- optionally trim burn-in
- optionally run auto-equilibration
- optionally decorrelate
- fit the requested estimator
- emit text, JSON, or CSV
Shared flags
--temperature <K>--remove-burnin <N>--auto-equilibrate--decorrelate--fast--conservative[=true|false]--nskip <N>--output-units <kt|kcal|kj>--output-format <text|json|csv>--output <PATH>--parallel
For bar, mbar, exp, and dexp:
--u-nk-observable <de|all|epot>
For overlap-aware commands:
--overlap-summary
Observable selection
For u_nk-based estimators:
deis the default and matches thealchemlyb-style adjacent-statedEobservableallsums the fullu_nkrowepotusesEPtotparsed from the AMBER output
Use epot when:
- you want the CLI's external-observable path
- the
u_nkmatrix contains positive infinity values that makedeinvalid
TI-specific behavior
TI uses dH/dlambda, not u_nk.
The CLI accepts --u-nk-observable on ti only to provide a more helpful error message. If supplied, the command fails with a domain-specific explanation instead of a generic unknown-flag parse error.
Command examples
TI
cargo run --release -- ti \
--temperature 300 \
--method trapezoidal \
--decorrelate \
path/to/*/prod.out
BAR
cargo run --release -- bar \
--temperature 300 \
--decorrelate \
--u-nk-observable de \
--overlap-summary \
path/to/*/prod.out
MBAR with EPtot fallback
cargo run --release -- mbar \
--temperature 300 \
--auto-equilibrate \
--decorrelate \
--u-nk-observable epot \
--output-format json \
path/to/*/prod.out
EXP / DEXP
cargo run --release -- exp --temperature 300 path/to/*/prod.out
cargo run --release -- dexp --temperature 300 path/to/*/prod.out
Effective settings
When --auto-equilibrate is enabled, the CLI reports the effective preprocessing policy in provenance:
fast = trueconservative = false
That override is deliberate and mirrors the alchemlyb / pymbar equilibration-detection workflow.