Metadata-Version: 2.4
Name: MatRiFFlow
Version: 2.0.3
Summary: Python and command line tools for iterative VASP workflow development. Compatible with existing workflow libraries.
Author-email: Ihor Radchenko <yantar92@posteo.net>, "Oleksandr I. Malyi" <oleksandrmalyi@gmail.com>
License-Expression: MIT
Project-URL: homepage, https://yantar92.github.io/MatRiFFlow/
Keywords: crystal,materials,science,structure,VASP,pymatgen,cluster,MACE,slurm,ase
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Clustering
Requires-Python: <3.14,>=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26.4
Requires-Dist: pymatgen
Requires-Dist: alive_progress==3.3.0
Requires-Dist: ase>=3.23.0
Requires-Dist: termcolor
Requires-Dist: rich
Requires-Dist: pandas
Requires-Dist: python-dateutil
Requires-Dist: pytimeparse
Requires-Dist: scikit-learn
Requires-Dist: networkx
Requires-Dist: cachetools
Requires-Dist: duecredit>=0.11
Requires-Dist: lmdb
Requires-Dist: typing-extensions
Provides-Extra: dev
Requires-Dist: pyright; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx>=7.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=2.0; extra == "docs"
Requires-Dist: autodocsumm>=0.2; extra == "docs"
Requires-Dist: myst-parser>=2.0; extra == "docs"
Requires-Dist: sphinxcontrib-mermaid>=0.7; extra == "docs"
Provides-Extra: mace
Requires-Dist: mace-torch; extra == "mace"
Requires-Dist: torch; extra == "mace"
Dynamic: license-file



# MatRiFFlow (formerly IMDgroup-pymatgen)

Python and command-line tools for **iterative development of
computational workflows** for VASP atomistic simulations, built on top
of [pymatgen](https://pymatgen.org/).

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](docs/img/workflow-development.svg)

`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](https://yantar92.github.io/MatRiFFlow/python_api.html) for `MRFVaspDir`, the class providing cached
directory inspection.


## Installation

    git clone https://github.com/yantar92/MatRiFFlow
    cd MatRiFFlow
    pip install .

This installs the `mrf` and `gorun` commands.

Note: the `lmdb` dependency (on-disk result cache) links against the
native LMDB library. On some systems &ndash; especially HPC clusters &ndash; 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 .`.


## Next steps

-   [Quickstart](https://yantar92.github.io/MatRiFFlow/quickstart.html): example graphite (mp-48) workflow
-   [Why this exists](https://yantar92.github.io/MatRiFFlow/concepts.html): semi-automated workflow development
-   [Command-line reference](https://yantar92.github.io/MatRiFFlow/cli.html) and [job submission](https://yantar92.github.io/MatRiFFlow/gorun.html)
-   [Python API](https://yantar92.github.io/MatRiFFlow/python_api.html)


## Contributing

Contributions are welcome.

-   Report bugs and propose features by opening an [issue](https://github.com/yantar92/MatRiFFlow/issues).
-   Ask questions and discuss design in [GitHub Discussions](https://github.com/yantar92/MatRiFFlow/discussions).
-   Submit changes as [pull requests](https://github.com/yantar92/MatRiFFlow/pulls).

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

