Adding cwl to convert gvcf to vcf
[arvados-tutorial.git] / cwl / annotate-vcf.cwl
1 cwlVersion: v1.1
2 class: CommandLineTool
3
4 requirements:
5   - class: DockerRequirement
6     dockerPull: curii/clinvar-report
7   - class: ShellCommandRequirement
8
9 hints:
10   ResourceRequirement:
11     ramMin: 10000
12     coresMin: 4
13
14 stdout: $(inputs.vcf.nameroot).txt
15
16 inputs:
17   vcf:
18     type: File
19   clinvarvcf:
20     type: File
21
22 outputs:
23   reporttxt: stdout
24
25 arguments:
26   - bcftools
27   - annotate
28   - prefix: "-a"
29     valueFrom: $(inputs.clinvarvcf.path)
30   - prefix: "-c"
31     valueFrom: "ID,INFO"
32   - $(inputs.vcf.path)
33   - {valueFrom: '|', shellQuote: false}
34   - bcftools
35   - filter
36   - prefix: "-i"
37     valueFrom: "INFO/ALLELEID>=1"
38   - {valueFrom: '|', shellQuote: false}
39   - bcftools
40   - query
41   - prefix: "-f"
42     valueFrom: "%ID\t%CHROM\t%POS\t%REF\t%ALT\t%INFO/ALLELEID\t%INFO/CLNSIG\t%INFO/CLNDN\t%INFO/AF_ESP\t%INFO/AF_EXAC\t%INFO/AF_TGP[\t%GT]\n"