openfe-analysis 0.6.0.post1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. openfe_analysis-0.6.0.post1/.github/workflows/ci.yaml +98 -0
  2. openfe_analysis-0.6.0.post1/.github/workflows/mypy.yaml +55 -0
  3. openfe_analysis-0.6.0.post1/.gitignore +168 -0
  4. openfe_analysis-0.6.0.post1/.pre-commit-config.yaml +28 -0
  5. openfe_analysis-0.6.0.post1/.readthedocs.yaml +24 -0
  6. openfe_analysis-0.6.0.post1/LICENSE +21 -0
  7. openfe_analysis-0.6.0.post1/PKG-INFO +74 -0
  8. openfe_analysis-0.6.0.post1/README.md +44 -0
  9. openfe_analysis-0.6.0.post1/docs/CHANGELOG.rst +84 -0
  10. openfe_analysis-0.6.0.post1/docs/Makefile +20 -0
  11. openfe_analysis-0.6.0.post1/docs/api.rst +11 -0
  12. openfe_analysis-0.6.0.post1/docs/conf.py +77 -0
  13. openfe_analysis-0.6.0.post1/docs/environment.yaml +12 -0
  14. openfe_analysis-0.6.0.post1/docs/index.rst +28 -0
  15. openfe_analysis-0.6.0.post1/docs/tutorials/boresch_analysis.ipynb +446 -0
  16. openfe_analysis-0.6.0.post1/docs/tutorials/index.rst +13 -0
  17. openfe_analysis-0.6.0.post1/docs/tutorials/structural_analysis.ipynb +957 -0
  18. openfe_analysis-0.6.0.post1/environment.yml +22 -0
  19. openfe_analysis-0.6.0.post1/examples/boresch_analysis.ipynb +446 -0
  20. openfe_analysis-0.6.0.post1/examples/structural_analysis.ipynb +957 -0
  21. openfe_analysis-0.6.0.post1/news/TEMPLATE.rst +23 -0
  22. openfe_analysis-0.6.0.post1/pyproject.toml +85 -0
  23. openfe_analysis-0.6.0.post1/rever.xsh +7 -0
  24. openfe_analysis-0.6.0.post1/setup.cfg +4 -0
  25. openfe_analysis-0.6.0.post1/src/openfe_analysis/__init__.py +8 -0
  26. openfe_analysis-0.6.0.post1/src/openfe_analysis/_version.py +24 -0
  27. openfe_analysis-0.6.0.post1/src/openfe_analysis/reader.py +227 -0
  28. openfe_analysis-0.6.0.post1/src/openfe_analysis/restraints.py +92 -0
  29. openfe_analysis-0.6.0.post1/src/openfe_analysis/rmsd.py +372 -0
  30. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/conftest.py +105 -0
  31. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/data/__init__.py +0 -0
  32. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/test_gather_rms_data.py +94 -0
  33. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/test_reader.py +185 -0
  34. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/test_restraints.py +75 -0
  35. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/test_rmsd_classes.py +291 -0
  36. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/test_transformations.py +86 -0
  37. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/utils/__init__.py +0 -0
  38. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/utils/test_apply_transformations.py +142 -0
  39. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/utils/test_multistate.py +220 -0
  40. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/utils/test_plotting.py +46 -0
  41. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/utils/test_serialization.py +43 -0
  42. openfe_analysis-0.6.0.post1/src/openfe_analysis/tests/utils/test_universe_utils.py +81 -0
  43. openfe_analysis-0.6.0.post1/src/openfe_analysis/transformations.py +131 -0
  44. openfe_analysis-0.6.0.post1/src/openfe_analysis/utils/__init__.py +0 -0
  45. openfe_analysis-0.6.0.post1/src/openfe_analysis/utils/apply_transformations.py +115 -0
  46. openfe_analysis-0.6.0.post1/src/openfe_analysis/utils/multistate.py +293 -0
  47. openfe_analysis-0.6.0.post1/src/openfe_analysis/utils/plotting.py +139 -0
  48. openfe_analysis-0.6.0.post1/src/openfe_analysis/utils/serialization.py +50 -0
  49. openfe_analysis-0.6.0.post1/src/openfe_analysis/utils/universe_utils.py +122 -0
  50. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/PKG-INFO +74 -0
  51. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/SOURCES.txt +55 -0
  52. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/dependency_links.txt +1 -0
  53. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/entry_points.txt +2 -0
  54. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/not-zip-safe +1 -0
  55. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/requires.txt +17 -0
  56. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/scm_file_list.json +50 -0
  57. openfe_analysis-0.6.0.post1/src/openfe_analysis.egg-info/top_level.txt +1 -0
@@ -0,0 +1,98 @@
1
+ name: "CI"
2
+ on:
3
+ pull_request:
4
+ branches:
5
+ - main
6
+ push:
7
+ branches:
8
+ - main
9
+ schedule:
10
+ # At 07:00 UTC on Monday and Thursday.
11
+ - cron: "0 7 * * *"
12
+ workflow_dispatch:
13
+
14
+ defaults:
15
+ run:
16
+ shell: bash -leo pipefail {0}
17
+
18
+ jobs:
19
+ tests:
20
+ runs-on: ${{ matrix.os}}
21
+ name: "💻-${{matrix.os }} 🐍-${{ matrix.python-version }}"
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ os: ["ubuntu-latest", "macos-latest"]
26
+ python-version:
27
+ - "3.11"
28
+ - "3.12"
29
+ steps:
30
+ - uses: actions/checkout@v6
31
+ with:
32
+ fetch-depth: 0
33
+
34
+ - name: Get current date
35
+ id: date
36
+ run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
37
+
38
+ - name: "Setup Micromamba"
39
+ uses: mamba-org/setup-micromamba@v3
40
+ with:
41
+ environment-file: environment.yml
42
+ environment-name: openfe_analysis_env
43
+ cache-environment: true
44
+ cache-downloads: true
45
+ cache-environment-key: environment-${{ steps.date.outputs.date }}
46
+ cache-downloads-key: downloads-${{ steps.date.outputs.date }}
47
+ create-args: >-
48
+ python=${{ matrix.python-version }}
49
+ init-shell: bash
50
+
51
+ - name: "Install"
52
+ run: |
53
+ python -m pip install --no-deps .
54
+
55
+ - name: Cache Pooch data
56
+ uses: actions/cache@v5
57
+ with:
58
+ path: |
59
+ # Linux cache location
60
+ ~/.cache/openfe_analysis
61
+ # macOS cache location
62
+ ~/Library/Caches/openfe_analysis
63
+ key: pooch-${{ matrix.os }}-v2
64
+
65
+ - name: "Download Zenodo data"
66
+ run: |
67
+ python - <<'EOF'
68
+ import pooch
69
+ from openfe_analysis.tests.conftest import ZENODO_DOI, ZENODO_FILES
70
+
71
+ zenodo = pooch.create(
72
+ path=pooch.os_cache('openfe_analysis'),
73
+ base_url=ZENODO_DOI,
74
+ registry=ZENODO_FILES,
75
+ )
76
+
77
+ for fname in ZENODO_FILES:
78
+ zenodo.fetch(fname, processor=pooch.Untar())
79
+
80
+ EOF
81
+
82
+ - name: "Test imports"
83
+ run: |
84
+ python -Ic "import openfe_analysis; print(openfe_analysis.__version__)"
85
+
86
+ - name: "Run tests"
87
+ run: |
88
+ pytest -n auto -v --cov=openfe_analysis --cov-report=xml --durations=10
89
+
90
+ - name: codecov
91
+ if: ${{ github.repository == 'OpenFreeEnergy/openfe_analysis'
92
+ && github.event_name != 'schedule' }}
93
+ uses: codecov/codecov-action@v6
94
+ with:
95
+ token: ${{ secrets.CODECOV_TOKEN }}
96
+ file: coverage.xml
97
+ fail_ci_if_error: false
98
+ verbose: true
@@ -0,0 +1,55 @@
1
+ name: "mypy"
2
+ on:
3
+ pull_request:
4
+ branches:
5
+ - main
6
+ push:
7
+ branches:
8
+ - main
9
+ paths:
10
+ - "**.py"
11
+
12
+ concurrency:
13
+ group: "${{ github.workflow }}-${{ github.ref }}"
14
+ cancel-in-progress: true
15
+
16
+ defaults:
17
+ run:
18
+ shell: bash -leo pipefail {0}
19
+
20
+ jobs:
21
+ mypy:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+
26
+ - name: Get current date
27
+ id: date
28
+ run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
29
+
30
+ - name: "Setup Micromamba"
31
+ uses: mamba-org/setup-micromamba@v3
32
+ with:
33
+ environment-file: environment.yml
34
+ environment-name: openfe_analysis
35
+ cache-environment: true
36
+ cache-downloads: true
37
+ cache-environment-key: environment-${{ steps.date.outputs.date }}
38
+ cache-downloads-key: downloads-${{ steps.date.outputs.date }}
39
+ create-args: >-
40
+ python=3.12
41
+
42
+ init-shell: bash
43
+
44
+ - name: "Install steps"
45
+ run: |
46
+ python -m pip install mypy
47
+ python -m pip install --no-deps -e .
48
+
49
+ - name: "Environment Information"
50
+ run: |
51
+ micromamba info
52
+ micromamba list
53
+
54
+ - name: "Lint with mypy"
55
+ run: mypy
@@ -0,0 +1,168 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ .idea/*
6
+ *_version.py
7
+
8
+ # emacs temp files
9
+ *~
10
+
11
+ # C extensions
12
+ *.so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py,cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+ cover/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+ db.sqlite3-journal
68
+
69
+ # Flask stuff:
70
+ instance/
71
+ .webassets-cache
72
+
73
+ # Scrapy stuff:
74
+ .scrapy
75
+
76
+ # Sphinx documentation
77
+ docs/_build/
78
+
79
+ # PyBuilder
80
+ .pybuilder/
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ # For a library or package, you might want to ignore these files since the code is
92
+ # intended to run in multiple environments; otherwise, check them in:
93
+ # .python-version
94
+
95
+ # pipenv
96
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99
+ # install all needed dependencies.
100
+ #Pipfile.lock
101
+
102
+ # poetry
103
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
104
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
105
+ # commonly ignored for libraries.
106
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
107
+ #poetry.lock
108
+
109
+ # pdm
110
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
111
+ #pdm.lock
112
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
113
+ # in version control.
114
+ # https://pdm.fming.dev/#use-with-ide
115
+ .pdm.toml
116
+
117
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
118
+ __pypackages__/
119
+
120
+ # Celery stuff
121
+ celerybeat-schedule
122
+ celerybeat.pid
123
+
124
+ # SageMath parsed files
125
+ *.sage.py
126
+
127
+ # Environments
128
+ .env
129
+ .venv
130
+ env/
131
+ venv/
132
+ ENV/
133
+ env.bak/
134
+ venv.bak/
135
+
136
+ # Spyder project settings
137
+ .spyderproject
138
+ .spyproject
139
+
140
+ # Rope project settings
141
+ .ropeproject
142
+
143
+ # mkdocs documentation
144
+ /site
145
+
146
+ # mypy
147
+ .mypy_cache/
148
+ .dmypy.json
149
+ dmypy.json
150
+
151
+ # Pyre type checker
152
+ .pyre/
153
+
154
+ # pytype static type analyzer
155
+ .pytype/
156
+
157
+ # Cython debug symbols
158
+ cython_debug/
159
+
160
+ # rever
161
+ rever/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
@@ -0,0 +1,28 @@
1
+ ci:
2
+ autoupdate_schedule: "quarterly"
3
+ # comment / label "pre-commit.ci autofix" to a pull request to manually trigger auto-fixing
4
+ autofix_prs: false
5
+ repos:
6
+ - repo: https://github.com/pre-commit/pre-commit-hooks
7
+ rev: v6.0.0
8
+ hooks:
9
+ - id: check-added-large-files
10
+ - id: check-case-conflict
11
+ - id: check-executables-have-shebangs
12
+ - id: check-symlinks
13
+ - id: check-toml
14
+ - id: check-yaml
15
+ - id: debug-statements
16
+ - id: destroyed-symlinks
17
+ - id: end-of-file-fixer
18
+ exclude: '\.(graphml)$'
19
+ - id: trailing-whitespace
20
+ exclude: '\.(pdb|gro|top|sdf|xml|cif|graphml)$'
21
+ - repo: https://github.com/astral-sh/ruff-pre-commit
22
+ rev: v0.16.10
23
+ hooks:
24
+ # Run the linter.
25
+ - id: ruff
26
+ args: [--fix ]
27
+ # Run the formatter.
28
+ - id: ruff-format
@@ -0,0 +1,24 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ build:
9
+ os: ubuntu-24.04
10
+ tools:
11
+ python: "mambaforge-4.10"
12
+
13
+ sphinx:
14
+ configuration: docs/conf.py
15
+ fail_on_warning: true
16
+
17
+ conda:
18
+ environment: docs/environment.yaml
19
+
20
+ python:
21
+ # Install our python package before building the docs so setuptools-scm generates the version for RTD to find.
22
+ install:
23
+ - method: pip
24
+ path: .
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 OpenFreeEnergy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,74 @@
1
+ Metadata-Version: 2.4
2
+ Name: openfe_analysis
3
+ Version: 0.6.0.post1
4
+ Summary: Trajectory analysis of free energy calculations.
5
+ Author-email: The OpenFE developers <openfe@omsf.io>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/OpenFreeEnergy/openfe_analysis
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.11
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: click
14
+ Requires-Dist: MDAnalysis>=2.8.0
15
+ Requires-Dist: numpy
16
+ Requires-Dist: netCDF4
17
+ Requires-Dist: openff-units
18
+ Requires-Dist: pyyaml
19
+ Requires-Dist: spyrmsd
20
+ Requires-Dist: rdkit
21
+ Requires-Dist: matplotlib
22
+ Provides-Extra: test
23
+ Requires-Dist: coverage; extra == "test"
24
+ Requires-Dist: pytest; extra == "test"
25
+ Requires-Dist: pytest-xdist; extra == "test"
26
+ Requires-Dist: pytest-cov; extra == "test"
27
+ Requires-Dist: pooch; extra == "test"
28
+ Requires-Dist: MDAnalysisTests; extra == "test"
29
+ Dynamic: license-file
30
+
31
+ # openfe_analysis
32
+
33
+ [![Logo](https://img.shields.io/badge/OSMF-OpenFreeEnergy-%23002f4a)](https://openfree.energy/)
34
+ [![CI](https://github.com/OpenFreeEnergy/openfe_analysis/actions/workflows/ci.yaml/badge.svg)](https://github.com/OpenFreeEnergy/openfe_analysis/actions/workflows/ci.yaml)
35
+ [![Coverage](https://codecov.io/gh/OpenFreeEnergy/openfe_analysis/graph/badge.svg?token=krb231ftki)](https://codecov.io/gh/OpenFreeEnergy/openfe_analysis)
36
+ [![documentation](https://readthedocs.org/projects/openfe_analysis/badge/?version=stable)](https://openfe_analysis.openfree.energy/en/stable/?badge=stable)
37
+ [![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+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8wAkv2kfY+elJ6al/yVlZX7iIiI8H9/f7h/f38UAAAAAAAAAAAAAAAAAAAAAAAAAAB/f38egYF/noqAebF8gYaagnx3oFpUUtZpaWr/WFhY8zo6OmT///8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAn46Ojv+Hh4b/jouJ/4iGhfcAAADnAAAA/wAAAP8AAADIAAAAAwCj/zIAnf2VAJD/PAAAAAAAAAAAAAAAAICAgNGHh4f/gICA/4SEhP+Xl5f/AwMD/wAAAP8AAAD/AAAA/wAAAB8Aov9/ALr//wCS/Z0AAAAAAAAAAAAAAACBgYGOjo6O/4mJif+Pj4//iYmJ/wAAAOAAAAD+AAAA/wAAAP8AAABhAP7+FgCi/38Axf4fAAAAAAAAAAAAAAAAiIiID4GBgYKCgoKogoB+fYSEgZhgYGDZXl5e/m9vb/9ISEjpEBAQxw8AAFQAAAAAAAAANQAAADcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjo6Mb5iYmP+cnJz/jY2N95CQkO4pKSn/AAAA7gAAAP0AAAD7AAAAhgAAAAEAAAAAAAAAAACL/gsAkv2uAJX/QQAAAAB9fX3egoKC/4CAgP+NjY3/c3Nz+wAAAP8AAAD/AAAA/wAAAPUAAAAcAAAAAAAAAAAAnP4NAJL9rgCR/0YAAAAAfX19w4ODg/98fHz/i4uL/4qKivwAAAD/AAAA/wAAAP8AAAD1AAAAGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALGxsVyqqqr/mpqa/6mpqf9KSUn/AAAA5QAAAPkAAAD5AAAAhQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA)](https://www.mdanalysis.org)
38
+
39
+ ## Quickstart
40
+
41
+ A package for the analysis of simulations performed using OpenFE (more specifically `.nc` files created by OpenMMTools `MultiStateReporter`).
42
+ This package provides a MDAnalysis Reader to start to explore your trajectory data:
43
+
44
+ ```python
45
+ import MDAnalysis as mda
46
+ from openfe_analysis import FEReader
47
+
48
+ # A "simulation.nc" file contains multiple replicas, so we must choose which of these we load.
49
+ # Provide an index for the state or replica to extract.
50
+ # The `index_method` then determines whether `index` refers to a Hamiltonian ``state`` (following a single lambda state)
51
+ # or a ``replica`` (following a particular replica).
52
+ u = mda.Universe(
53
+ "hybrid_system.pdb", "simulation.nc", format=FEReader, index=0, index_method="state"
54
+ )
55
+ ```
56
+
57
+ For example to convert your trajectory to a different format for visualisation:
58
+
59
+ ```python
60
+ import MDAnalysis as mda
61
+ from openfe_analysis import FEReader
62
+
63
+ with mda.Writer("out.xtc", n_atoms=len(u.atoms)) as w:
64
+ for ts in u.trajectory:
65
+ w.write(u.atoms)
66
+ ```
67
+
68
+ ## Installation
69
+
70
+ Installation is done via the conda package manager, simply:
71
+
72
+ ```conda install -c conda-forge openfe-analysis```
73
+
74
+ For further guidance on using the conda package manager, please consult our [installation guide](https://docs.openfree.energy/en/stable/installation.html)
@@ -0,0 +1,44 @@
1
+ # openfe_analysis
2
+
3
+ [![Logo](https://img.shields.io/badge/OSMF-OpenFreeEnergy-%23002f4a)](https://openfree.energy/)
4
+ [![CI](https://github.com/OpenFreeEnergy/openfe_analysis/actions/workflows/ci.yaml/badge.svg)](https://github.com/OpenFreeEnergy/openfe_analysis/actions/workflows/ci.yaml)
5
+ [![Coverage](https://codecov.io/gh/OpenFreeEnergy/openfe_analysis/graph/badge.svg?token=krb231ftki)](https://codecov.io/gh/OpenFreeEnergy/openfe_analysis)
6
+ [![documentation](https://readthedocs.org/projects/openfe_analysis/badge/?version=stable)](https://openfe_analysis.openfree.energy/en/stable/?badge=stable)
7
+ [![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+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8wAkv2kfY+elJ6al/yVlZX7iIiI8H9/f7h/f38UAAAAAAAAAAAAAAAAAAAAAAAAAAB/f38egYF/noqAebF8gYaagnx3oFpUUtZpaWr/WFhY8zo6OmT///8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAn46Ojv+Hh4b/jouJ/4iGhfcAAADnAAAA/wAAAP8AAADIAAAAAwCj/zIAnf2VAJD/PAAAAAAAAAAAAAAAAICAgNGHh4f/gICA/4SEhP+Xl5f/AwMD/wAAAP8AAAD/AAAA/wAAAB8Aov9/ALr//wCS/Z0AAAAAAAAAAAAAAACBgYGOjo6O/4mJif+Pj4//iYmJ/wAAAOAAAAD+AAAA/wAAAP8AAABhAP7+FgCi/38Axf4fAAAAAAAAAAAAAAAAiIiID4GBgYKCgoKogoB+fYSEgZhgYGDZXl5e/m9vb/9ISEjpEBAQxw8AAFQAAAAAAAAANQAAADcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjo6Mb5iYmP+cnJz/jY2N95CQkO4pKSn/AAAA7gAAAP0AAAD7AAAAhgAAAAEAAAAAAAAAAACL/gsAkv2uAJX/QQAAAAB9fX3egoKC/4CAgP+NjY3/c3Nz+wAAAP8AAAD/AAAA/wAAAPUAAAAcAAAAAAAAAAAAnP4NAJL9rgCR/0YAAAAAfX19w4ODg/98fHz/i4uL/4qKivwAAAD/AAAA/wAAAP8AAAD1AAAAGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALGxsVyqqqr/mpqa/6mpqf9KSUn/AAAA5QAAAPkAAAD5AAAAhQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA)](https://www.mdanalysis.org)
8
+
9
+ ## Quickstart
10
+
11
+ A package for the analysis of simulations performed using OpenFE (more specifically `.nc` files created by OpenMMTools `MultiStateReporter`).
12
+ This package provides a MDAnalysis Reader to start to explore your trajectory data:
13
+
14
+ ```python
15
+ import MDAnalysis as mda
16
+ from openfe_analysis import FEReader
17
+
18
+ # A "simulation.nc" file contains multiple replicas, so we must choose which of these we load.
19
+ # Provide an index for the state or replica to extract.
20
+ # The `index_method` then determines whether `index` refers to a Hamiltonian ``state`` (following a single lambda state)
21
+ # or a ``replica`` (following a particular replica).
22
+ u = mda.Universe(
23
+ "hybrid_system.pdb", "simulation.nc", format=FEReader, index=0, index_method="state"
24
+ )
25
+ ```
26
+
27
+ For example to convert your trajectory to a different format for visualisation:
28
+
29
+ ```python
30
+ import MDAnalysis as mda
31
+ from openfe_analysis import FEReader
32
+
33
+ with mda.Writer("out.xtc", n_atoms=len(u.atoms)) as w:
34
+ for ts in u.trajectory:
35
+ w.write(u.atoms)
36
+ ```
37
+
38
+ ## Installation
39
+
40
+ Installation is done via the conda package manager, simply:
41
+
42
+ ```conda install -c conda-forge openfe-analysis```
43
+
44
+ For further guidance on using the conda package manager, please consult our [installation guide](https://docs.openfree.energy/en/stable/installation.html)
@@ -0,0 +1,84 @@
1
+ =========
2
+ Changelog
3
+ =========
4
+
5
+ .. current developments
6
+
7
+ v0.6.0
8
+ ====================
9
+
10
+ **Added:**
11
+
12
+ * Added a tutorial notebook demonstrating structural analysis of multistate
13
+ trajectory files, covering both the relative hybrid topology and separated
14
+ topologies (SepTop) protocols (`PR #114 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/114>`_).
15
+ * Added a BoreschRestraintAnalysis class that calculates and returns the Boresch restraint geometry (bond, 2 angles, 3 dihedrals) time series. Also added an example notebook that shows how to conduct the analysis for the SepTop and ABFE protocols (`PR #123 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/123>`_).
16
+
17
+ **Fixed:**
18
+
19
+ * Fixed incorrect periodic boundary condition handling during protein alignment when multiple protein chains share the same segment ID, by using bonded protein fragments instead of segments for image shifting. Alignment now also raises a ValueError if the protein contains no bonds, rather than silently producing incorrect results (`PR #124 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/124>`_).
20
+
21
+
22
+
23
+ v0.5.0
24
+ ====================
25
+
26
+ **Added:**
27
+
28
+ * Added API documentation, which can be found at openfe-analysis.openfree.energy (`PR #74 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/74>`_).
29
+ * Plotting utilities for ligand RMSD, COM drift timeseries, and protein 2D RMSD (`PR #106 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/106>`_).
30
+ * Symmetry-corrected ligand RMSD via spyrmsd (:class:`SymmetryCorrectedLigandRMSD`) (`PR #92 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/92>`_).
31
+
32
+ **Changed:**
33
+
34
+ * :func:`apply_complex_alignment_transformations` now handles multiple ligands, as needed for the SepTop protocol (`PR #110 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/110>`_).
35
+ * Universe creation and trajectory alignment split into separate functions:
36
+ :func:`create_universe_single_state`, :func:`apply_complex_alignment_transformations`
37
+ (for protein-ligand systems), and :func:`apply_ligand_alignment_transformations`
38
+ (for ligand-only systems) (`PR #93 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/93>`_).
39
+ * Structural analyses refactored into MDAnalysis ``AnalysisBase`` classes (`PR #90 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/90>`_).
40
+
41
+ **Removed:**
42
+
43
+ * :func:`make_Universe` — replaced by :func:`create_universe_single_state` combined
44
+ with :func:`apply_complex_alignment_transformations` or
45
+ :func:`apply_ligand_alignment_transformations` (`PR #93 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/93>`_).
46
+
47
+ **Fixed:**
48
+
49
+ * :func:`_determine_position_indices` now correctly handles single-frame trajectories (`PR #107 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/107>`_).
50
+
51
+
52
+
53
+ v0.4.0
54
+ ====================
55
+
56
+ **Changed:**
57
+
58
+ * Changed ``openfe_analysis.FEReader`` to use parameters ``index`` and ``index_method`` instead of ``state_id`` and ``replica_id`` (`PR #77 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/77>`_).
59
+
60
+ **Removed:**
61
+
62
+ * Removed ``openfe-analysis`` CLI (`PR #86 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/86>`_).
63
+
64
+ **Fixed:**
65
+
66
+ * Fixed periodic boundary condition bug in multi-chain RMSD analysis (`Issue #30 <https://github.com/OpenFreeEnergy/openfe_analysis/issues/30>`_).
67
+
68
+
69
+
70
+ v0.3.1
71
+ ====================
72
+
73
+ **Fixed:**
74
+
75
+ * Fixed ``n_frames`` reading in netcdf reader (`PR #48 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/48>`_).
76
+
77
+
78
+
79
+ v0.3.0
80
+ ======
81
+
82
+ **Added:**
83
+
84
+ * Added support for multistate netcdf files generated by openmmtools with variable position and velocity writing rates (`PR #40 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/40>`_ and `#44 <https://github.com/OpenFreeEnergy/openfe_analysis/pull/44>`_ .
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?= -v -W --keep-going
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,11 @@
1
+ API Documentation
2
+ =================
3
+
4
+ .. autosummary::
5
+ :toctree: generated
6
+ :recursive:
7
+
8
+ openfe_analysis.reader
9
+ openfe_analysis.transformations
10
+ openfe_analysis.rmsd
11
+ openfe_analysis.utils