Question: Is there a schema for CWL inputs/job files?
0
gravatar for karl.sebby
11 days ago by
karl.sebby70
karl.sebby70 wrote:

One thing I really like about CWL is the ability to load CWL files into a CommandLineTool or Workflow object after generating the classes using schema-salad-tool --codegen=python CommonWorkflowLanguage.yml > cwl_classes.py. Is there a schema file that describes CWL inputs/job files similar to CommonWorkflowLanguage.yml? I have been working with these files as dicts, but would be super nice to be able to load them straight into a class object.

cwl • 82 views
ADD COMMENTlink modified 3 days ago by peter.amstutz300 • written 11 days ago by karl.sebby70
2
gravatar for Michael R. Crusoe
3 days ago by
Common Workflow Language project
Michael R. Crusoe1.5k wrote:

Hello Karl,

Yes, the inputs section of a CWL document is a schema for the input job object.

ADD COMMENTlink written 3 days ago by Michael R. Crusoe1.5k
1

Thanks! I remember coming across this at some point now...

ADD REPLYlink written 3 days ago by karl.sebby70
2
gravatar for peter.amstutz
3 days ago by
peter.amstutz300
peter.amstutz300 wrote:

To expand a bit on what Michael said, the "inputs" and "outputs" section of every tool or workflow is a schema for the input object, so (although I have not tried it) it probably is not much more complicated than dumping the inputs section and using the code generator on it.

ADD COMMENTlink written 3 days ago by peter.amstutz300
1

Thanks. Will give it a try!

ADD REPLYlink written 3 days ago by karl.sebby70
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 971 users visited in the last hour