-
Notifications
You must be signed in to change notification settings - Fork 89
/
taxcheck.cwl
executable file
·149 lines (144 loc) · 4.18 KB
/
taxcheck.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
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.2
doc: |
Perform taxonomic identification tasks on an input genome
requirements:
- class: InlineJavascriptRequirement
- class: StepInputExpressionRequirement
- class: SubworkflowFeatureRequirement
- class: MultipleInputFeatureRequirement
- class: LoadListingRequirement
loadListing: deep_listing
inputs:
supplemental_data:
type: Directory
default:
class: Directory
location: input
fasta: File
gc_assm_name:
type: string
default: my_gc_assm_name
report_usage: boolean
submol: File
ignore_all_errors:
type: boolean?
no_internet:
type: boolean?
make_uuid:
type: boolean?
default: true
uuid_in:
type: File?
outputs:
ani_tax_report:
type: File
outputSource: bacterial_kmer/Identify_Top_N_ANI_top
ani_tax_report_text:
type: File
outputSource: bacterial_kmer/Identify_Top_N_ANI_top_txt
errors:
type: File?
outputSource: bacterial_kmer/errors
uuid_out:
type: File
outputSource: ping_start/uuid_out
steps:
ping_start:
run: progs/pinger.cwl
in:
report_usage: report_usage
make_uuid: make_uuid
uuid_in: uuid_in
state:
default: "start"
workflow:
default: "ani-analysis"
instring: gc_assm_name
out: [stdout, outstring, uuid_out]
fastaval:
run: progs/fastaval.cwl
in:
in: fasta
check_min_seqlen:
default: 200
check_internal_ns:
default: true
ignore_all_errors: ignore_all_errors
out: [success]
passdata:
in:
data: supplemental_data
run: expr/ani.cwl
out:
- ANI_cutoff
- ani_report_transform
- gc_cache
- gc_seq_cache
- gcextract2_sqlite
- kmer_cache_sqlite
- kmer_reference_assemblies
- taxon_db
- tax_synon
prepare_input_template:
run: prepare_user_input2.cwl
label: Prepare user input
in:
fasta: fasta
submol: submol
taxon_db: passdata/taxon_db
ignore_all_errors: ignore_all_errors
no_internet: no_internet
out: [output_seq_submit, output_entries, locus_tag_prefix, submol_block_json, taxid]
Prepare_Seq_entries:
run: progs/prepare_seq_entry_input.cwl
in:
entries: prepare_input_template/output_entries
seq_submit: prepare_input_template/output_seq_submit
out: [output_entries]
genomic_source:
run: genomic_source/wf_genomic_source_asn.cwl
in:
entries: prepare_input_template/output_entries
seq_submit: prepare_input_template/output_seq_submit
gc_assm_name:
source: "#fasta"
valueFrom: $(inputs.gc_assm_name.basename)
taxon_db: passdata/taxon_db
out: [gencoll_asn, seqid_list, stats_report, asncache, ids_out, submit_block_template]
bacterial_kmer:
run: bacterial_kmer/wf_bacterial_kmer.cwl
in:
Extract_Kmers_From_Input___entry: Prepare_Seq_entries/output_entries
gencoll_asn: genomic_source/gencoll_asn
asn_cache: genomic_source/asncache
gc_seq_cache: passdata/gc_seq_cache
gc_cache: passdata/gc_cache
kmer_cache_sqlite: passdata/kmer_cache_sqlite
ref_assembly_taxid: prepare_input_template/taxid
ref_assembly_id:
default: 0
ANI_cutoff: passdata/ANI_cutoff
kmer_reference_assemblies: passdata/kmer_reference_assemblies
tax_synon: passdata/tax_synon
taxon_db: passdata/taxon_db
gcextract2_sqlite: passdata/gcextract2_sqlite
ani_report_transform: passdata/ani_report_transform
out: [Identify_Top_N_ANI_annot, Identify_Top_N_ANI_top, Extract_Top_Assemblies___tax_report, Identify_Top_N_ANI_top_txt, errors]
ping_stop:
run: progs/pinger.cwl
in:
report_usage: report_usage
uuid_in: ping_start/uuid_out
state:
default: "stop"
workflow:
default: "ani-analysis"
# Note: the input on the following line should be the same as all of the outputs
# for this workflow, so we ensure this is the final step.
infile:
- bacterial_kmer/Identify_Top_N_ANI_annot
- bacterial_kmer/Identify_Top_N_ANI_top
- bacterial_kmer/Extract_Top_Assemblies___tax_report
out: [stdout]