aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/pangenome-generate.cwl
blob: 6794e2d091dbe06f3709e10d2628c373e5f575fd (plain)
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
cwlVersion: v1.1
class: Workflow
inputs:
  inputReads: File[]
  metadata: File[]
  metadataSchema: File
  subjects: string[]
outputs:
  odgiGraph:
    type: File
    outputSource: buildGraph/odgiGraph
  odgiPNG:
    type: File
    outputSource: vizGraph/odgiPNG
  seqwishGFA:
    type: File
    outputSource: induceGraph/seqwishGFA
  odgiRDF:
    type: File
    outputSource: odgi2rdf/rdf
  readsMergeDedup:
    type: File
    outputSource: dedup/readsMergeDedup
  mergedMetadata:
    type: File
    outputSource: mergeMetadata/merged
steps:
  relabel:
    in:
      readsFA: inputReads
      subjects: subjects
    out: [relabeledSeqs, originalLabels]
    run: relabel-seqs.cwl
  dedup:
    in: {readsFA: relabel/relabeledSeqs}
    out: [readsMergeDedup, dups]
    run: seqkit-rmdup.cwl
  overlapReads:
    in: {readsFA: dedup/readsMergeDedup}
    out: [readsPAF]
    run: minimap2.cwl
  induceGraph:
    in:
      readsFA: dedup/readsMergeDedup
      readsPAF: overlapReads/readsPAF
    out: [seqwishGFA]
    run: seqwish.cwl
  buildGraph:
    in: {inputGFA: induceGraph/seqwishGFA}
    out: [odgiGraph]
    run: odgi-build.cwl
  vizGraph:
    in: {inputODGI: buildGraph/odgiGraph}
    out: [odgiPNG]
    run: odgi-viz.cwl
  odgi2rdf:
    in: {odgi: buildGraph/odgiGraph}
    out: [rdf]
    run: odgi_to_rdf.cwl
  mergeMetadata:
    in:
      metadata: metadata
      metadataSchema: metadataSchema
      subjects: subjects
      dups: dedup/dups
      originalLabels: relabel/originalLabels
    out: [merged]
    run: merge-metadata.cwl