Commit 24835add authored by Carlos GO's avatar Carlos GO
Browse files

result json

parent 977bf7ef
......@@ -48,6 +48,18 @@ def launch(pdb_path, library_path, n_hits=30, run='rnamigos-ismb'):
return hits,G, fp_pred
def results_to_json(hits, G, fp_pred):
Write launcher outputs as a single JSON object.
result_json = {}
result_json['hits'] = hits
result_json['graph'] = nx.node_link_data(G)
result_json['fingerprint'] = list(fp_pred)
return result_json
if __name__ == "__main__":
launch("hi", None)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment