Skip to content

Commit

Permalink
Added parsers for CWL input files (#199)
Browse files Browse the repository at this point in the history
This commit adds support for parsing CWL input files with autogenerated
Schema SALAD parsers, in order to obtain a coherent representation of
CWL object between processfile and jobfile.
  • Loading branch information
GlassOfWhiskey committed Dec 1, 2023
1 parent f2ac3ea commit 8e4ed82
Show file tree
Hide file tree
Showing 18 changed files with 33,440 additions and 8,025 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ include cwl_utils/cwlNodeEngineJSConsole.js
include cwl_utils/cwlNodeEngineWithContext.js
include testdata/*.cwl
include testdata/*.yaml
include testdata/*.yml
include testdata/*.input
include testdata/*.json
include testdata/*.ttl
include testdata/*.owl
include testdata/*.js
Expand Down
4 changes: 2 additions & 2 deletions create_cwl_from_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

def main() -> None:
"""Generate a CWL object to match "cat-tool.cwl"."""
inputs = [cwl.CommandInputParameter(id="file1", type="File")]
inputs = [cwl.CommandInputParameter(id="file1", type_="File")]
outputs = [
cwl.CommandOutputParameter(
id="output",
type="File",
type_="File",
outputBinding=cwl.CommandOutputBinding(glob="output"),
)
]
Expand Down
110 changes: 55 additions & 55 deletions cwl_utils/cwl_v1_0_expression_refactor.py

Large diffs are not rendered by default.

104 changes: 52 additions & 52 deletions cwl_utils/cwl_v1_1_expression_refactor.py

Large diffs are not rendered by default.

112 changes: 56 additions & 56 deletions cwl_utils/cwl_v1_2_expression_refactor.py

Large diffs are not rendered by default.

Loading

0 comments on commit 8e4ed82

Please sign in to comment.