Skip to content

Commit

Permalink
Upgrade to openff 0.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
martimunicoy committed Feb 12, 2024
1 parent cd575e0 commit 366b767
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 102 deletions.
3 changes: 2 additions & 1 deletion devtools/conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ requirements:
- networkx
- rdkit
- ambertools
- openff-toolkit==0.10.1
- openff-toolkit==0.10.7
- openff-forcefields==2024.01.0

about:
home: https://github.com/martimunicoy/peleffy
Expand Down
5 changes: 3 additions & 2 deletions devtools/envs/standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ dependencies:
- pytest
- pytest-cov
- codecov
- coverage < 5.0
- coverage
- ipython
- ambertools
- rdkit
- openff-toolkit==0.10.1
- openff-toolkit==0.10.7
- openff-forcefields==2024.01.0
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ are:

* The following force field from the `Open Force Field toolkit <https://github.com/openforcefield/openforcefield>`_:

* openff_unconstrained-2.1.1.offxml

* openff_unconstrained-2.1.0.offxml

* openff_unconstrained-2.0.0.offxml

* openff_unconstrained-1.3.0.offxml
Expand Down
11 changes: 11 additions & 0 deletions docs/releasehistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ Releases follow the ``major.minor.micro`` scheme recommended by `PEP440 <https:/
* ``micro`` increments represent bugfix releases or improvements in documentation


1.4.5 - Additional enhancements for alchemistry
-----------------------------------------------

This is a micro release of peleffy that contains additional enhancements for alchemistry module.

New features
""""""""""""
- `PR #182 <https://github.com/martimunicoy/peleffy/pull/182>`_: better alchemical structure alignment
- `PR #182 <https://github.com/martimunicoy/peleffy/pull/182>`_: more lambda types available (vdw1 and vdw2)


1.4.5 - Corrections for alchemistry
-----------------------------------

Expand Down
40 changes: 20 additions & 20 deletions peleffy/data/tests/alchemical_ligandParams_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
},
"HYB": {
"_C1_": {
"radius": 1.625,
"scale": 0.755
"radius": 1.7,
"scale": 0.36
},
"_N1_": {
"radius": 1.625,
"scale": 0.755
},
"_C2_": {
"radius": 1.625,
"scale": 0.755
},
"_C3_": {
"radius": 1.7,
"scale": 0.36
},
"_C3_": {
"radius": 1.625,
"scale": 0.755
},
"_C4_": {
"radius": 1.7,
"scale": 0.36
"radius": 1.625,
"scale": 0.755
},
"_C5_": {
"radius": 1.7,
Expand All @@ -41,20 +41,20 @@
"scale": 0.425
},
"_H1_": {
"radius": 1.25,
"scale": 0.85
"radius": 1.2,
"scale": 0.425
},
"_H2_": {
"radius": 1.25,
"scale": 0.85
"radius": 1.2,
"scale": 0.425
},
"_H3_": {
"radius": 1.2,
"scale": 0.425
},
"_H4_": {
"radius": 1.25,
"scale": 0.85
"radius": 1.2,
"scale": 0.425
},
"_H5_": {
"radius": 1.2,
Expand All @@ -65,24 +65,24 @@
"scale": 0.425
},
"_H7_": {
"radius": 1.2,
"scale": 0.425
"radius": 1.25,
"scale": 0.85
},
"_H8_": {
"radius": 1.2,
"scale": 0.425
},
"_H9_": {
"radius": 1.2,
"scale": 0.425
"radius": 1.25,
"scale": 0.85
},
"H10_": {
"radius": 1.2,
"scale": 0.425
},
"H11_": {
"radius": 1.2,
"scale": 0.425
"radius": 1.25,
"scale": 0.85
},
"_C6_": {
"radius": 1.7,
Expand Down
40 changes: 20 additions & 20 deletions peleffy/data/tests/alchemical_ligandParams_2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
},
"HYB": {
"_C1_": {
"radius": 1.55,
"scale": 0.79
"radius": 1.7,
"scale": 0.0
},
"_N1_": {
"radius": 1.7,
"scale": 0.72
},
"_C2_": {
"radius": 1.55,
"scale": 0.79
},
"_C3_": {
"radius": 1.7,
"scale": 0.0
},
"_C3_": {
"radius": 1.55,
"scale": 0.79
},
"_C4_": {
"radius": 1.7,
"scale": 0.0
"radius": 1.55,
"scale": 0.79
},
"_C5_": {
"radius": 1.7,
Expand All @@ -41,20 +41,20 @@
"scale": 0.0
},
"_H1_": {
"radius": 1.3,
"scale": 0.85
"radius": 1.2,
"scale": 0.0
},
"_H2_": {
"radius": 1.3,
"scale": 0.85
"radius": 1.2,
"scale": 0.0
},
"_H3_": {
"radius": 1.2,
"scale": 0.0
},
"_H4_": {
"radius": 1.3,
"scale": 0.85
"radius": 1.2,
"scale": 0.0
},
"_H5_": {
"radius": 1.2,
Expand All @@ -65,24 +65,24 @@
"scale": 0.0
},
"_H7_": {
"radius": 1.2,
"scale": 0.0
"radius": 1.3,
"scale": 0.85
},
"_H8_": {
"radius": 1.2,
"scale": 0.0
},
"_H9_": {
"radius": 1.2,
"scale": 0.0
"radius": 1.3,
"scale": 0.85
},
"H10_": {
"radius": 1.2,
"scale": 0.0
},
"H11_": {
"radius": 1.2,
"scale": 0.0
"radius": 1.3,
"scale": 0.85
},
"_C6_": {
"radius": 1.7,
Expand Down
34 changes: 17 additions & 17 deletions peleffy/data/tests/alchemical_mol2.pdb
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
COMPND HYDROLASE (SERINE PROTEINASE)
HETATM 1 C1 BEN A 1 -0.779 0.348 1.160 1.00 19.86 C
HETATM 2 C2 BEN A 1 -0.825 -0.520 2.218 1.00 19.86 C
HETATM 3 C3 BEN A 1 -0.996 -0.028 3.518 1.00 19.86 C
HETATM 4 C4 BEN A 1 -1.127 1.352 3.741 1.00 19.86 C
HETATM 5 C5 BEN A 1 -1.087 2.225 2.651 1.00 19.86 C
HETATM 6 C6 BEN A 1 -0.914 1.710 1.369 1.00 19.86 C
HETATM 7 C BEN A 1 -0.600 -0.141 -0.129 1.00 19.86 C
HETATM 8 N1 BEN A 1 -0.430 -1.431 -0.359 1.00 19.86 N
HETATM 9 N2 BEN A 1 -0.767 0.660 -1.167 1.00 19.86 N
HETATM 10 H2 BEN A 1 -0.729 -1.582 2.050 1.00 0.00 H
HETATM 11 H3 BEN A 1 -1.027 -0.710 4.355 1.00 0.00 H
HETATM 12 H4 BEN A 1 -1.256 1.727 4.746 1.00 0.00 H
HETATM 13 H5 BEN A 1 -1.191 3.289 2.807 1.00 0.00 H
HETATM 14 H6 BEN A 1 -0.885 2.390 0.531 1.00 0.00 H
HETATM 15 H1 1 BEN A 1 -0.302 -1.763 -1.304 1.00 0.00 H
HETATM 16 H1 2 BEN A 1 -0.429 -2.085 0.411 1.00 0.00 H
HETATM 17 HN2 BEN A 1 -0.637 0.307 -2.104 1.00 0.00 H
HETATM 1 C1 BEN A 1 0.918 -1.174 0.729 1.00 19.86 C
HETATM 2 C2 BEN A 1 0.521 -1.960 1.777 1.00 19.86 C
HETATM 3 C3 BEN A 1 1.179 -3.171 2.031 1.00 19.86 C
HETATM 4 C4 BEN A 1 2.249 -3.579 1.219 1.00 19.86 C
HETATM 5 C5 BEN A 1 2.648 -2.762 0.158 1.00 19.86 C
HETATM 6 C6 BEN A 1 1.975 -1.565 -0.074 1.00 19.86 C
HETATM 7 C BEN A 1 0.257 0.022 0.472 1.00 19.86 C
HETATM 8 N1 BEN A 1 -0.779 0.406 1.195 1.00 19.86 N
HETATM 9 N2 BEN A 1 0.764 0.882 -0.396 1.00 19.86 N
HETATM 10 H2 BEN A 1 -0.298 -1.647 2.407 1.00 0.00 H
HETATM 11 H3 BEN A 1 0.864 -3.794 2.854 1.00 0.00 H
HETATM 12 H4 BEN A 1 2.752 -4.514 1.417 1.00 0.00 H
HETATM 13 H5 BEN A 1 3.472 -3.061 -0.474 1.00 0.00 H
HETATM 14 H6 BEN A 1 2.291 -0.938 -0.896 1.00 0.00 H
HETATM 15 H1 1 BEN A 1 -1.243 1.279 0.989 1.00 0.00 H
HETATM 16 H1 2 BEN A 1 -1.108 -0.175 1.954 1.00 0.00 H
HETATM 17 HN2 BEN A 1 0.286 1.751 -0.584 1.00 0.00 H
CONECT 1 2 2 6 7
CONECT 2 3 10
CONECT 3 4 4 11
Expand Down
22 changes: 11 additions & 11 deletions peleffy/data/tests/alchemical_structure.pdb
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ HETATM 16 H8 HYB L 1 -1.108 -0.781 1.667 1.00 0.00 H
HETATM 17 H9 HYB L 1 -0.323 0.825 1.846 1.00 0.00 H
HETATM 18 H10 HYB L 1 1.237 0.709 -1.316 1.00 0.00 H
HETATM 19 H11 HYB L 1 0.622 1.801 -0.063 1.00 0.00 H
HETATM 20 C6 HYB L 1 -0.779 0.348 1.160 1.00 0.00 C
HETATM 21 C7 HYB L 1 -0.825 -0.520 2.218 1.00 0.00 C
HETATM 22 C8 HYB L 1 -0.996 -0.028 3.518 1.00 0.00 C
HETATM 23 C9 HYB L 1 -1.127 1.352 3.741 1.00 0.00 C
HETATM 24 C10 HYB L 1 -1.087 2.225 2.651 1.00 0.00 C
HETATM 25 C11 HYB L 1 -0.914 1.710 1.369 1.00 0.00 C
HETATM 26 H12 HYB L 1 -0.729 -1.582 2.050 1.00 0.00 H
HETATM 27 H13 HYB L 1 -1.027 -0.710 4.355 1.00 0.00 H
HETATM 28 H14 HYB L 1 -1.256 1.727 4.746 1.00 0.00 H
HETATM 29 H15 HYB L 1 -1.191 3.289 2.807 1.00 0.00 H
HETATM 30 H16 HYB L 1 -0.885 2.390 0.531 1.00 0.00 H
HETATM 20 C6 HYB L 1 0.918 -1.174 0.729 1.00 0.00 C
HETATM 21 C7 HYB L 1 0.521 -1.960 1.777 1.00 0.00 C
HETATM 22 C8 HYB L 1 1.179 -3.171 2.031 1.00 0.00 C
HETATM 23 C9 HYB L 1 2.249 -3.579 1.219 1.00 0.00 C
HETATM 24 C10 HYB L 1 2.648 -2.762 0.158 1.00 0.00 C
HETATM 25 C11 HYB L 1 1.975 -1.565 -0.074 1.00 0.00 C
HETATM 26 H12 HYB L 1 -0.298 -1.647 2.407 1.00 0.00 H
HETATM 27 H13 HYB L 1 0.864 -3.794 2.854 1.00 0.00 H
HETATM 28 H14 HYB L 1 2.752 -4.514 1.417 1.00 0.00 H
HETATM 29 H15 HYB L 1 3.472 -3.061 -0.474 1.00 0.00 H
HETATM 30 H16 HYB L 1 2.291 -0.938 -0.896 1.00 0.00 H
CONECT 1 2 9 10 11
CONECT 2 3 4 5 20
CONECT 3 12 13 14
Expand Down
4 changes: 3 additions & 1 deletion peleffy/forcefield/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class ForceFieldSelector(object):
It defines a force field selector.
"""
_FF_TYPES = {'OPLS2005': ('OPLS2005', ),
'OpenFF': ('openff_unconstrained-2.0.0.offxml',
'OpenFF': ('openff_unconstrained-2.1.1.offxml',
'openff_unconstrained-2.1.0.offxml',
'openff_unconstrained-2.0.0.offxml',
'openff_unconstrained-1.3.0.offxml',
'openff_unconstrained-1.2.1.offxml',
'openff_unconstrained-1.2.0.offxml',
Expand Down
Loading

0 comments on commit 366b767

Please sign in to comment.