cwl_utils.graph_split
Unpacks the result of cwltool –unpack.
Only tested with a single v1.0 workflow.
Functions
Build the argument parser. |
|
|
Console entry point. |
|
Split the packed CWL at the path of the first argument. |
|
Loop over the provided packed CWL document and split it up. |
|
Rewrite the given element from the CWL $graph. |
|
Adjust the $import directive. |
|
Clean up the names of the types. |
|
Dump the schemadefs to their own file. |
|
Output object as JSON. |
|
Output object as YAML. |
Module Contents
- cwl_utils.graph_split.arg_parser()
Build the argument parser.
- Return type:
- cwl_utils.graph_split.main()
Console entry point.
- Return type:
None
- cwl_utils.graph_split.run(args)
Split the packed CWL at the path of the first argument.
- cwl_utils.graph_split.graph_split(sourceIO, output_dir, output_format, mainfile, pretty)
Loop over the provided packed CWL document and split it up.
- cwl_utils.graph_split.rewrite(document, doc_id)
Rewrite the given element from the CWL $graph.
- cwl_utils.graph_split.rewrite_import(document)
Adjust the $import directive.
- Parameters:
document (MutableMapping[str, Any])
- Return type:
None
- cwl_utils.graph_split.rewrite_types(field, entry_file, sameself)
Clean up the names of the types.
- cwl_utils.graph_split.rewrite_schemadef(document)
Dump the schemadefs to their own file.