-
Notifications
You must be signed in to change notification settings - Fork 46
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
Use MDTraj dssp #547
Use MDTraj dssp #547
Conversation
The complication is/was caused because AnnotateDSSP has a `run_molecule` method (like it should), `annotate_dssp` accepts said molecule, *and `run_dssp` runs on a system*. This all makes sense and is logical, but it makes the flow rather awkward.
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.
Some first comments: I need more time to review the tests and also run this branch.
About the citations: I think we could simply dump the dssp citation in the force-field bibs and then add it to the molecule in the processor. I don't think we should overthink this feature considering most people don't care anyways.
@pckroon this one is good once the test coverage is up to speed |
@pckroon I've played around and tested it in different circumstances. For me seems to work pretty well |
Alright, test coverage is as high as it's going to get. Left uncovered are mostly error checks. |
This is a first pass to use the mdtraj dssp implementation by default. I had to remove the
savedir
/savefile
mechanism that was used to save the.ssd
files since I can't quite find a way to cleanly propagate it and it makes no sense for the mdtraj side.I still have to add the mdtraj citation to all molecules touched, but citations are currently bound to force fields, which doesn't make a lot of sense here.
Maybe citation lookup should be changed to use a https://docs.python.org/3/library/collections.html#collections.ChainMap built up of a general set of citations (for e.g. code) and FF specific citations?
At least I can run the integration tests on my machine again now...
Fixes #522