aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/seqkit-rmdup.cwl
blob: 071fa6621105b79d0dfa8ee83f3f8c5257402663 (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
cwlVersion: v1.1
class: CommandLineTool
inputs:
  readsFA: File
outputs:
  readsMergeDedup:
    type: File
    outputBinding:
      glob: readsMergeDedup.fasta
  dups:
    type: File?
    outputBinding:
      glob: dups.txt
requirements:
  InlineJavascriptRequirement: {}
hints:
  DockerRequirement:
    dockerPull: "quay.io/biocontainers/seqkit:0.7.1--0"
  ResourceRequirement:
    coresMin: 8
    coresMax: 32
    ramMin: $(7 * 1024)
    outdirMin: |
      ${
        var sum = 0;
        for (var i = 0; i < inputs.readsFA.length; i++) {
          sum += inputs.readsFA[i].size;
        }
        return (sum/(1024*1024*1024)+1) + 20;
      }
baseCommand: seqkit
arguments: [rmdup,
            --by-seq,
            --ignore-case,
            --dup-num-file, dups.txt,
            -o, readsMergeDedup.fasta,
            $(inputs.readsFA)]