Updating yml for formats
[arvados-tutorial.git] / WGS-processing / cwl / helper / annotate-vcf.cwl
1 cwlVersion: v1.1
2 class: CommandLineTool
3 label: Annotate and filter VCF
4
5 requirements:
6   DockerRequirement:
7     dockerPull: curii/clinvar-report
8   ShellCommandRequirement: {}
9
10 hints:
11   ResourceRequirement:
12     ramMin: 10000
13     coresMin: 4
14   SoftwareRequirement:
15     packages:
16       BCFtools:
17         specs: [ "https://identifiers.org/rrid/RRID:SCR_005227" ]
18         version: [ "1.10.2" ]
19
20 stdout: $(inputs.vcf.nameroot).txt
21
22 inputs:
23   vcf:
24     type: File
25     format: edam:format_3016 # VCF
26     label: VCF extracted from GVCF
27     secondaryFiles: [.tbi]
28   clinvarvcf:
29     type: File
30     format: edam:format_3016 # VCF
31     label: Reference VCF for ClinVar
32
33 outputs:
34   reporttxt: stdout
35
36 arguments:
37   - bcftools
38   - annotate
39   - prefix: "-a"
40     valueFrom: $(inputs.clinvarvcf.path)
41   - prefix: "-c"
42     valueFrom: "ID,INFO"
43   - $(inputs.vcf.path)
44   - {valueFrom: '|', shellQuote: false}
45   - bcftools
46   - filter
47   - prefix: "-i"
48     valueFrom: "INFO/ALLELEID>=1"
49   - {valueFrom: '|', shellQuote: false}
50   - bcftools
51   - query
52   - prefix: "-f"
53     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"
54
55 $namespaces:
56  s: https://schema.org/
57  edam: http://edamontology.org/
58
59 #$schemas:
60 # - https://schema.org/version/latest/schema.rdf
61 # - http://edamontology.org/EDAM_1.18.owl