about summary refs log tree commit diff
path: root/workflows/fastq2fasta/fastq2fasta.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/fastq2fasta/fastq2fasta.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/fastq2fasta/fastq2fasta.cwl')
-rw-r--r--workflows/fastq2fasta/fastq2fasta.cwl61
1 files changed, 61 insertions, 0 deletions
diff --git a/workflows/fastq2fasta/fastq2fasta.cwl b/workflows/fastq2fasta/fastq2fasta.cwl
new file mode 100644
index 0000000..0cf5c48
--- /dev/null
+++ b/workflows/fastq2fasta/fastq2fasta.cwl
@@ -0,0 +1,61 @@
+cwlVersion: v1.1
+class: Workflow
+requirements:
+  SubworkflowFeatureRequirement: {}
+hints:
+  ResourceRequirement:
+    ramMin: 3000
+
+inputs:
+  fastq_forward: File
+  fastq_reverse: File?
+  ref_fasta:
+    type: File
+    secondaryFiles:
+      - .amb
+      - .ann
+      - .bwt
+      - .pac
+      - .sa
+      - .fai
+  threads:
+    type: int
+    default: 4
+  metadata: File?
+
+outputs:
+  out_fasta:
+    type: File
+    outputSource: bam2fasta/out_fasta
+  out_metadata:
+    type: File?
+    outputSource: metadata
+
+steps:
+  bwa-mem:
+    in:
+      threads: threads
+      fastq_forward: fastq_forward
+      fastq_reverse: fastq_reverse
+      index_base: ref_fasta
+    out: [output]
+    run: bwa-mem.cwl
+  samtools-view:
+    in:
+      threads: threads
+      input_file: bwa-mem/output
+    out: [bam]
+    run: samtools-view.cwl
+  samtools-sort:
+    in:
+      input_bamfile: samtools-view/bam
+      threads: threads
+    out: [sorted_bam]
+    run: samtools-sort.cwl
+  bam2fasta:
+    in:
+      bam: samtools-sort/sorted_bam
+      fasta: ref_fasta
+      threads: threads
+    out: [out_fasta]
+    run: bam2fasta.cwl