You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prov export workflow execution provenance in PROV format
72
+
inputs list workflow/step input files/values
73
+
outputs list workflow/step output files/values
74
+
run show workflow execution log
75
+
runs List all workflow executions in RO
76
+
rerun Rerun a workflow or step
77
+
derived List what was derived from a data item, based on
78
+
activity usage/generation
79
+
runtimes Calculate average step execution runtimes
80
+
24
81
The [test/](test/) folder contains some examples of workflow runs for different CWLProv profiles.
25
82
83
+
All commands for `cwlprov` will attempt to detect the CWLProv research object from the current directory, alternatively take the `--directory` option to specify the root folder.
84
+
85
+
The `--quiet` option may be used in scripts for less verbose outputs. The `--verbose` option has the opposite affect to enable logging. For debug logging, use `-vv` or `--verbose --verbose`.
86
+
87
+
Note that the general arguments listed above must be provided *before* the _command_, e.g.
88
+
89
+
cwlprov --quiet --directory /tmp/1 validate
90
+
91
+
Many of the commands accept additional arguments, which can be accessed by `cwlprov COMMAND --help`, e.g.:
92
+
93
+
$ cwlprov run --help
94
+
usage: cwlprov run [-h] [--step STEP] [--steps] [--no-steps] [--start]
All commands of `cwlprov` will by default perform a _quick validation_, which conforms all files are present in the correct file size. For instance, if we remove a file:
ERROR:cwlprov.tool:BagIt validation failed for: /home/stain/src/cwlprov-py/test/revsort-cwlprov-0.4.0: Payload-Oxum validation failed. Expected 3 files and 3333 bytes but found 2 files and 2222 bytes
148
+
149
+
To perform full validation, use `cwlprov validate`:
150
+
151
+
test/revsort-cwlprov-0.4.0$ cwlprov validate
152
+
WARNING:bdbag.bdbagit:data/32/327fc7aedf4f6b69a42a7c8b808dc5a7aff61376 exists in manifest but was not found on filesystem
153
+
ERROR:cwlprov.tool:BagIt validation failed for: /home/stain/src/cwlprov-py/test/revsort-cwlprov-0.4.0: Bag validation failed: data/32/327fc7aedf4f6b69a42a7c8b808dc5a7aff61376 exists in manifest but was not found on filesystem
154
+
155
+
test/revsort-cwlprov-0.4.0$ git checkout .
156
+
157
+
test/revsort-cwlprov-0.4.0$ cwlprov validate
158
+
Valid CWLProv RO: .
159
+
160
+
Unlike the quick validation, `cwlprov validate` will confirm checksums on all files, and thus detect byte-level changes. For instance, let's pretend `I` has been replaced with lower case `i` in a data file:
161
+
162
+
test/revsort-cwlprov-0.4.0$ sed -i 's/I/i/g' data/32/327fc7aedf4f6b69a42a7c8b808dc5a7aff61376
163
+
test/revsort-cwlprov-0.4.0$ cwlprov
164
+
Detected CWLProv Research Object: /home/stain/src/cwlprov-py/test/revsort-cwlprov-0.4.0
0 commit comments