ihmwg / python-ihm

Python package for handling IHM mmCIF and BinaryCIF files
MIT License
14 stars 7 forks source link

Add additional sanity checks against external resources #84

Open benmwebb opened 2 years ago

benmwebb commented 2 years ago

As @brindakv mentioned, python-ihm currently does various sanity checks to ensure the generated mmCIF is self-consistent, e.g. checking the model sequence against that in the struct_ref table. However, we could do additional sanity checks (perhaps as part of the make-mmcif.py script, or another script used as part of the deposition pipeline) that validate external resources. (I would be reluctant to have these done as part of generating every file, since they would make multiple network connections, referenced files might not exist at modeling time, and many issues might be warnings rather than errors or would need manual intervention.) For example we could