forked from genome/analysis-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
align.cwl
38 lines (37 loc) · 917 Bytes
/
align.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
label: 'Unaligned to aligned BAM'
requirements:
- class: ScatterFeatureRequirement
- class: SubworkflowFeatureRequirement
- class: MultipleInputFeatureRequirement
inputs:
bam:
type: File
reference:
type: File
secondaryFiles: [.fai, .bwt, .sa, .ann, .amb, .pac, .alt]
readgroup:
type: string
outputs:
tagged_bam:
type: File
outputSource: align_and_tag/aligned_bam
steps:
revert_to_fastq:
run: revert_to_fastq.cwl
in:
bam: bam
out:
[fastq, second_end_fastq]
align_and_tag:
run: align_and_tag.cwl
in:
in:
readgroup: readgroup
reference: reference
fastq: revert_to_fastq/fastq
fastq2: revert_to_fastq/second_end_fastq
out:
[aligned_bam]