/
wf_makeblastdb.cwl
executable file
·85 lines (76 loc) · 1.65 KB
/
wf_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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
requirements:
- class: StepInputExpressionRequirement
inputs:
fasta_check_dummy: File?
gff_check_dummy: File?
fasta: File
outputs:
blastdb:
type: Directory
outputSource: mkdir/blastdb
steps:
makeblastdb:
run:
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: ncbi/amr:18.06
requirements:
- class: InitialWorkDirRequirement
listing:
- entry: $(inputs.fasta)
writable: False
#makeblastdb -in AMRProt -dbtype prot
baseCommand: makeblastdb
inputs:
fasta:
type: File
inputBinding:
prefix: -in
dbtype:
type: string?
default: prot
inputBinding:
prefix: -dbtype
outputs:
blastfiles:
type: File[]
outputBinding:
glob: "*"
in:
fasta: fasta
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: makeblastdb/blastfiles
blastdir:
source: fasta
valueFrom: $(self.basename)
out:
[blastdb]