Skip to content

Commit 822f9f5

Browse files
authored
Merge pull request #3 from PMCC-BioinformaticsCore/param-meta
WIP: Add meta / parameter_meta to workflows and tasks
2 parents f4ede94 + 884350c commit 822f9f5

File tree

12 files changed

+712
-177
lines changed

12 files changed

+712
-177
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,18 @@ Generally it supports:
4545
- calls:
4646
- general call (`wdlgen.WorkflowCall`)
4747
- scatter (`wdlgen.WorkflowScatter(WorkflowCall[])`)
48-
48+
- meta: `wdlgen.Meta`
49+
- parameter_meta: `wdlgen.ParameterMeta`
50+
4951
- Task creation (`wdlgen.Task`) - This is based similar to how [CWL constructs its commands](https://www.commonwl.org/v1.0/CommandLineTool.html#CommandLineTool).
5052
- inputs: `wdlgen.Input`
5153
- outputs: `wdlgen.Output`
5254
- runtime: `wdlgen.Task.Runtime`
5355
- command: `wdlgen.Task.Command`
5456
- arguments: `wdlgen.Task.Command.Argument`
5557
- inputs: `wdlgen.Task.Command.Input`
58+
- meta: `wdlgen.Meta`
59+
- parameter_meta: `wdlgen.ParameterMeta`
5660

5761
## How to use
5862

@@ -154,7 +158,12 @@ The structure of a workflow is m
154158
w = wdlgen.Workflow("workflow_name")
155159

156160
w.imports.append(wdlgen.Workflow.WorkflowImport("tool_file", ""))
157-
w.inputs.append(wdlgen.WdlType.parse("String"), wdlgen.Input("inputGreeting"))
161+
w.inputs.append(
162+
wdlgen.Input(
163+
wdlgen.WdlType.parse("String"),
164+
"inputGreeting"
165+
)
166+
)
158167

159168

160169
inputs_map = {"taskGreeting": "inputGreeting"}

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
__version__ = "v0.2.8"
44

5-
DESCRIPTION = "Contains classes and helpers to generate WDL without worrying about the syntax. " \
6-
"This is primarily intended for generating WDL from other in-memory representations of a workflow."
5+
DESCRIPTION = (
6+
"Contains classes and helpers to generate WDL without worrying about the syntax. "
7+
"This is primarily intended for generating WDL from other in-memory representations of a workflow."
8+
)
79

810
# ======== SHOULDN'T NEED EDITS BELOW THIS LINE ======== #
911

@@ -24,8 +26,8 @@
2426
long_description=long_description,
2527
long_description_content_type="text/markdown",
2628
classifiers=[
27-
'Development Status :: 2 - Pre-Alpha',
28-
'Intended Audience :: Developers',
29-
'Topic :: Scientific/Engineering'
30-
]
29+
"Development Status :: 2 - Pre-Alpha",
30+
"Intended Audience :: Developers",
31+
"Topic :: Scientific/Engineering",
32+
],
3133
)

0 commit comments

Comments
 (0)