about summary refs log tree commit diff
path: root/workflows/fastq2fasta/bcftools-norm.cwl
diff options
context:
space:
mode:
Diffstat (limited to 'workflows/fastq2fasta/bcftools-norm.cwl')
-rw-r--r--workflows/fastq2fasta/bcftools-norm.cwl32
1 files changed, 32 insertions, 0 deletions
diff --git a/workflows/fastq2fasta/bcftools-norm.cwl b/workflows/fastq2fasta/bcftools-norm.cwl
new file mode 100644
index 0000000..a765e65
--- /dev/null
+++ b/workflows/fastq2fasta/bcftools-norm.cwl
@@ -0,0 +1,32 @@
+#!/usr/bin/env cwl-runner
+class: CommandLineTool
+cwlVersion: v1.1
+hints:
+  DockerRequirement:
+    dockerPull: "quay.io/biocontainers/bcftools:1.10.2--hd2cd319_0"
+baseCommand: bcftools
+arguments:
+  - norm
+  - -Ob
+  - -f
+  - $(inputs.ref_fasta)
+  - -o
+  - $(inputs.output_name)
+  - --threads
+  - $(inputs.threads)
+  - $(inputs.bcf)
+inputs:
+  - id: ref_fasta
+    type: File
+  - id: output_name
+    type: string
+    default: "normalized.bcf"
+  - id: threads
+    type: int
+  - id: bcf
+    type: File
+outputs:
+ - id: normalized_bcf
+   type: File
+   outputBinding:
+     glob: "$(inputs.output_name)"