-
Notifications
You must be signed in to change notification settings - Fork 666
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
PSFParser reads and converts string-Like residue number to the leading number #4582
Conversation
Hello @yuxuanzhuang! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-05-30 03:52:24 UTC |
Linter Bot Results:Hi @yuxuanzhuang! Thanks for making this PR. We linted your code and found the following: Some issues were found with the formatting of your code.
Please have a look at the Please note: The |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4582 +/- ##
===========================================
- Coverage 93.60% 93.17% -0.44%
===========================================
Files 168 12 -156
Lines 21098 1069 -20029
Branches 3919 0 -3919
===========================================
- Hits 19748 996 -18752
+ Misses 892 73 -819
+ Partials 458 0 -458 ☔ View full report in Codecov by Sentry. |
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.
This looks good to me @yuxuanzhuang. Thanks! Would you be able to just add a quick test that the resids of the form 14F
etc are able to be read from the test file?
@hmacdope please look after this PR! Thank you! (As always, if it gets too much please say something an un-assign yourself.) |
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.
Looks good to me now @yuxuanzhuang! Thanks!
Fixes #2053 #4189
Changes made in this Pull Request:
In CHARMM PSF, residue identifiers (resids) can be any string, as discussed in #2053 (comment). Tools like CHARMM-GUI and psfgen often modify resids by including insertion codes from PDB files or converting large resids to hexadecimal numbers for placement in the resid block.
We should support reading it and this update aligns with the approach used by VMD for reading the leading number (atoi as in C) from string-like resids.
PR Checklist
Developers certificate of origin
📚 Documentation preview 📚: https://mdanalysis--4582.org.readthedocs.build/en/4582/