-
Notifications
You must be signed in to change notification settings - Fork 0
/
bcf_norm.cwl
53 lines (36 loc) · 1.03 KB
/
bcf_norm.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
#!/usr/bin/env cwl-runner
#
# Authors: Andrew Lamb
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [bcftools, norm, -c, w, -O, z]
arguments:
- prefix: "-o"
valueFrom: $(inputs.vcf_file.path.split("/").slice(-1)[0].split(".").slice(0,-3).join(".") + ".normalized.vcf.gz")
stderr: $(inputs.vcf_file.path.split("/").slice(-1)[0].split(".").slice(0,-3).join(".") + ".ref_mismatch.txt")
requirements:
- class: InlineJavascriptRequirement
hints:
DockerRequirement:
dockerPull: sort_and_normalize
inputs:
ref_file:
type: File
inputBinding:
position: 1
prefix: -f
secondaryFiles:
.fai
vcf_file:
type: File
inputBinding:
position: 2
outputs:
norm_text:
type: File
outputBinding:
glob: $(inputs.vcf_file.path.split("/").slice(-1)[0].split(".").slice(0,-3).join(".") + ".ref_mismatch.txt")
normalized_vcf:
type: File
outputBinding:
glob: $(inputs.vcf_file.path.split("/").slice(-1)[0].split(".").slice(0,-3).join(".") + ".normalized.vcf.gz")