aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/odgi-build-from-spoa-gfa.cwl
blob: 2459ce72e3cc813f4c943dc2e9040d023b1005f5 (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
cwlVersion: v1.1
class: CommandLineTool
inputs:
  inputGFA: File
outputs:
  odgiGraph:
    type: File
    outputBinding:
      glob: $(inputs.inputGFA.nameroot).unchop.sorted.odgi
requirements:
  InlineJavascriptRequirement: {}
  ShellCommandRequirement: {}
hints:
  DockerRequirement:
    dockerPull: "quay.io/biocontainers/odgi:v0.3--py37h8b12597_0"
  ResourceRequirement:
    coresMin: 4
    ramMin: $(7 * 1024)
    outdirMin: $(Math.ceil((inputs.inputGFA.size/(1024*1024*1024)+1) * 2))
  InitialWorkDirRequirement:
    listing:
      - entry: $(inputs.inputGFA)
        writable: true
arguments: [odgi, build, -g, $(inputs.inputGFA), -o, -,
            {shellQuote: false, valueFrom: "|"},
            odgi, unchop, -i, -, -o, -,
            {shellQuote: false, valueFrom: "|"},
            odgi, sort, -i, -, -p, s, -o, $(inputs.inputGFA.nameroot).unchop.sorted.odgi
           ]