-
Notifications
You must be signed in to change notification settings - Fork 58
/
vcf_readcount_annotator.cwl
48 lines (47 loc) · 1.34 KB
/
vcf_readcount_annotator.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
label: "Add snv and indel bam-readcount files to a vcf"
requirements:
- class: SubworkflowFeatureRequirement
inputs:
vcf:
type: File
secondaryFiles: [.tbi]
snv_bam_readcount_tsv:
type: File
indel_bam_readcount_tsv:
type: File
data_type:
type:
- type: enum
symbols: ["DNA", "RNA"]
sample_name:
type: string
outputs:
annotated_bam_readcount_vcf:
type: File
outputSource: add_indel_bam_readcount_to_vcf/annotated_bam_readcount_vcf
steps:
add_snv_bam_readcount_to_vcf:
run: ../tools/vcf_readcount_annotator.cwl
in:
vcf: vcf
bam_readcount_tsv: snv_bam_readcount_tsv
data_type: data_type
sample_name: sample_name
variant_type:
default: 'snv'
out:
[annotated_bam_readcount_vcf]
add_indel_bam_readcount_to_vcf:
run: ../tools/vcf_readcount_annotator.cwl
in:
vcf: add_snv_bam_readcount_to_vcf/annotated_bam_readcount_vcf
bam_readcount_tsv: indel_bam_readcount_tsv
data_type: data_type
sample_name: sample_name
variant_type:
default: 'indel'
out:
[annotated_bam_readcount_vcf]