-
Notifications
You must be signed in to change notification settings - Fork 2
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
ihm fails on PDBDEV_00000088 #53
Comments
You are assuming the file is UTF-8 encoded. Not all mmCIF files are. Usually I try reading as UTF-8 and fall back to latin-1 if that fails. See https://python-ihm.readthedocs.io/en/latest/reader.html. IIRC Sai was doing that for at least part of the validation pipeline.
I don't see that if I read the file as latin-1. My guess is you broke something during your edits. That being said, there is an issue with this file:
Those |
See e.g. c992574 |
Thank you for pointing out the docs. First time I saw this boilerplate in code I was curious where did this come from. The boilerplate is intact. IHMValidation/master/pyext/src/validation/__init__.py Lines 72 to 77 in c3b01ca
I'll add some description of this part to the code later. It looks like I missed a part of the traceback, though:
So the |
The data in the mmCIF file is now updated: changed |
Thanks, @brindakv now parsing works ok. Another issue popped up, though. It is related to the software section:
The code fails on missing links for the software. I can easily fix it, but wonder if it's ok to have missing versions and links? |
We need to provide links for each piece of software for the validation pages; see https://github.com/salilab/IHMValidation/blob/main/templates/references.csv for the file we maintain locally to fill in any missing links. You can look up whether particular data items are required in the dictionary itself. e.g. https://mmcif.wwpdb.org/dictionaries/mmcif_pdbx_v50.dic/Items/_software.version.html (location and version are not required there). |
Thanks for the clarification! Yeah, I saw the
|
See |
The problem was addressed in #53 (comment) |
There are multiple points in the entry 88 where
ihm
fails during parsing:is the result of the sentence:
The other error:
ogirinates from:
And finally, after deleting symbols causing previous errors:
@benmwebb @brindakv I need your help on that.
The text was updated successfully, but these errors were encountered: