-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add amber TI energy output files for testing (#6)
* add amber TI output file for testing * modify the MANIFEST.in to include the amber energy output files * add license info in amber descr.rst file and clean up the empty line * update the docs folder with amber dataset info * fixes #5
- Loading branch information
Showing
23 changed files
with
315,974 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include *.rst | ||
recursive-include src/alchemtest *.gz *.bz2 *.zip *.rst *.txt | ||
recursive-include src/alchemtest *.gz *.bz2 *.zip *.rst *.txt *.out | ||
include README.rst | ||
include LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. _amber: | ||
|
||
================ | ||
Amber datasets | ||
================ | ||
.. automodule:: alchemtest.amber | ||
|
||
The :mod:`alchemlyb.amber` module features datasets generated using the `Amber <http://www.ambermd.org/>`_ molecular dynamics engine. | ||
They can be accessed using the following accessor functions: | ||
|
||
.. currentmodule:: alchemtest.amber | ||
|
||
.. autosummary:: | ||
|
||
load_simplesolvated | ||
|
||
|
||
.. _amber_simplesolvated: | ||
|
||
.. include:: ../src/alchemtest/amber/simplesolvated/descr.rst | ||
|
||
.. autofunction:: alchemtest.amber.load_simplesolvated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ Datasets are released under an `open license`_ that conforms to the `Open Defini | |
:caption: Datasets | ||
|
||
gmx | ||
amber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Amber molecular dynamics simulation datasets. | ||
""" | ||
|
||
from .access import load_simplesolvated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Accessors for Amber TI datasets. | ||
""" | ||
|
||
from os.path import dirname | ||
from os.path import join | ||
from glob import glob | ||
from sklearn.datasets.base import Bunch | ||
|
||
def load_simplesolvated(): | ||
"""Load the Amber solvated 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 = {'charge': glob(join(module_path, 'simplesolvated/charge/*/ti-*.out')), | ||
'vdw': glob(join(module_path, 'simplesolvated/vdw/*/ti-*.out'))} | ||
|
||
with open(join(module_path, 'simplesolvated', 'descr.rst')) as rst_file: | ||
fdescr = rst_file.read() | ||
|
||
return Bunch(data=data, | ||
DESCR=fdescr) |
Oops, something went wrong.