osc-em / converter-JSON-to-mmCIF

Converter for JSON schema to mmCIF for PDB
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

JSON to mmCIF converter in GO #5

Open sofyalaski opened 3 months ago

sofyalaski commented 3 months ago

Description

write a script that converts the metadata from JSON format of the defined schema into the mmCIF file that will be fed to PDB OneDep.

Context

We want to have a translator for our metadata. Now it uses all the sample/instrument metadata JSON files and the mapper of JSON Schema properties to PDBx dictionary. It expects validated JSON files. Currently, it works without defining any structs for metadata structure and is agnostic to JSON or PDBx nesting in the naming of elements. As a result, the properties in mmCIF are sorted alphabetically. This is not an issue when parsing mmCIF, according to the documentation but looks not nice. Especially, when first and last name are separated by other fields.
I will probably introduce a clear structure.

Needs to be added:

Issues

Definition of Done

sofyalaski commented 3 months ago

Not mandatory fields present in the translation need to have a "." or "?" annotation