forked from jarnolaitinen/RD_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatk-base_recalibration.cwl
82 lines (75 loc) · 1.6 KB
/
gatk-base_recalibration.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cwlVersion: v1.0
class: CommandLineTool
id: gatk-base_recalibration
requirements:
- class: InlineJavascriptRequirement
- class: DockerRequirement
dockerPull: cnag/gatk:3.6-0
- class: InitialWorkDirRequirement
listing:
- entry: $(inputs.reference_genome)
- entry: $(inputs.dict)
- class: ResourceRequirement
outdirMin: 7500
tmpdirMin: 7700
hints:
- class: ResourceRequirement
coresMin: 4
ramMin: 4000
baseCommand:
- gatk
- '-T'
- BaseRecalibrator
inputs:
- id: reference_genome
type: File
inputBinding:
position: 1
prefix: '-R'
secondaryFiles:
- .fai
- id: dict
type: File
- id: unzipped_known_sites_file
type: File
# from gatk ir
- id: input
type: File
inputBinding:
position: 2
prefix: '-I'
secondaryFiles:
- ^.bai
- id: known_indels_file
type: File
arguments:
- position: 0
prefix: '-dt'
valueFrom: NONE
- position: 0
prefix: '-nct'
valueFrom: '4'
- position: 0
prefix: '--knownSites'
valueFrom: $(inputs.known_indels_file)
# valueFrom: |
# ${
# var r = [];
# r.push(inputs.known_indels_file);
# r.push(" --knownSites ");
# r.push(inputs.unzipped_known_sites_file);
# return r;
# }
- position: 0
prefix: '--knownSites'
valueFrom: $(inputs.unzipped_known_sites_file)
- position: 3
prefix: '-o'
valueFrom: $(inputs.input.nameroot).recalibrated.grp
outputs:
- id: br_model
type: File
outputBinding:
glob: "*.grp"
# $(inputs.input.nameroot).grp
label: gatk3-base_recalibration