Adding labels and formats to cwl
[arvados-tutorial.git] / WGS-processing / cwl / helper / annotate-vcf.cwl
1 cwlVersion: v1.1
2 class: CommandLineTool
3 label: Annotating and Filtering 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 stdout: $(inputs.vcf.nameroot).txt
16
17 inputs:
18   vcf:
19     type: File
20   clinvarvcf:
21     type: File
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"