Add option for gemmi backend for pdb reading#5142
Add option for gemmi backend for pdb reading#5142marinegor wants to merge 119 commits intoMDAnalysis:developfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5142 +/- ##
===========================================
+ Coverage 92.68% 92.75% +0.07%
===========================================
Files 180 182 +2
Lines 22452 22520 +68
Branches 3186 3190 +4
===========================================
+ Hits 20809 20888 +79
- Misses 1169 1176 +7
+ Partials 474 456 -18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
converted to draft since #4712 is not yet merged |
|
An update after amazing discussion with gemmi developers: seems that Benhcmarks on 1FFK (>64k atoms), (same script as above) I think we can safely say that it's not slower (or actually, almost 40% faster), and it's possible to default to @MDAnalysis/coredevs and @ljwoods2 do you have any opinion about it? |
|
Nice find @marinegor!
If the behaviour is the same, then yeah definitely (i.e. if the universe created is identical). What tests fail if you make |
If I just replace default format (leave Most of which, I believe, fall into guessed attributes category, or parsing PDB metadata. |
Fixes #5141 and perhaps fixes #5089
Changes made in this Pull Request:
Adds option to explicitly read pdb directly with gemmi, with
format='pdb_gemmi'upon Universe creation:PR Checklist
package/CHANGELOGfile updated?package/AUTHORS? (If it is not, add it!)Developers Certificate of Origin
I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.
📚 Documentation preview 📚: https://mdanalysis--5142.org.readthedocs.build/en/5142/