-
Notifications
You must be signed in to change notification settings - Fork 170
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
#999 cif parsing #1001
#999 cif parsing #1001
Conversation
The code was assuming that the _chem_comp property was only available for non macromolecular structures (such as cif files for hetero atoms entities). It appears that some PDB files (e.g. `32C2`) may define a _chem_comp loop around every chemical component such as its amino-acids. This breaks the previous code as `cif.chem_comp` then contains an array of strings instead of a string. The fix here is to assume that if `struct` is present then we should not enter in the block for parsing simple entities.
@ppillot are you able to reproduce the bug without your change and see if the change actually fixes the issue? |
Also, do you have any idea why Here is the code in |
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.
LGTM - Tested locally. Both the 3pqr.cif file (downloaded from http://www.rcsb.org/pdb/files/3pqr.cif) and the one posted under #950 were previously reproducibly broken, but are now working with this patch.
Thank you. Hopefully there will be a release soon. |
@hainm release done and available on npm |
Beautiful. Thank you very much.
|
This PR fixes 2 bugs in relation with CIF files parsing: