-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hydrogen Bond Lifetime in waterdynamics.hydrogenbonds #2791
Conversation
…ydrogen bond implementation. Fixes MDAnalysis#2547 and we depracate the waterdynamic.HydrogenBondLifetime because of MDAnalysis#2247. co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
Codecov Report
@@ Coverage Diff @@
## develop #2791 +/- ##
===========================================
+ Coverage 92.19% 92.22% +0.02%
===========================================
Files 184 184
Lines 24072 24177 +105
Branches 3122 3133 +11
===========================================
+ Hits 22194 22298 +104
- Misses 1813 1814 +1
Partials 65 65
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you !
- Various doc/deprecation comments.
- add an entry to CHANGELOG
- diff coverage is low; can you check that most of the changes are covered by tests?
Co-authored-by: Oliver Beckstein <orbeckst@gmail.com>
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
Hey all, looking great! Not sure how applicable to this use case, but just thought I would let you know that tidynamics, which is now an optional dependency, provides an ACF computation option using the FFT based fast correlation algorithm. Perhaps some of the computation can be outsourced? :) I know im a bit late, sorry. |
@hmacdope Thanks for pointing this out. I'll look into it! |
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
After further thought, together with @p-j-smith we are going to expand this pull request to make it easier to obtain hydrogen bond lifetimes. Please don't merge yet. Thanks |
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
The `between` keyword can be used to specify pairs of groups between which hydrogen bonds will be calculated. Hydrogen bonds found other pairs of atom groups will be discarded. Added test cases for filtering hydrogen bonds. co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
In adding the hydrogen bond lifetime functionality we realised it was not possible to find, say, protein-water hydrogen bonds without also finding protein-protein and water-water-hydrogen bonds. This would therefore make the HBL function of limited use if one wanted to know the lifetime of protein-water hydrogen bonds. We have therefore added a This is now in keeping with both the VMD hbonds plugin and We have added test cases for this new argument and the interface is backwards compatible - the default is We also plan to add an And thanks @hmacdope for pointing us toward tidynamics. The autocorrelation function we're using to calculate the HBL is also used by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. I primarily have comments on the documentation, see inline.
testsuite/MDAnalysisTests/analysis/test_hydrogenbonds_analysis.py
Outdated
Show resolved
Hide resolved
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
Hello @bieniekmateusz! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-07-07 13:15:16 UTC |
Fixed the line length and whitespace issues
Previously, a selection involving water and protein was used, but the example suggested hydrogen bonds between a ligand and protein would be found.
Sphinx docs were previously not building
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments, sorry to be brief
testsuite/MDAnalysisTests/analysis/test_hydrogenbonds_analysis.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Oliver Beckstein <orbeckst@gmail.com>
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
…into hbondautocorr
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
Please let us know if you spot anything else! Thanks! |
Thank you @bieniekmateusz and @p-j-smith – sorry it took me a while to get back to the PR. |
@bieniekmateusz @p-j-smith – You know what? We should have removed |
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
* remove the deprecated waterdynamics.HydrogenBondLifetimes class, see PR #2791 for more info. * update waterdynamics docs and link to the replacement, hydrogenbonds.hbond_analysis.HydrogenBondAnalysis.liftetime * corrected doc formatting in hydrogenbonds.hbond_analysis * update CHANGELOG co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
* Fixes MDAnalysis#2547 * The standalone autocorrelation function is now used to calculate the hydrogen bond lifetime in the new implementation of the hydrogen bond analysis class. * Added ability to select groups between which to find hydrogen bonds.: new parameter "between" for hydrogen binding (backwards compatible): The `between` keyword can be used to specify pairs of groups between which hydrogen bonds will be calculated. Hydrogen bonds found other pairs of atom groups will be discarded. * We deprecate the waterdynamics.HydrogenBondLifetime class because of MDAnalysis#2247. * Basic unit tests added to check the integration of the separate components * add docs with example * update CHANGELOG co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
…alysis#2842) * remove the deprecated waterdynamics.HydrogenBondLifetimes class, see PR MDAnalysis#2791 for more info. * update waterdynamics docs and link to the replacement, hydrogenbonds.hbond_analysis.HydrogenBondAnalysis.liftetime * corrected doc formatting in hydrogenbonds.hbond_analysis * update CHANGELOG co-authored-by: p-j-smith <paul.smith@kcl.ac.uk>
Fixes #2547
Changes made in this Pull Request:
Co-authored-by: @p-j-smith paul.smith@kcl.ac.uk
PR Checklist