Switch data_source.py to modern tool-provided metadata

Allows moving all data source tools using the script to profile 20.09.
For more recent profiles data_source.py would have to work outside of
Galaxy's Python environment.
This commit is contained in:
Wolfgang Maier
2024-02-08 16:43:39 +01:00
parent c554023c5e
commit bd0f257452
26 changed files with 28 additions and 27 deletions
+3 -2
View File
@@ -81,10 +81,11 @@ def __main__():
ext = sniff.handle_uploaded_dataset_file(cur_filename, datatypes_registry, ext=data_dict["ext"])
except Exception as e:
sys.exit(str(e))
info = dict(type="dataset", dataset_id=data_dict["dataset_id"], ext=ext)
tool_provided_metadata = {out_data_name: {"ext": ext}}
with open(params["job_config"]["TOOL_PROVIDED_JOB_METADATA_FILE"], "w") as json_file:
json.dump(info, json_file)
json.dump(tool_provided_metadata, json_file)
if __name__ == "__main__":