1 #!/usr/bin/env cwl-runner
6 - class: DockerRequirement
7 dockerPull: biodckr/bwa
9 - class: InlineJavascriptRequirement
11 baseCommand: [bwa, mem]
14 - {prefix: "-t", valueFrom: $(runtime.cores)}
15 - {prefix: "-R", valueFrom: "@RG\tID:$(inputs.group_id)\tPL:$(inputs.PL)\tSM:$(inputs.sample_id)"}
22 valueFrom: $(self.path.match(/(.*)\.[^.]+$/)[1])
28 description: The index files produced by `bwa index`
33 description: The reads, in fastq format.
38 description: For mate paired reads, the second file (optional).
46 stdout: $(inputs.read_p1.path.match(/\/([^/]+)\.[^/.]+$/)[1] + ".sam")
52 glob: $(inputs.read_p1.path.match(/\/([^/]+)\.[^/.]+$/)[1] + ".sam")