updating metadata
[arvados-tutorial.git] / WGS-processing / cwl / helper / gatk-applyBSQR-with-interval.cwl
1 cwlVersion: v1.1
2 class: CommandLineTool
3 label: Apply base quality score recalibration 
4
5 requirements:
6   DockerRequirement:
7     dockerPull: broadinstitute/gatk:4.1.7.0
8   InitialWorkDirRequirement:
9     listing:
10       - $(inputs.bam)
11
12 hints:
13   arv:RuntimeConstraints:
14     outputDirType: keep_output_dir
15     keep_cache: 1024
16   ResourceRequirement:
17     ramMin: 5000
18     coresMin: 2
19   SoftwareRequirement:
20     packages:
21       GATK:
22         specs: [ "https://identifiers.org/rrid/RRID:SCR_001876" ]
23         version: [ "4.1.7" ]
24
25 inputs:
26   bam:
27     type: File
28     format: edam:format_2572 # BAM
29     label: Indexed sorted BAM with labeled duplicates
30     secondaryFiles:
31       - .bai
32   reference:
33     type: File
34     format: edam:format_1929 # FASTA
35     label: Reference genome
36     secondaryFiles:
37       - .amb
38       - .ann
39       - .bwt
40       - .pac
41       - .sa
42       - .fai
43       - ^.dict
44   sample: 
45     type: string
46     label: Sample Name
47   recaltable: 
48     type: File
49     label: Recalibration table
50   intervallist:
51     type: File
52     label: Scatter intervals file
53
54 outputs:
55   recalbam:
56     type: File
57     format: edam:format_2572 # BAM
58     label: Recalibrated BAM for given interval
59     secondaryFiles: 
60       - .bai
61     outputBinding:
62       glob: "*nodups_BQSR.bam"
63
64 baseCommand: /gatk/gatk
65
66 arguments:
67   - "--java-options"
68   - "-Xmx4G"
69   - ApplyBQSR
70   - prefix: "-R"
71     valueFrom: $(inputs.reference)
72   - prefix: "-I"
73     valueFrom: $(inputs.bam.basename)
74   - prefix: "--bqsr-recal-file"
75     valueFrom: $(inputs.recaltable)
76   - prefix: "-L"
77     valueFrom: $(inputs.intervallist)
78   - prefix: "-O"
79     valueFrom: $(inputs.sample)nodups_BQSR.bam
80
81 s:codeRepository: https://github.com/arvados/arvados-tutorial
82 s:license: https://www.gnu.org/licenses/agpl-3.0.en.html
83
84 $namespaces:
85  s: https://schema.org/
86  edam: http://edamontology.org/
87  arv: "http://arvados.org/cwl#"
88  cwltool: "http://commonwl.org/cwltool#"
89
90 $schemas:
91  - https://schema.org/version/latest/schema.rdf
92  - http://edamontology.org/EDAM_1.18.owl