osc-em / converter-OSCEM-to-mmCIF

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

Converter for JSON schema to mmCIF for PDB

This repository implements a file converterfrom OSC-EM JSON to PDBx/mmCIF. The JSON schema is defined in OSCEM and the PDBx/mmCIF format in (PDBML Schema v50 ).

Running the converter and required inputs:

Option 1 You can download the executable from the releases and use it in terminal with the following flags:

Option 2 If using in another GO application, you can install this package with

and then run it with some of the

    ...
    parser.EMDBconvert(scientificMetadata, metadataLevelName, conversionsCsvPath, mmCIFdictPath, outputPath) // or
    parser.PDBconvertFromPath(scientificMetadata, metadataLevelName, conversionsCsvPath, mmCIFdictPath, outputPath, mmCIFInputPath)

The first argument in both functions is a scientificMetadata of type map[string]any that expects an unmarshalled JSON.

Here no checks against OSCEM schema are implemented, it is assumed metadata validates against this schema. Validation might still be added in the next releases.

Checks against mmCIF

Converter explicitly parser through the PDBx definitions to extract as much data as possible. This allows for