Adding metadata, updating variables
[arvados-tutorial.git] / WGS-processing / cwl / helper / report-wf.cwl
1 cwlVersion: v1.1
2 class: Workflow
3 label: Report generation workflow
4
5 inputs:
6   gvcf: 
7     type: File
8     format: edam:format_3016 # GVCF
9     label: Gathered GVCF
10   sample:
11     type: string
12     label: Sample Name
13   clinvarvcf:
14     type: File
15     format: edam:format_3016 # VCF
16     label: Reference VCF for ClinVar
17   reportfunc:
18     type: File
19     label: Function used to create HTML report
20   headhtml:
21     type: File
22     format: edam:format_2331# HTML
23     label: Header for HTML report
24   tailhtml:   
25     type: File
26     format: edam:format_2331 # HTML
27     label: Footer for HTML report
28
29 outputs:
30   report:
31     type: File
32     format: edam:format_1964 # HTML
33     label: ClinVar variant report
34     outputSource: generate-report/report
35
36 steps:
37   gvcf-to-vcf:
38     run: gvcf-to-vcf.cwl
39     in:
40       gvcf: gvcf
41       sample: sample
42     out: [vcf]
43   annotate:
44     run: annotate-vcf.cwl
45     in:
46       vcf: gvcf-to-vcf/vcf
47       clinvarvcf: clinvarvcf
48     out: [reporttxt]
49   generate-report:
50     run: generate-report.cwl
51     in:
52       reportfunc: reportfunc
53       sampletxt: annotate/reporttxt
54       headhtml: headhtml
55       tailhtml: tailhtml
56     out: [report]
57
58 s:codeRepository: https://github.com/arvados/arvados-tutorial
59 s:license: https://www.gnu.org/licenses/agpl-3.0.en.html
60
61 $namespaces:
62  s: https://schema.org/
63  edam: http://edamontology.org/
64
65 $schemas:
66  - https://schema.org/version/latest/schema.rdf
67  - http://edamontology.org/EDAM_1.18.owl