You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set element to 'X' for unknown/ambiguous cases. - #3250
This change comes from my benchmark on the entire PDB. I added a small test to assign elements and we have a few failures on unknown or ambiguous atoms. Here's an example from PDB 4CPA:
ATOM 2439 N GLX I 2 -14.463 -16.664 -1.443 1.00 23.73 N
ATOM 2440 CA GLX I 2 -13.386 -16.604 -2.426 1.00 29.49 C
ATOM 2441 C GLX I 2 -12.828 -15.227 -2.806 1.00 31.92 C
ATOM 2442 O GLX I 2 -11.632 -15.318 -3.276 1.00 37.34 O
ATOM 2443 CB GLX I 2 -13.815 -17.229 -3.786 1.00 23.88 C
ATOM 2444 CG GLX I 2 -13.280 -16.825 -5.123 1.00 25.96 C
ATOM 2445 CD GLX I 2 -12.527 -17.669 -6.090 1.00 35.96 C
ATOM 2446 XE1 GLX I 2 -11.768 -18.704 -5.944 1.00 40.06 X
ATOM 2447 XE2 GLX I 2 -12.724 -17.305 -7.323 1.00 35.50 X
Currently, our parsers assign an empty/blank element to those XE1 and XE2 atoms (as they should, good thing they don't assign xenon!) but it seems that the PDB prefers these are 'X'. This PR makes that change and moves some of the documentation from function comments to the docstring.
Not urgent to include this, happy to wait until we release 1.78.
I hereby agree to dual licence this and any previous contributions under both
the Biopython License AgreementAND the BSD 3-Clause License.
I have read the CONTRIBUTING.rst file, have run pre-commit locally,
and understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files NEWS.rst and CONTRIB.rst as part of this pull request, am listed
already, or do not wish to be listed. (This acknowledgement is optional.)
The reason will be displayed to describe this comment to others. Learn more.
Style wise this looks fine, and I understand the rational. No comment on the wisdom of this change, I never had to deal with atypical atoms in PDB files.
There isn't much wisdom here, just trying to match the PDB 'standard' as much as possible and this is one of those 'undocumented' features... Thanks for the comments! Will merge!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change comes from my benchmark on the entire PDB. I added a small test to assign elements and we have a few failures on unknown or ambiguous atoms. Here's an example from PDB 4CPA:
Currently, our parsers assign an empty/blank element to those
XE1andXE2atoms (as they should, good thing they don't assign xenon!) but it seems that the PDB prefers these are 'X'. This PR makes that change and moves some of the documentation from function comments to the docstring.Not urgent to include this, happy to wait until we release 1.78.
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally,and understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)