Merge branch '19785-add-cwl' into main
[lightning.git] / cwl / imputation / get-imputedvcf.cwl
1 # Copyright (C) The Lightning Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 cwlVersion: v1.1
6 class: CommandLineTool
7 requirements:
8   ShellCommandRequirement: {}
9 hints:
10   DockerRequirement:
11     dockerPull: vcfutil
12   ResourceRequirement:
13     ramMin: 5000
14 inputs:
15   sample: string
16   vcf: File
17 outputs:
18   imputedvcf:
19     type: File
20     outputBinding:
21       glob: "*.vcf.gz"
22     secondaryFiles: [.tbi]
23 baseCommand: zcat
24 arguments:
25   - $(inputs.vcf)
26   - shellQuote: false
27     valueFrom: "|"
28   - "egrep"
29   - "^#|IMP"
30   - shellQuote: false
31     valueFrom: "|"
32   - "egrep"
33   - prefix: "-v"
34     valueFrom: '0\|0'
35   - shellQuote: false
36     valueFrom: "|"
37   - "bgzip"
38   - "-c"
39   - shellQuote: false
40     valueFrom: ">"
41   - $(inputs.sample).vcf.gz
42   - shellQuote: false
43     valueFrom: "&&"
44   - "tabix"
45   - $(inputs.sample).vcf.gz