Skip to content
Snippets Groups Projects
Commit e879a641 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

comparison actions: add ost version to json out

parent 580c818e
No related branches found
Tags 2.1.0-rc3
No related merge requests found
......@@ -35,7 +35,7 @@ are exempt from this restriction, meaning any arbitrary ligand can be assessed.
Output can be written in two format: JSON (default) or CSV, controlled by the
--output-format/-of argument.
Without additional options, the JSON ouput is a dictionary with three keys:
Without additional options, the JSON ouput is a dictionary with four keys:
* "model_ligands": A list of ligands in the model. If ligands were provided
explicitly with --model-ligands, elements of the list will be the paths to
......@@ -48,6 +48,7 @@ Without additional options, the JSON ouput is a dictionary with three keys:
* "status": SUCCESS if everything ran through. In case of failure, the only
content of the JSON output will be \"status\" set to FAILURE and an
additional key: "traceback".
* "ost_version": The OpenStructure version used for computation.
Each score is opt-in and the respective results are available in three keys:
......@@ -850,6 +851,7 @@ def _Main():
cleaned_reference, cleaned_reference_ligands,
args)
out["ost_version"] = ost.__version__
out["status"] = "SUCCESS"
if args.output_format == "json":
with open(args.output, 'w') as fh:
......
......@@ -61,6 +61,7 @@ results:
* "min_nuc_length"
* "lddt_add_mdl_contacts"
* "dockq_capri_peptide"
* "ost_version"
The pairwise sequence alignments are computed with Needleman-Wunsch using
BLOSUM62 (NUC44 for nucleotides). Many benchmarking scenarios preprocess the
......@@ -963,6 +964,7 @@ def _Main():
out["min_nuc_length"] = args.min_nuc_length
out["lddt_add_mdl_contacts"] = args.lddt_add_mdl_contacts
out["dockq_capri_peptide"] = args.dockq_capri_peptide
out["ost_version"] = ost.__version__
out["status"] = "SUCCESS"
with open(args.output, 'w') as fh:
json.dump(out, fh, indent=4, sort_keys=False)
......
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