Adding cwl to convert gvcf to vcf
[arvados-tutorial.git] / cwl / gvcf-to-vcf.cwl
1 cwlVersion: v1.1
2 class: CommandLineTool
3 label: Converts gvcf to vcf
4
5 requirements:
6   - class: DockerRequirement
7     dockerPull: curii/clinvar-report
8   - class: ShellCommandRequirement
9
10 hints:
11   ResourceRequirement:
12     ramMin: 10000
13     coresMin: 4
14
15 inputs:
16   samplename:
17     type: string
18   gvcf:
19     type: File
20   
21 outputs:
22   vcf:
23     type: File
24     outputBinding:
25       glob: "*.vcf.gz"
26     secondaryFiles: [.tbi]
27
28 arguments:
29   - bcftools
30   - view 
31   - prefix: "--min-ac"
32     valueFrom: "1"
33   - $(inputs.gvcf.path)
34   - valueFrom: "-Ov"
35   - prefix: "-o"
36     valueFrom: $(inputs.samplename).vcf
37   - {valueFrom: '&&', shellQuote: false}
38   - bgzip
39   - valueFrom: $(inputs.samplename).vcf
40   - {valueFrom: '&&', shellQuote: false}
41   - tabix
42   - valueFrom: $(inputs.samplename).vcf.gz