-
Notifications
You must be signed in to change notification settings - Fork 1
/
alea-createTracks.cwl
113 lines (94 loc) · 2.27 KB
/
alea-createTracks.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
cwlVersion: v1.0
class: CommandLineTool
baseCommand: ["alea", "createTracks"]
requirements:
- $import: alea-docker.yml
- $import: envvar-global.yml
- class: InlineJavascriptRequirement
- class: EnvVarRequirement
envDef:
- envName: "AL_USE_CONCATENATED_GENOME"
envValue: $(inputs.CONCATENATED_GENOME?"1":"0")
- envName: "AL_BWA_ALN_PARAMS"
envValue: "-k 0 -n 0 -t 4"
- envName: "AL_DIR_TOOLS"
envValue: "/usr/local/bin/"
inputs:
bamfiles:
type: File[]
doc: |
prefix used for the output of alignReads command
bamprefix:
type: string?
doc: |
Prefix string
inputBinding:
position: 2
valueFrom: |
${return inputs.bamfile.dirname+"/"+inputs.bamprefix}
prefix: "-s"
strain1:
type: string
doc: |
name of strain1 (e.g. hap1)
inputBinding:
position: 3
strain2:
type: string
doc: |
name of strain2 (e.g. hap2)
inputBinding:
position: 4
genome1_refmap:
type: File
doc: |
path to the refmap file1 created for createGenome workflow
inputBinding:
position: 5
genome2_refmap:
type: File
doc: |
path to the refmap file2 created for createGenome workflow
inputBinding:
position: 6
chrom_size:
type: File
doc: |
path to the chromosome size file (required for creating .bw)
inputBinding:
position: 7
output_dir:
type: string
doc: |
Directory to place the files
inputBinding:
position: 8
outputs:
bedgraph1:
type: File
outputBinding:
glob: $(inputs.output_dir+"/"+inputs.bamprefix+"_"+inputs.strain1+".bedGraph")
bedgraph2:
type: File
outputBinding:
glob: $(inputs.output_dir+"/"+inputs.bamprefix+"_"+inputs.strain2+".bedGraph")
wig1:
type: File
outputBinding:
glob: $(inputs.output_dir+"/"+inputs.bamprefix+"_"+inputs.strain1+".wig.gz")
wig2:
type: File
outputBinding:
glob: $(inputs.output_dir+"/"+inputs.bamprefix+"_"+inputs.strain2+".wig.gz")
bw1:
type: File
outputBinding:
glob: $(inputs.output_dir+"/"+inputs.bamprefix+"_"+inputs.strain1+".bw")
bw2:
type: File
outputBinding:
glob: $(inputs.output_dir+"/"+inputs.bamprefix+"_"+inputs.strain2+".bw")
$namespaces:
s: http://schema.org/
$schemas:
- http://schema.org/docs/schema_org_rdfa.html