Metadata-Version: 2.4
Name: openfe_analysis
Version: 0.6.0.post1
Summary: Trajectory analysis of free energy calculations.
Author-email: The OpenFE developers <openfe@omsf.io>
License-Expression: MIT
Project-URL: Homepage, https://github.com/OpenFreeEnergy/openfe_analysis
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click
Requires-Dist: MDAnalysis>=2.8.0
Requires-Dist: numpy
Requires-Dist: netCDF4
Requires-Dist: openff-units
Requires-Dist: pyyaml
Requires-Dist: spyrmsd
Requires-Dist: rdkit
Requires-Dist: matplotlib
Provides-Extra: test
Requires-Dist: coverage; extra == "test"
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-xdist; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: pooch; extra == "test"
Requires-Dist: MDAnalysisTests; extra == "test"
Dynamic: license-file

# openfe_analysis

[![Logo](https://img.shields.io/badge/OSMF-OpenFreeEnergy-%23002f4a)](https://openfree.energy/)
[![CI](https://github.com/OpenFreeEnergy/openfe_analysis/actions/workflows/ci.yaml/badge.svg)](https://github.com/OpenFreeEnergy/openfe_analysis/actions/workflows/ci.yaml)
[![Coverage](https://codecov.io/gh/OpenFreeEnergy/openfe_analysis/graph/badge.svg?token=krb231ftki)](https://codecov.io/gh/OpenFreeEnergy/openfe_analysis)
[![documentation](https://readthedocs.org/projects/openfe_analysis/badge/?version=stable)](https://openfe_analysis.openfree.energy/en/stable/?badge=stable)
[![Powered by MDAnalysis](https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA)](https://www.mdanalysis.org)

## Quickstart

A package for the analysis of simulations performed using OpenFE (more specifically `.nc` files created by OpenMMTools `MultiStateReporter`).
This package provides a MDAnalysis Reader to start to explore your trajectory data:

```python
import MDAnalysis as mda
from openfe_analysis import FEReader

# A "simulation.nc" file contains multiple replicas, so we must choose which of these we load.
# Provide an index for the state or replica to extract.
# The `index_method` then determines whether `index` refers to a Hamiltonian ``state`` (following a single lambda state)
# or a ``replica`` (following a particular replica).
u = mda.Universe(
    "hybrid_system.pdb", "simulation.nc", format=FEReader, index=0, index_method="state"
)
```

For example to convert your trajectory to a different format for visualisation:

```python
import MDAnalysis as mda
from openfe_analysis import FEReader

with mda.Writer("out.xtc", n_atoms=len(u.atoms)) as w:
    for ts in u.trajectory:
        w.write(u.atoms)
```

## Installation

Installation is done via the conda package manager, simply:

```conda install -c conda-forge openfe-analysis```

For further guidance on using the conda package manager, please consult our [installation guide](https://docs.openfree.energy/en/stable/installation.html)
