Adding gather cwls
authorSarah Wait Zaranek <swz@curii.com>
Fri, 22 May 2020 13:06:10 +0000 (13:06 +0000)
committerWard Vandewege <ward@jhvc.com>
Thu, 18 Jun 2020 15:16:40 +0000 (11:16 -0400)
Arvados-DCO-1.1-Signed-off-by: Sarah Wait Zaranek <swz@curii.com>
no issue #

cwl/helper/gather-vcf-try2.cwl [new file with mode: 0644]
cwl/helper/gather-vcf.cwl [new file with mode: 0644]
cwl/helper/not-in-use/bwa-gatk-wf.cwl [moved from cwl/helper/old/bwa-gatk-wf.cwl with 100% similarity]
cwl/helper/not-in-use/bwamem-samtools-sort.cwl [moved from cwl/helper/bwamem-samtools-sort.cwl with 100% similarity]
cwl/helper/not-in-use/calc-coverage.cwl [moved from cwl/helper/calc-coverage.cwl with 100% similarity]
cwl/helper/not-in-use/check-sam.cwl [moved from cwl/helper/check-sam.cwl with 100% similarity]
cwl/helper/not-in-use/fix-groups.cwl [moved from cwl/helper/fix-groups.cwl with 100% similarity]
cwl/helper/not-in-use/samtools-fixmate.cwl [moved from cwl/helper/samtools-fixmate.cwl with 100% similarity]
cwl/helper/not-in-use/samtools-sort.cwl [moved from cwl/helper/old/samtools-sort.cwl with 100% similarity]

diff --git a/cwl/helper/gather-vcf-try2.cwl b/cwl/helper/gather-vcf-try2.cwl
new file mode 100644 (file)
index 0000000..4bd8cf0
--- /dev/null
@@ -0,0 +1,57 @@
+cwlVersion: v1.1
+class: CommandLineTool
+label: Gathering vcf using Picard 
+$namespaces:
+  arv: "http://arvados.org/cwl#"
+  cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+  DockerRequirement:
+    dockerPull: broadinstitute/gatk:4.1.7.0
+  ShellCommandRequirement: {}
+  InitialWorkDirRequirement:
+    listing:
+      - $(inputs.gvcf1)
+      - $(inputs.gvcf2)
+
+hints:
+  ResourceRequirement:
+    ramMin: 20000
+    coresMin: 4    
+  arv:RuntimeConstraints:
+    outputDirType: keep_output_dir
+
+inputs:
+  gvcf1:
+    type: File
+  gvcf2:
+    type: File
+  sample: string
+  reference:
+    type: File
+    secondaryFiles:
+      - .amb
+      - .ann
+      - .bwt
+      - .pac
+      - .sa
+      - .fai
+      - ^.dict
+outputs:
+  gatheredgvcf:
+    type: File
+    outputBinding:
+      glob: "*g.vcf.gz"
+
+baseCommand: /gatk/gatk
+
+arguments:
+  - "--java-options"
+  - "-Xmx8G" 
+  - MergeVcfs
+  - prefix: "-I"
+    valueFrom: $(inputs.gvcf1.basename) 
+  - prefix: "-I"
+    valueFrom: $(inputs.gvcf2.basename)
+  - prefix: "-O"
+    valueFrom: $(inputs.sample)g.vcf.gz
diff --git a/cwl/helper/gather-vcf.cwl b/cwl/helper/gather-vcf.cwl
new file mode 100644 (file)
index 0000000..7bba8a9
--- /dev/null
@@ -0,0 +1,58 @@
+cwlVersion: v1.1
+class: CommandLineTool
+label: Gathering vcf using Picard 
+$namespaces:
+  arv: "http://arvados.org/cwl#"
+  cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+  DockerRequirement:
+    dockerPull: broadinstitute/gatk:4.1.7.0
+  ShellCommandRequirement: {}
+  InitialWorkDirRequirement:
+    listing:
+      - $(inputs.gvcflist)
+      - $(inputs.gvcf1)
+      - $(inputs.gvcf2)
+
+hints:
+  ResourceRequirement:
+    ramMin: 20000
+    coresMin: 4    
+  arv:RuntimeConstraints:
+    outputDirType: keep_output_dir
+
+inputs:
+  gvcf1:
+    type: File
+  gvcf2:
+    type: File
+  gvcflist:
+    type: File
+  sample: string
+  reference:
+    type: File
+    secondaryFiles:
+      - .amb
+      - .ann
+      - .bwt
+      - .pac
+      - .sa
+      - .fai
+      - ^.dict
+outputs:
+  gatheredgvcf:
+    type: File
+    outputBinding:
+      glob: "*g.vcf.gz"
+
+baseCommand: /gatk/gatk
+
+arguments:
+  - "--java-options"
+  - "-Xmx8G" 
+  - GatherVcfs
+  - prefix: "-I"
+    valueFrom: $(inputs.gvcflist.basename) 
+  - prefix: "-O"
+    valueFrom: $(inputs.sample)g.vcf.gz