Skip to content

Commit

Permalink
ABFE testfiles (#41)
Browse files Browse the repository at this point in the history
* Add ABFE test files obtained from the tutorial http://www.alchemistry.org/wiki/Absolute_Binding_Free_Energy_-_Gromacs_2016.
* ABFE test
* update doc
* Include xvg as well
  • Loading branch information
xiki-tempula authored Mar 24, 2021
1 parent dd58712 commit 7ce4804
Show file tree
Hide file tree
Showing 56 changed files with 52,821 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docs/_build
src/alchemtest.egg-info
*__pycache__*
.idea
*.DS_Store
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include *.rst
recursive-include src/alchemtest *.gz *.bz2 *.zip *.rst *.txt *.out
recursive-include src/alchemtest *.gz *.bz2 *.zip *.rst *.txt *.out *.xvg
include README.rst
include LICENSE
include versioneer.py
Expand Down
19 changes: 18 additions & 1 deletion docs/gmx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ can be accessed using the following accessor functions:
.. autosummary::

load_benzene
load_ABFE
load_expanded_ensemble_case_1
load_expanded_ensemble_case_2
load_expanded_ensemble_case_3
Expand Down Expand Up @@ -75,4 +76,20 @@ one does not contain a energy column.

.. autofunction:: alchemtest.gmx.load_water_particle_with_total_energy
.. autofunction:: alchemtest.gmx.load_water_particle_with_potential_energy
.. autofunction:: alchemtest.gmx.load_water_particle_without_energy
.. autofunction:: alchemtest.gmx.load_water_particle_without_energy

---------------------------------------------------------------------
Absolute Binding Free Energy of n-phenylglycinonitrile to T4 lysozyme
---------------------------------------------------------------------

The dataset for computing the absolute binding free energy of
n-phenylglycinonitrile to T4 lysozyme. The calculation has two legs: complex
and ligand. In the complex leg, restraint is applied to the ligand and the
coulombic as well as the Van der Waals interactions are decoupled sequentially.
In the ligand leg, only the coulombic and Van der Waals interactions are
decoupled.


.. include:: ../src/alchemtest/gmx/ABFE/descr.rst

.. autofunction:: alchemtest.gmx.load_ABFE
1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_00.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_01.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_02.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_03.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_04.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_05.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_06.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_07.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_08.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_09.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_10.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_11.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_12.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_13.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_14.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_15.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_16.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_17.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_18.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_19.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_20.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_21.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_22.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_23.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_24.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_25.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_26.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_27.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_28.xvg

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions src/alchemtest/gmx/ABFE/complex/dhdl_29.xvg

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions src/alchemtest/gmx/ABFE/descr.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Gromacs: n-phenylglycinonitrile in T4 lysozyme
==============================================

Obtain the absolute binding free energy of the n-phenylglycinonitrile
for T4 lysozyme by alchemically turning n-phenylglycinonitrile in T4 lysozyme
and water into vacuum.

Notes
-----
Data Set Characteristics:
:Number of Legs: 2 (Restraint, Coulomb, VDW for protein;
Coulomb, VDW for water)
:Number of Windows: 11 for Restraint, 5 for Coulomb, 16 for VDW
:Length of Windows: 1ns for protein and 5ns for water
:System Size: 33005 atoms for protein and 2103 atoms for water
:Temperature: 300 K
:Pressure: 1 bar
:Alchemical Pathway: vdw + coul --> restraint + vdw + coul -->
restraint + vdw --> restraint + vacuum
:Reference Hydration Free Energy in protein: -21.721 +- 0.089 kcal/mol
:Reference Hydration Free Energy in water: -7.679 +- 0.080 kcal/mol
:Missing Values: None
:Energy unit: kJ/mol
:Time unit: ps
:Creator: \Z. Wu
:Donor: Zhiyi Wu ([email protected])
:Date: March 2021
:License: `CC0
<https://creativecommons.org/publicdomain/zero/1.0/>`_
Public Domain Dedication

This dataset was generated using
`tutorial <http://www.alchemistry.org/wiki/Absolute_Binding_Free_Energy_-_Gromacs_2016>`_
, with the `Gromacs <http://www.gromacs.org/>`_ molecular dynamics engine.

Data sourced from [Boyce2009]_.

.. [Boyce2009] Boyce, S.E., Mobley, D.L., Rocklin, G.J., Graves, A.P., Dill,
K.A., Shoichet, B.K. (2009) Predicting Ligand Binding Affinity with
Alchemical Free Energy Methods in a Polar Model Binding Site. J. Mol. Biol.
394, 747–7636
1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_00.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_01.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_02.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_03.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_04.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_05.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_06.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_07.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_08.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_09.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_10.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_11.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_12.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_13.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_14.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_15.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_16.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_17.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_18.xvg

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions src/alchemtest/gmx/ABFE/ligand/dhdl_19.xvg

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/alchemtest/gmx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"""

from .access import load_benzene
from .access import (load_benzene, load_expanded_ensemble_case_1,
from .access import (load_benzene, load_ABFE,
load_expanded_ensemble_case_1,
load_expanded_ensemble_case_2,
load_expanded_ensemble_case_3,
load_water_particle_with_potential_energy,
Expand Down
24 changes: 24 additions & 0 deletions src/alchemtest/gmx/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,30 @@ def load_benzene():
return Bunch(data=data,
DESCR=fdescr)

def load_ABFE():
"""Load the Gromacs ABFE dataset.
Returns
-------
data : Bunch
Dictionary-like object, the interesting attributes are:
- 'data' : the data files by alchemical leg
- 'DESCR': the full description of the dataset
"""

module_path = dirname(__file__)

data = {'complex': sorted(glob(join(module_path, 'ABFE', 'complex', 'dhdl_*.xvg'))),
'ligand': sorted(glob(join(module_path, 'ABFE', 'ligand', 'dhdl_*.xvg')))}

with open(join(module_path, 'ABFE', 'descr.rst')) as rst_file:
fdescr = rst_file.read()

return Bunch(data=data,
DESCR=fdescr)

def load_expanded_ensemble_case_1():
"""Load the Gromacs Host CB7 Guest C3 expanded ensemble dataset, case 1 (single simulation visits all states).
Expand Down

0 comments on commit 7ce4804

Please sign in to comment.