You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first issue is with the example. The string assigned to json_ob is not valid baton JSON: baton uses the property replicates, not replicate (I think the property should be replicas but I digress...).
The reason why timestamp information is being required here is because baton uses a questionable representation of replicas, in which their information is not contained in a single object: wtsi-npg/baton#146.
For some reason, the output of the following doesn't contain any information about the replicas:
json_ob = '{"collection": "/seq/16006", "data_object": "16006_5.cram", "replicate": [{"checksum": "b92764c24d3346231fd8ef9fdb599df3", "number": 0, "valid": true}, {"checksum": "b92764c24d3346231fd8ef9fdb599df3", "number": 2, "valid": true}]}'
print("Converted json: %s" % convert_json_to_baton_objs(json_ob))
OUTPUT:
[<<class 'baton.models.DataObject'> object at 140404288519248: { _access_controls: None, metadata: None, path: /seq/16006/16006_5.cram, replicas: None }>]
The text was updated successfully, but these errors were encountered: