aboutsummaryrefslogtreecommitdiff
path: root/workflows/fastq2fasta/fastq2fasta-create-bwaindex.cwl
blob: dab7ff2c092f4006eb9e13ab6cd295210eac31b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cwlVersion: v1.1
class: Workflow
requirements:
  SubworkflowFeatureRequirement: {}
hints:
  ResourceRequirement:
    ramMin: 3000

inputs:
  ref_fasta:
    type: File
  fastq_forward:
    type: File
  fastq_reverse:
    type: File?
  threads:
    type: int
    default: 4

outputs:
  out_fasta:
    type: File
    outputSource: fastq2fasta/out_fasta

steps:
  bwa-index:
    in: {input_fasta: ref_fasta}
    out: [indexed_fasta]
    run: bwa-index.cwl
  samtools-faidx:
    in: {input_fasta: bwa-index/indexed_fasta}
    out: [indexed_fasta]
    run: samtools-faidx.cwl
  fastq2fasta:
    in:
      fastq_forward: fastq_forward
      fastq_reverse: fastq_reverse
      ref_fasta: samtools-faidx/indexed_fasta
      threads: threads
    out: [out_fasta]
    run: fastq2fasta.cwl