Closed jkosinski closed 2 years ago
I think this particular category is usually managed by the folks at the archive (e.g. PDB-Dev), but yes, it is straightforward to add additional categories to the mmCIF or BinaryCIF file. Just create a new Dumper class and pass a list of these classes as the dumpers
argument to ihm.dumper.write
. You can do the same thing in reverse (via a Handler
class and ihm.reader.read
) to read a custom category.
We ourselves add some IMP/PMI-specific categories with simulation parameters to our files. See for example _ReplicaExchangeProtocolDumper
in https://github.com/salilab/pmi/blob/develop/pyext/src/mmcif.py.
Works for me, thanks!
Is it possible to add custom records to the header of the IHM file? For example, I would like to add a header with the release date: