Protocol files¶
fes_ml.protocol
¶
Protocol files: a complete run in one YAML file.
A protocol file gives the system, the alchemical groups, the modifications, the lambda schedule,
the dynamics, the sampling and the output of a run. :func:load reads and checks it, and gives a
:class:Protocol with every default filled in. :func:run runs it, and fes-ml run does the
same from the shell. See the "Protocol files" page of the user guide for the format.
ProtocolError
¶
Bases: ValueError
A protocol file is not valid. The message lists every problem.
Protocol
dataclass
¶
A checked protocol, with every default filled in (data), and the file it came from.
quantity(text, kind)
¶
An OpenMM quantity from text such as "298.15 K", "1 fs", "10 A" or "1 /ps".
check(data, path=None)
¶
Check the content of a protocol file, fill in the defaults, and return the protocol.
load(path)
¶
Read and check a protocol file.
run(protocol, windows=None, analyse=True)
¶
Run the windows of a protocol.
Each window runs in <output.directory>/window_<k>/, with its own checkpoint, window output
file and trajectory, so that windows can also run as separate jobs. The states are created
once. resolved.yaml in the output directory records the protocol with every default.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
protocol
|
Protocol
|
The protocol to run. |
required |
windows
|
list of int
|
The windows to run. The default is |
None
|
analyse
|
bool
|
When the window files of all windows exist after the run, compute the free energies with
MBAR and write |
True
|
Returns:
| Type | Description |
|---|---|
MBARResult or None
|
The analysis, if it ran. |
analyse_protocol(protocol)
¶
Compute the free energies of a protocol run with MBAR, and write result.json.
describe(protocol)
¶
A short summary of a protocol, for fes-ml validate.
fes_ml.cli
¶
The fes-ml command.
fes-ml validate protocol.yaml: check a protocol file. With--resolved, print it with every default.fes-ml run protocol.yaml [--window k ...]: run a protocol, or some of its windows.fes-ml analyse protocol.yaml: compute the free energies of a protocol run.fes-ml analysealso takes window files, asfes-ml-analysedoes.