-
Notifications
You must be signed in to change notification settings - Fork 18
/
align-texts-wf.cwl
66 lines (66 loc) · 1.19 KB
/
align-texts-wf.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
requirements:
- class: ScatterFeatureRequirement
inputs:
gs: File[]
ocr: File[]
align_m:
default: merged_metadata.csv
type: string
align_c:
default: merged_changes.csv
type: string
outputs:
alignments:
outputSource: char-align-1/out_file
type:
type: array
items: File
metadata:
outputSource: merge-json-2/merged
type: File
changes:
outputSource: merge-json-3/merged
type: File
steps:
align-1:
run: https://raw.githubusercontent.com/nlppln/edlib-align/master/align.cwl
in:
file1: ocr
file2: gs
out:
- changes
- metadata
scatter:
- file1
- file2
scatterMethod: dotproduct
merge-json-2:
run: merge-json.cwl
in:
in_files: align-1/metadata
name: align_m
out:
- merged
merge-json-3:
run: merge-json.cwl
in:
in_files: align-1/changes
name: align_c
out:
- merged
char-align-1:
run: char-align.cwl
in:
gs_text: gs
metadata: align-1/metadata
ocr_text: ocr
out:
- out_file
scatter:
- gs_text
- ocr_text
- metadata
scatterMethod: dotproduct