Closed mnahinkhan closed 2 years ago
Hi, sorry for taking a while to respond to this. This looks great, and really useful, thanks a lot. I will merge, though I should say that I am mid-way through a rewrite at the moment for atomium 2.0 - I will be sure to port over this functionality as I go, though the API may end up getting changed a little. In any case the functionality as it is here will always be available in the 1.x branch.
Thanks again!
Overview of New Code/Feature
I have recently been working using this tool, it has been very helpful!
At one point I needed to know, for each of the chains involved in a PDB structure, the source organism it came from. Right now, the
ORGANISM_SCIENTIFIC
subfield under theSOURCE
field is parsed but kept only as an annotation for the whole PDB file; moreover in case of multiple chains existing in a PDB file, one is arbitrarily picked.I've made changes that allows one to get general meta-information about a chain through the
Chain
object, such as the name of the molecule, the organism it comes from, etc (basically, information that can be deduced fromCOMPND
andSOURCE
records).Example Code
Checklist