aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/odgi-build-from-xpoa-gfa.cwl
blob: eee40314ebbeb245e7df5ef50c0a48644e8768d2 (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: {}
hints:
  DockerRequirement:
    dockerPull: "odgi-bash-binutils:latest"
  ResourceRequirement:
    coresMin: 4
    ramMin: $(15 * 1024)
    outdirMin: $(Math.ceil((inputs.inputGFA.size/(1024*1024*1024)+1) * 2))
  InitialWorkDirRequirement:
    # Will fail if input file is not writable (odgi bug)
    listing:
      - entry: $(inputs.inputGFA)
        writable: true
arguments:
  - "sh"
  - "-c"
  - >-
    odgi build -g '$(inputs.inputGFA.path)' -o - | odgi unchop -i - -o - |
    odgi sort -i - -p s -o $(inputs.inputGFA.nameroot).unchop.sorted.odgi