Metadata » History » Version 1
Peter Amstutz, 10/21/2016 03:21 PM
1 | 1 | Peter Amstutz | h1. Metadata |
---|---|---|---|
2 | |||
3 | Input and output documents gain parallel "input metadata" and "output metadata" documents. |
||
4 | |||
5 | The input metadata is parallel to the input document, except that it describes metadata about each parameter. For example, for this input: |
||
6 | |||
7 | <pre> |
||
8 | foo: |
||
9 | class: File |
||
10 | location: keep:abc+123/foo.bam |
||
11 | </pre> |
||
12 | |||
13 | the metadata might be: |
||
14 | |||
15 | <pre> |
||
16 | foo: |
||
17 | xyz:sample: sample1122333 |
||
18 | xyz:sequencer: illumina |
||
19 | </pre> |
||
20 | |||
21 | On workflow start, reverse lookup PDH to UUID and find all tags. Create input metadata document. |
||
22 | |||
23 | On workflow end, create output metadata document based on "arv:PropagateMetadata". |
||
24 | |||
25 | <pre> |
||
26 | hints: |
||
27 | arv:PropagateMetadata: |
||
28 | setMetadata: |
||
29 | - outputParameter: bar |
||
30 | valueFrom: $(metadata.foo) |
||
31 | </pre> |
||
32 | |||
33 | Resulting in output: |
||
34 | |||
35 | <pre> |
||
36 | bar: |
||
37 | class: File |
||
38 | location: keep:abc+123/result.vcf |
||
39 | </pre> |
||
40 | |||
41 | with output metadata: |
||
42 | |||
43 | <pre> |
||
44 | bar: |
||
45 | xyz:sample: sample1122333 |
||
46 | xyz:sequencer: illumina |
||
47 | </pre> |
||
48 | |||
49 | Arvados then creates tags to the output collection based on output metadata document. |