MatRiFFlow (formerly IMDgroup-pymatgen)

Python and command-line tools for iterative development of computational workflows for VASP atomistic simulations, built on top of pymatgen.

Works with ordinary calculation directories produced manually, by scripts, or by any existing workflow tooling that writes standard VASP files. The independent commands do not require a workflow manager or prescribe how jobs must be executed.

Also includes gorun, a cluster-agnostic job-submission script for VASP, MACE fine-tuning, ATAT, and generic GPU jobs on Slurm clusters.

Documentation: https://yantar92.github.io/MatRiFFlow/

img

mrf can handle large collections of calculations (including running) and detect anomalies or incomparable results. It deliberately does not automate fixing anomalies, leaving it up to the user to explore the problems and identify the solutions (with the optional help of mrf tooling).

Workflow manager compatibility

mrf operates directly on standard VASP directory trees without a workflow manager-specific database or import. It can complement manual calculations, custom scripts, and existing workflow managers.

mrf analyze groups runs by identical settings, mrf diff compares INCAR settings and structures, and mrf analyze provides calculation summaries.

High-throughput optimization

mrf can handle directory trees containing thousands of calculations. Parsing VASP outputs (XML, OUTCAR) is costly on supercomputer file systems, so the tools cache parsed results on disk (with invalidation if the original data changes).

See the Python API for MRFVaspDir, the class providing cached directory inspection.

Installation

pip install matrifflow

This installs the mrf and gorun commands.

Note: the lmdb dependency (on-disk result cache) links against the native LMDB library. On some systems – especially HPC clusters – you must provide it before pip install ., for example module load lmdb or the system dev package (apt install liblmdb-dev, dnf install lmdb-devel). If the build fails while compiling lmdb, load the module and re-run pip install matrifflow.

Next steps

Contributing

Contributions are welcome.

You can also contact the maintainer directly by email (yantar92@posteo.net) or on GitHub.