forked from jarnolaitinen/RD_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bwa-mem.cwl
69 lines (66 loc) · 1.4 KB
/
bwa-mem.cwl
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
60
61
62
63
64
65
66
67
68
69
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
sbg: 'https://www.sevenbridges.com/'
baseCommand:
- bwa
- mem
- -M
- -p
requirements:
- class: InlineJavascriptRequirement
- class: MultipleInputFeatureRequirement
- class: DockerRequirement
dockerPull: cnag/bwa:0.7.17
- class: ResourceRequirement
outdirMin: 10500
tmpdirMin: 10700
hints:
- class: ResourceRequirement
coresMin: 4
ramMin: 4000
inputs:
# - id: bwa_output_filename
# type: string?
# default: $(inputs.trimmed_fastq.nameroot).sam
- id: trimmed_fastq
type: File
inputBinding:
position: 4
# Assume the first input query file is interleaved paired-end FASTA/Q. See the command description for details.
- id: reference_genome
type: File
inputBinding:
position: 3
secondaryFiles:
- .amb
- .ann
- .bwt
- .pac
- .sa
- id: sample_name
type: string
- id: threads
type: int?
default: 2
inputBinding:
position: 1
prefix: '-t'
doc: '-t INT number of threads [1]'
- id: read_group
type: string
default: '@RG\\tID:H947YADXX\\tSM:NA12878\\tPL:ILLUMINA'
inputBinding:
position: 2
prefix: -R
stdout: $(inputs.sample_name).sam
arguments:
- position: 2
prefix: -M
- position: 2
prefix: -p
outputs:
- id: aligned_sam
type: File
outputBinding:
glob: "*.sam"