User Guide
Executing Analyses
Run, inspect, and manage analyses with the MDFactory CLI
This guide shows how to run, inspect, and manage analyses with the MDFactory CLI.
Prerequisites
- MDFactory installed with analysis dependencies.
- A simulation directory or a build summary YAML from
mdfactory prepare-build.
SOURCE can be either a simulation directory or a build summary YAML.
Run analyses locally
Run a single analysis:
mdfactory analysis run SOURCE --analysis cholesterol_tiltRun multiple analyses (comma-separated):
mdfactory analysis run SOURCE --analysis area_per_lipid,cholesterol_tiltRun all analyses (default):
mdfactory analysis run SOURCESkip already completed analyses (default behavior):
mdfactory analysis run SOURCE --analysis cholesterol_tilt --skip-existingForce re-run of completed analyses:
mdfactory analysis run SOURCE --analysis cholesterol_tilt --skip-existing=falseSubmit analyses to SLURM
Install submitit support:
pip install "mdfactory[submitit]"Submit one job per simulation and wait for completion:
mdfactory analysis run SOURCE \
--analysis cholesterol_tilt \
--slurm \
--account <your-project>-hpcAdjust SLURM resources and analysis workers:
mdfactory analysis run SOURCE \
--analysis cholesterol_tilt \
--slurm \
--account <your-project>-hpc \
--partition cpu \
--cpus 8 \
--mem-gb 16 \
--time 4h \
--analysis-workers 8Inspect analysis status
List available vs completed analyses:
mdfactory analysis info SOURCEFilter by simulation type:
mdfactory analysis info SOURCE --simulation-type bilayerRemove analyses
Remove all completed analyses (with confirmation):
mdfactory analysis remove SOURCELimit removal to a simulation type:
mdfactory analysis remove SOURCE --simulation-type bilayerOutput locations
- Analyses are stored under
.analysis/<analysis_name>.parquet. - The registry is stored under
.analysis/metadata.json.
Tips
- Use
--analysisto keep jobs short and focused. - For large jobs on SLURM, set
--analysis-workersto match--cpus. - If you need to re-run analyses, pass
--skip-existing=false.
