Skip to content
Snippets Groups Projects
Commit a3d55443 authored by Christian Henke's avatar Christian Henke
Browse files

add classification details to bin json schema

parent 8faef5e3
No related merge requests found
......@@ -39,6 +39,29 @@
}
},
"type": "nested"
},
"classification_details": {
"include_in_parent": true,
"properties": {
"cpani": {
"type": "double"
},
"cpaf": {
"type": "double"
},
"aap": {
"type": "double"
},
"note": {
"analyzer": "standard",
"type": "text"
},
"warnings": {
"analyzer": "standard",
"type": "text"
}
},
"type": "nested"
}
}
}
......
......@@ -2,7 +2,7 @@
from PIL import Image
import base64, json, re, gzip
KEGG_DIR = '/home/chenke/tmp/kegg-mirror-2014-10'
KEGG_DIR = '/tmp/kegg-mirror-2022-12/'
json_gz_filename = 'emgb.pathways.json.gz'
pathways = {}
......@@ -58,4 +58,4 @@ with gzip.open(json_gz_filename, 'wb') as json_gz:
json_gz.write(b'\n')
json_gz.write(json.dumps(pathway).encode('UTF-8'))
json_gz.write(b'\n')
print('Output written to file \'%s\'' % json_gz_filename)
\ No newline at end of file
print('Output written to file \'%s\'' % json_gz_filename)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment