Skip to content
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

Merged
merged 21 commits into from
Dec 6, 2023
Merged

Use MDTraj dssp #547

merged 21 commits into from
Dec 6, 2023

Conversation

pckroon
Copy link
Member

@pckroon pckroon commented Oct 2, 2023

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

@pckroon pckroon added the hacktoberfest-accepted Accepted Hacktoberfest contribution label Oct 2, 2023
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.
@pckroon pckroon requested a review from fgrunewald October 3, 2023 14:03
Copy link
Member

@fgrunewald fgrunewald left a 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.

README.md Outdated Show resolved Hide resolved
vermouth/dssp/dssp.py Show resolved Hide resolved
vermouth/dssp/dssp.py Show resolved Hide resolved
vermouth/dssp/dssp.py Show resolved Hide resolved
vermouth/dssp/dssp.py Show resolved Hide resolved
vermouth/dssp/dssp.py Show resolved Hide resolved
@fgrunewald
Copy link
Member

@pckroon this one is good once the test coverage is up to speed

@fgrunewald
Copy link
Member

@pckroon I've played around and tested it in different circumstances. For me seems to work pretty well

@pckroon pckroon mentioned this pull request Nov 27, 2023
@pckroon
Copy link
Member Author

pckroon commented Nov 30, 2023

Alright, test coverage is as high as it's going to get. Left uncovered are mostly error checks.

@pckroon pckroon requested a review from fgrunewald December 4, 2023 10:25
@fgrunewald fgrunewald merged commit bae3e3b into master Dec 6, 2023
7 of 8 checks passed
@fgrunewald fgrunewald deleted the issue522 branch December 6, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted Hacktoberfest contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Use MDTraj DSSP
2 participants