-
Notifications
You must be signed in to change notification settings - Fork 3
/
gp_makeblastdb.cwl
148 lines (140 loc) · 4.31 KB
/
gp_makeblastdb.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
cwlVersion: v1.0
label: "gp_makeblastdb"
class: Workflow
hints:
DockerRequirement:
dockerPull: ncbi/gpdev:latest
requirements:
- class: StepInputExpressionRequirement
inputs:
asn_cache: Directory[]
asnb: File?
asnt: File?
dbtype: string
fasta: File?
hardmask: File?
softmask: File?
title: string
ids: File?
steps:
actual:
run:
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: ncbi/gpdev:latest
baseCommand: gp_makeblastdb
inputs:
asn_cache:
type: Directory[]
inputBinding:
prefix: -asn-cache
itemSeparator: ","
asnb:
type: File?
inputBinding:
prefix: -asnb
asnt:
type: File?
inputBinding:
prefix: -asnt
dbtype:
type: string
inputBinding:
prefix: -dbtype
fasta:
type: File?
inputBinding:
prefix: -fasta
found_ids_output_file: # -found-ids-output out/found_ids.txt \
type: string
default: found_ids.txt
inputBinding:
prefix: -found-ids-output
found_ids_output_manifest: # -found-ids-output-manifest out/found_ids.mft \
type: string
default: found_ids.mft
inputBinding:
prefix: -found-ids-output-manifest
hardmask: # -hardmask-manifest inp/hardmask_data.mft
type: File?
inputBinding:
prefix: -hardmask
output_db_file:
type: string
default: blastdb
inputBinding:
prefix: -db
output_db_manifest:
type: string
default: blastdb.mft
inputBinding:
prefix: -output-manifest
softmask: # -softmask-manifest inp/softmask_data.mft \
type: File?
inputBinding:
prefix: -softmask
title: # -title 'BLASTdb created by GPipe'
type: string
inputBinding:
prefix: -title
ids:
type: File?
inputBinding:
prefix: -ids
outputs:
dbname:
type: string
outputBinding:
outputEval: $(inputs.output_db_file)
found_ids:
type: File
outputBinding:
glob: $(inputs.found_ids_output_file)
blastfiles:
type: File[]
outputBinding:
glob: "blastdb.*" # string literal here must match ${output_db_file}
in:
asn_cache: asn_cache
asnb: asnb
asnt: asnt
dbtype: dbtype
fasta: fasta
hardmask: hardmask # -hardmask-manifest inp/hardmask_data.mft
softmask: softmask # -softmask-manifest inp/softmask_data.mft \
title: title # -title 'BLASTdb created by GPipe'
ids: ids
out: [blastfiles]
mkdir:
run:
class: CommandLineTool
requirements:
- class: ShellCommandRequirement
arguments:
- shellQuote: false
valueFrom: >-
mkdir $(inputs.blastdir) && cp
inputs:
blastfiles:
type: File[]
inputBinding:
position: 1
blastdir:
type: string
inputBinding:
position: 2
outputs:
blastdb:
type: Directory
outputBinding:
glob: $(inputs.blastdir)
in:
blastfiles: actual/blastfiles
blastdir:
default: blastdir
out: [blastdb]
outputs:
blastdb:
type: Directory
outputSource: mkdir/blastdb