-
-
Notifications
You must be signed in to change notification settings - Fork 2
Description
@mvdbeek proposed using a schema-salad representation of workflow/tool inputs to help build the web UI for executing CWL tools/workflows in Galaxy
I wrote common-workflow-language/cwltool#1748 to add a --print-input-schema option to cwltool
Here are some outputs of cwltool --print-input-schema for CWL workflows and tools descriptions from the MGnify team:
(Currently, each file has the same boilerplate definitions at the top, but that is likely to be moved to an $import from a stable, public URL)
These schema salad documents can used by the schema-salad Python library, and/or loaded from a standalone parser like https://github.com/common-workflow-lab/schema-salad-ts-auto for TypeScript
(that parser was generated from the schema-salad codegen feature using the schema salad metaschema 😅 )
We can also generate that specialized parser for Python, Java, .Net (and any future languages supported by schema-salad-tool --codegen)
ALSO we can generate a parser for a particular workflow/tool input schema, here's the Python version of that for raw-reads-wf-v-5-cond.cwl inputs: https://gist.github.com/mr-c/3b87d8538817c023197b7ed4bb1f0210#file-raw-reads-wf-v-5-cond_inputs_schema-py