- Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathwf_bacterial_prot_src.cwl
56 lines (54 loc) · 1.66 KB
/
wf_bacterial_prot_src.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: Workflow
label: "Get Proteins"
requirements:
- class: SubworkflowFeatureRequirement
inputs:
uniColl_asn_cache: Directory
naming_sqlite: File
taxid: int
tax_sql_file: File
blastdb_dir: Directory
all_order_specific_blastdb: string[]
outputs:
universal_clusters:
type: File
outputSource: Get_Proteins_app/universal_clusters
all_prots:
type: File
outputSource: Get_Proteins_app/all_prots
selected_blastdb:
type: string[]
outputSource: File2Basenames/values
steps:
Get_Proteins_app:
label: "Get Proteins: application run"
run: protein_alignment/bacterial_prot_src.cwl
in:
uniColl_asn_cache: uniColl_asn_cache
naming_sqlite: naming_sqlite
taxid: taxid
tax_sql_file: tax_sql_file
blastdb_dir: blastdb_dir
blastdb:
default:
- blastdb
- blast_rules_db
linkMerge: merge_flattened
all_order_specific_blastdb: all_order_specific_blastdb
out: [ universal_clusters, all_prots, selected_blastdb ]
File2Basenames:
# worth describing a trick here:
# Get_Proteins_app/selected_blastdb is a manifest File in Gpipe sense. It contains full absolute paths
# to order specific blastdb
#
# file paths are transient and unreliable, but information here is in the basename of the selected blastdb, which is
# a persistent name findable under the unicol reference data
#
# Bottom line: no, we cannot pass manifests from one step to another, we are just using a clever trick here
#
run: progs/file2basenames.cwl
in:
input: Get_Proteins_app/selected_blastdb
out: [values]