Skip to content

Commit

Permalink
Pymbar duecredit (#753)
Browse files Browse the repository at this point in the history
* Add pymbar duecredit sections

* Add rever entry

---------

Co-authored-by: Mike Henry <[email protected]>
  • Loading branch information
IAlibay and mikemhenry authored Jul 29, 2024
1 parent dd0be23 commit ba4d892
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
24 changes: 24 additions & 0 deletions news/pymbar_duecredit.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**Added:**

* <news item>

**Changed:**

* Add duecredit citations for pymbar when calling
`openfe.protocols.openmm_utils.multistate_analysis`.

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
31 changes: 31 additions & 0 deletions openfe/protocols/openmm_utils/multistate_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,37 @@
from pymbar.utils import ParameterError
from openfe.analysis import plotting
from typing import Optional, Union
from openfe.due import due, Doi


due.cite(Doi("10.5281/zenodo.596622"),
description="OpenMMTools",
path="openfe.protocols.openmm_utils.multistate_analysis",
cite_module=True)


due.cite(Doi("10.1063/1.2978177"),
description="MBAR paper",
path="openfe.protocols.openmm_utils.multistate_analysis",
cite_module=True)


due.cite(Doi("10.1021/ct0502864"),
description="MBAR timeseries algorithms",
path="openfe.protocols.openmm_utils.multistate_analysis",
cite_module=True)


due.cite(Doi("10.1021/acs.jctc.5b00784"),
description="Automatic equilibration detection method",
path="openfe.protocols.openmm_utils.multistate_analysis",
cite_module=True)


due.cite(Doi("10.5281/zenodo.596220"),
description="pyMBAR zenodo",
path="openfe.protocols.openmm_utils.multistate_analysis",
cite_module=True)


class MultistateEquilFEAnalysis:
Expand Down
4 changes: 4 additions & 0 deletions openfe/tests/utils/test_duecredit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class TestDuecredit:
['openfe.protocols.openmm_rfe.equil_rfe_methods',
['10.5281/zenodo.1297683', '10.5281/zenodo.596622',
'10.1371/journal.pcbi.1005659']],
['openfe.protocols.openmm_utils.multistate_analysis',
["10.5281/zenodo.596622", "10.1063/1.2978177",
"10.1021/ct0502864", "10.1021/acs.jctc.5b00784",
"10.5281/zenodo.596220"]],
])
def test_duecredit_protocol_collection(self, module, dois):
importlib.import_module(module)
Expand Down

0 comments on commit ba4d892

Please sign in to comment.