Skip to content

UI for CWL workflow/tool execution #145

@mr-c

Description

@mr-c

@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:

https://gist.github.com/mr-c/3b87d8538817c023197b7ed4bb1f0210#file-raw-reads-wf-v-5-cond_inputs_schema-yml

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions