Adding cwl to annotate and generate report
authorSarah Wait Zaranek <swz@curii.com>
Thu, 5 Mar 2020 13:44:51 +0000 (13:44 +0000)
committerWard Vandewege <ward@jhvc.com>
Thu, 18 Jun 2020 15:16:39 +0000 (11:16 -0400)
Arvados-DCO-1.1-Signed-off-by: Sarah Wait Zaranek <swz@curii.com>
no issue #

cwl/annotate-vcf.cwl [new file with mode: 0644]
cwl/generate-report.cwl [new file with mode: 0644]

diff --git a/cwl/annotate-vcf.cwl b/cwl/annotate-vcf.cwl
new file mode 100644 (file)
index 0000000..5a5c84f
--- /dev/null
@@ -0,0 +1,37 @@
+cwlVersion: v1.1
+class: CommandLineTool
+
+requirements:
+  - class: DockerRequirement
+    dockerPull: curii/clinvar-report
+  - class: ShellCommandRequirement
+
+hints:
+  ResourceRequirement:
+    ramMin: 10000
+    coresMin: 4
+
+stdout: $(inputs.vcf.nameroot).txt
+
+arguments:
+  - bcftools
+  - annotate
+  - prefix: "-a"
+    valueFrom: $(inputs.clinvarvcf.path)
+  - prefix: "-c"
+    valueFrom: "ID,INFO"
+  - $(inputs.vcf.path)
+  - {valueFrom: '|', shellQuote: false}
+  - bcftools
+  - filter
+  - prefix: "-i"
+    valueFrom: "INFO/ALLELEID>=1"
+
+inputs: 
+  vcf:
+    type: File
+  clinvarvcf:
+    type: File
+  
+outputs:
+  report: stdout
diff --git a/cwl/generate-report.cwl b/cwl/generate-report.cwl
new file mode 100644 (file)
index 0000000..0c438d4
--- /dev/null
@@ -0,0 +1,36 @@
+cwlVersion: v1.1
+class: CommandLineTool
+
+requirements:
+  DockerRequirement:
+    dockerPull: curii/clinvar-report
+
+hints:
+  ResourceRequirement:
+    ramMin: 10000
+    coresMin: 4    
+
+baseCommand: python
+
+arguments:
+  - $(inputs.reportfunc)
+  - $(inputs.sampletxt)
+  - $(inputs.sampletxt.basename)
+  - $(inputs.headhtml)
+  - $(inputs.tailhtml)
+
+inputs:
+  reportfunc:
+    type: File
+  sampletxt:
+    type: File
+  headhtml:
+    type: File
+  tailhtml:
+    type: File
+    
+outputs:
+  report:
+    type: File
+    outputBinding:
+      glob: "*html"