aboutsummaryrefslogtreecommitdiff
path: root/workflows/fastq2fasta/bwa-mem.cwl
blob: 195411cbd9c64da3044271d02641e0e49e94a697 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env cwl-runner
cwlVersion: v1.1
class: CommandLineTool
doc: string
requirements:
  DockerRequirement:
    dockerPull: quay.io/biocontainers/bwa:0.7.17--h84994c4_5

baseCommand: [bwa, mem]

inputs:
  threads:
    type: int
    label: "number of threads"
    default: 4
    inputBinding:
      prefix: -t
  output_sam:
    type: string
    label: "sam file to output results to"
    default: "out.sam"
    inputBinding:
      prefix: -o
  group_header_line:
    type: string?
    label: "read group header line such as '@RG\tID:foo\tSM:bar'"
    inputBinding:
      prefix: -R
  index_base:
    type: File
    label: "fasta file for index basename"
    inputBinding:
      position: 1
    secondaryFiles:
      - .amb
      - .ann
      - .bwt
      - .pac
      - .sa
  fastq_forward:
    type: File
    label: "input fastq file to map (single-end or forward for pair-end)"
    inputBinding:
      position: 2
  fastq_reverse:
    type: File?
    label: "input fastq file to map (reverse for pair-end)"
    inputBinding:
      position: 3

outputs:
  output:
    type: File
    outputBinding:
      glob: "$(inputs.output_sam)"
  stdout: stdout
  stderr: stderr
stdout: bwa-mem-stdout.log
stderr: bwa-mem-stderr.log