-
Notifications
You must be signed in to change notification settings - Fork 87
/
wf_bacterial_annot_pass1.cwl
executable file
·205 lines (194 loc) · 6.14 KB
/
wf_bacterial_annot_pass1.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#!/usr/bin/env cwl-runner
label: "Bacterial Annotation, pass 1, genemark training, by HMMs (first pass)"
cwlVersion: v1.2
class: Workflow
requirements:
- class: SubworkflowFeatureRequirement
- class: MultipleInputFeatureRequirement
inputs:
go:
type: boolean[]
asn_cache: Directory
inseq: File
hmm_path: Directory
hmms_tab: File
uniColl_cache: Directory
trna_annots: File
naming_sqlite: # /panfs/pan1.be-md.ncbi.nlm.nih.gov/gpipe/home/badrazat/local-install/2018-05-17/third-party/data/BacterialPipeline/uniColl/ver-3.2/naming.sqlite
type: File
ncrna_annots: File
nogenbank: boolean
Execute_CRISPRs_annots: File
Generate_16S_rRNA_Annotation_annotation: File
Generate_23S_rRNA_Annotation_annotation: File
Post_process_CMsearch_annotations_annots_5S: File
thresholds: File
genemark_path: string
# Cached computational steps
#hmm_hits: File
scatter_gather_nchunks: string
selenoproteins: # /panfs/pan1.be-md.ncbi.nlm.nih.gov/gpipe/home/badrazat/local-install/2018-05-17/third-party/data/BacterialPipeline/Selenoproteins/selenoproteins
type: Directory
selenoproteins_db:
type: string
default: blastdb
outputs:
outseqs:
type: File
outputSource: Get_ORFs/outseqs
aligns:
type: File
outputSource: Map_HMM_Hits/aligns
hmm_hits:
type: File
outputSource: Search_All_HMMs/hmm_hits
proteins:
type: File
outputSource: Extract_ORF_Proteins/proteins
lds2:
type: File
outputSource: Extract_ORF_Proteins/lds2
seqids:
type: File
outputSource: Extract_ORF_Proteins/seqids
prot_ids:
type: File
outputSource: Get_off_frame_ORFs/prot_ids
protein_aligns:
type: File
outputSource: Resolve_Annotation_Conflicts/protein_aligns
annotation:
type: File
outputSource: Resolve_Annotation_Conflicts/annotation
out_hmm_params:
type: File?
outputSource: Run_GeneMark_Training/out_hmm_params
models1:
type: File
outputSource: Run_GeneMark_Training_post/models
steps:
Get_ORFs:
run: ../progs/gp_getorf.cwl
in:
asn_cache: asn_cache
input: inseq
out: [outseqs]
Extract_ORF_Proteins:
run: ../progs/protein_extract.cwl
in:
input: Get_ORFs/outseqs
nogenbank: nogenbank
out: [proteins, lds2, seqids]
# Skipped due to compute cost, for now
Search_All_HMMs:
label: "Search All HMMs"
run: ../task_types/tt_hmmsearch_wnode.cwl
in:
proteins: Extract_ORF_Proteins/proteins
hmm_path: hmm_path
seqids: Extract_ORF_Proteins/seqids
lds2: Extract_ORF_Proteins/lds2
hmms_tab: hmms_tab
asn_cache: asn_cache
scatter_gather_nchunks: scatter_gather_nchunks
out:
[hmm_hits]
#[hmm_hits, jobs, workdir]
Map_HMM_Hits:
run: ../bacterial_annot/bacterial_hit_mapping.cwl
in:
seq_cache: asn_cache
unicoll_cache: uniColl_cache
asn_cache: [asn_cache, uniColl_cache]
# hmm_hits: hmm_hits # Should be from hmmsearch
hmm_hits:
source: [Search_All_HMMs/hmm_hits]
linkMerge: merge_flattened
sequences: Get_ORFs/outseqs
### this guys below not tested yet
align_fmt:
default: seq-align
expansion_ratio:
default: 0.0
no_compart:
default: true
nogenbank:
default: true
outfile:
default: "mapped-hmm-hits.asn"
out: [aligns]
Get_off_frame_ORFs:
run: get_off_frame_orfs.cwl
label: "Get_off_frame_ORFs task node"
in:
aligns: Map_HMM_Hits/aligns
seq_entries: Get_ORFs/outseqs
out: [prot_ids]
Resolve_Annotation_Conflicts:
label: "Resolve Annotation Conflicts"
run: ../progs/bacterial_resolve_conflicts.cwl
in:
features: # all external to this node
- Execute_CRISPRs_annots # Execute CRISPR/annots
- ncrna_annots # Post-process CMsearch Rfam annotations/annots
- Generate_16S_rRNA_Annotation_annotation # Generate 16S rRNA Annotation/annotation
- Generate_23S_rRNA_Annotation_annotation # Generate 23S rRNA Annotation/annotation
- Post_process_CMsearch_annotations_annots_5S # Post-process CMsearch annotations/annots
- trna_annots # Run tRNAScan/annot
# input_annotation: mft not used
# prot: mft not used
# mapped-regions: mft not used
thr: thresholds
asn_cache:
source: [asn_cache]
linkMerge: merge_flattened
out:
- protein_aligns
- annotation
Run_GeneMark_Training:
label: "Run GeneMark Training, genemark"
run: ../progs/genemark_training.cwl
in:
asn_cache:
source: [asn_cache, uniColl_cache]
linkMerge: merge_flattened
sequences: inseq
annotation: Resolve_Annotation_Conflicts/annotation
genemark_path: genemark_path # ${GP_HOME}/third-party/GeneMark
min_seq_len:
default: 200
preliminary_models_name: # -out
default: preliminary-models.asn
thr: thresholds
tmp_dir_name:
default: workdir
# type: Directory
nogenbank:
default: true
out: [out_hmm_params, preliminary_models]
Run_GeneMark_Training_post:
label: "Run GeneMark Training (genemark_post)"
run: ../progs/genemark_post.cwl
in:
abs_short_model_limit:
default: 60
asn_cache: [uniColl_cache, asn_cache]
# ${GP_cache_dir},${GP_HOME}/third-party/data/BacterialPipeline/uniColl/ver-3.2/cache
# type: Directory[]
genemark_annot: Run_GeneMark_Training/preliminary_models
max_overlap:
default: 120
max_unannotated_region:
default: 5000
models_name: # -out
default: models_training.asn
out_product_ids_name:
default: all-proteins.ids
selenoproteins: selenoproteins
selenoproteins_db: selenoproteins_db
short_model_limit:
default: 180
unicoll_sqlite: naming_sqlite
nogenbank:
default: true
out: [models]