/
align-texts-wf.cwl
66 lines (66 loc) · 1.18 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:
type:
items: File
type: array
outputSource: char-align/out_file
metadata:
type: File
outputSource: merge-json/merged
changes:
type: File
outputSource: merge-json-1/merged
steps:
align:
run: https://raw.githubusercontent.com/nlppln/edlib-align/master/align.cwl
in:
file2: gs
file1: ocr
out:
- changes
- metadata
scatter:
- file1
- file2
scatterMethod: dotproduct
merge-json:
run: merge-json.cwl
in:
in_files: align/metadata
name: align_m
out:
- merged
merge-json-1:
run: merge-json.cwl
in:
in_files: align/changes
name: align_c
out:
- merged
char-align:
run: char-align.cwl
in:
ocr_text: ocr
metadata: align/metadata
gs_text: gs
out:
- out_file
scatter:
- gs_text
- ocr_text
- metadata
scatterMethod: dotproduct