aboutsummaryrefslogtreecommitdiff
path: root/workflows/pangenome-generate/seqkit-rmdup.cwl
diff options
context:
space:
mode:
authorPeter Amstutz2020-04-20 12:55:18 -0400
committerPeter Amstutz2020-04-20 12:55:18 -0400
commitd781e42c9adac07253cb928ae66e9b7314710267 (patch)
tree4718165cbc069169eaff98080c61c5f07763ffc1 /workflows/pangenome-generate/seqkit-rmdup.cwl
parent1219eaf496c899f3043b90e30eb956f0f363bfb3 (diff)
downloadbh20-seq-resource-d781e42c9adac07253cb928ae66e9b7314710267.tar.gz
bh20-seq-resource-d781e42c9adac07253cb928ae66e9b7314710267.tar.lz
bh20-seq-resource-d781e42c9adac07253cb928ae66e9b7314710267.zip
Move workflows into main repo
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
Diffstat (limited to 'workflows/pangenome-generate/seqkit-rmdup.cwl')
-rw-r--r--workflows/pangenome-generate/seqkit-rmdup.cwl32
1 files changed, 32 insertions, 0 deletions
diff --git a/workflows/pangenome-generate/seqkit-rmdup.cwl b/workflows/pangenome-generate/seqkit-rmdup.cwl
new file mode 100644
index 0000000..d3626f5
--- /dev/null
+++ b/workflows/pangenome-generate/seqkit-rmdup.cwl
@@ -0,0 +1,32 @@
+cwlVersion: v1.1
+class: CommandLineTool
+inputs:
+ readsFA: File[]
+outputs:
+ readsMergeDedup:
+ type: File
+ outputBinding:
+ glob: readsMergeDedup.fasta
+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,
+ -o, readsMergeDedup.fasta,
+ $(inputs.readsFA)]