Skip to content

Commit b8b0073

Browse files
authored
Merge pull request #190 from msk-access/MafAnnotationWithBed
Maf annotation with bed
2 parents a708e6a + 649df9d commit b8b0073

File tree

4 files changed

+625
-30
lines changed

4 files changed

+625
-30
lines changed

variant_annotation/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@
66

77
- [snpift](https://msk-access.gitbook.io/command-line-tools-cwl/snpsift_annotate_5.0/)
88
- [vcf2maf](https://msk-access.gitbook.io/command-line-tools-cwl/vcf2maf_1.6.21/)
9+
- [maf_annotated_by_bed](https://msk-access.gitbook.io/command-line-tools-cwl/postprocessing_variant_calls/0.2.0/maf_annotated_by_bed/)
910

1011
#### Usage
1112

1213
```bash
13-
usage: variant_annotation.cwl [-h] --input_cosmicCountDB_vcf INPUT_COSMICCOUNTDB_VCF
14+
usage: variant_annotation.cwl
15+
[-h] --input_cosmicCountDB_vcf INPUT_COSMICCOUNTDB_VCF
1416
--vardict_input_vcf VARDICT_INPUT_VCF --input_cosmicprevalenceDB_vcf
1517
INPUT_COSMICPREVALENCEDB_VCF [--min_hom_vaf MIN_HOM_VAF]
16-
[--output_mafName OUTPUT_MAFNAME] [--retain_info RETAIN_INFO]
18+
[--output_vcf2mafName OUTPUT_VCF2MAFNAME] [--retain_info RETAIN_INFO]
1719
[--tumor_id TUMOR_ID] [--snpsift_countOpName SNPSIFT_COUNTOPNAME]
18-
[--snpsift_prevalOpName SNPSIFT_PREVALOPNAME]
20+
[--snpsift_prevalOpName SNPSIFT_PREVALOPNAME] --opOncoKbMafName
21+
OPONCOKBMAFNAME --oncoKbApiToken ONCOKBAPITOKEN
22+
[--oncoKbAnnotateHotspots] --input_complexity_bed INPUT_COMPLEXITY_BED
23+
--input_DUST_bed INPUT_DUST_BED
24+
[--output_DUST_filename OUTPUT_DUST_FILENAME]
25+
[--column_name_DUST COLUMN_NAME_DUST]
26+
[--output_complexity_filename OUTPUT_COMPLEXITY_FILENAME]
27+
[--column_name_complexity COLUMN_NAME_COMPLEXITY]
1928
[job_order]
2029

2130
positional arguments:
@@ -27,10 +36,19 @@ optional arguments:
2736
--vardict_input_vcf VARDICT_INPUT_VCF
2837
--input_cosmicprevalenceDB_vcf INPUT_COSMICPREVALENCEDB_VCF
2938
--min_hom_vaf MIN_HOM_VAF
30-
--output_mafName OUTPUT_MAFNAME
39+
--output_vcf2mafName OUTPUT_VCF2MAFNAME
3140
--retain_info RETAIN_INFO
3241
--tumor_id TUMOR_ID
3342
--snpsift_countOpName SNPSIFT_COUNTOPNAME
3443
--snpsift_prevalOpName SNPSIFT_PREVALOPNAME
44+
--opOncoKbMafName OPONCOKBMAFNAME
45+
--oncoKbApiToken ONCOKBAPITOKEN
46+
--oncoKbAnnotateHotspots
47+
--input_complexity_bed INPUT_COMPLEXITY_BED
48+
--input_DUST_bed INPUT_DUST_BED
49+
--output_DUST_filename OUTPUT_DUST_FILENAME
50+
--column_name_DUST COLUMN_NAME_DUST
51+
--output_complexity_filename OUTPUT_COMPLEXITY_FILENAME
52+
--column_name_complexity COLUMN_NAME_COMPLEXITY
3553
```
3654

variant_annotation/example_inputs.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@ input_cosmicprevalenceDB_vcf:
1111
/work/cch/production/resources/cosmic/versions/v96/CosmicCodingMuts_GRCh37_processed.vcf.gz
1212
snpsift_countOpName: tumorId_cosmic.vcf
1313
snpsift_prevalOpName: tumorId_preval.vcf
14-
output_mafName: tumorId_annotated.maf
14+
opOncoKbMafName: tumorId_annotated.maf
1515
retain_info: CNT,TUMOR_TYPE
1616
tumor_id: tumorId
1717
min_hom_vaf: 0
18+
column_name_mappability: mappability
19+
column_name_complexity: complexity
20+
input_mappability_bed:
21+
class: File
22+
path: /path/to/mappability_algo/bedfile.bed
23+
input_complexity_bed:
24+
class: File
25+
path: /path/to/complexity/bedfile.bed
26+
output_mappability_filename: mappability.maf
27+
output_complexity_filename: complexity.maf
28+
output_vcf2mafName: vcf2maf.maf

variant_annotation/variant_annotation.cwl

Lines changed: 108 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ inputs:
2626
type: float?
2727
'sbg:x': 416.7921447753906
2828
'sbg:y': 654.78125
29-
- id: output_mafName
29+
- id: output_vcf2mafName
3030
type: string?
3131
'sbg:x': 416.7921447753906
3232
'sbg:y': 441.1875
3333
- id: retain_info
3434
type: string?
35-
'sbg:x': 416.7921447753906
36-
'sbg:y': 227.59375
35+
'sbg:x': 407
36+
'sbg:y': 277
3737
- id: tumor_id
3838
type: string?
39-
'sbg:x': 416.7921447753906
40-
'sbg:y': 0
39+
'sbg:x': 469
40+
'sbg:y': -64
4141
- id: snpsift_countOpName
4242
type: string?
4343
'sbg:x': 16.4202823638916
@@ -46,6 +46,42 @@ inputs:
4646
type: string?
4747
'sbg:x': 214.9839324951172
4848
'sbg:y': -51.58765411376953
49+
- id: opOncoKbMafName
50+
type: string
51+
'sbg:x': 953.6817626953125
52+
'sbg:y': 129.14283752441406
53+
- id: oncoKbApiToken
54+
type: File
55+
'sbg:x': 934
56+
'sbg:y': 402
57+
- id: oncoKbAnnotateHotspots
58+
type: boolean?
59+
'sbg:x': 914.09375
60+
'sbg:y': 582.5
61+
- id: input_mappability_bed
62+
type: File
63+
'sbg:x': 1137.1201171875
64+
'sbg:y': 407.4906311035156
65+
- id: output_mappability_filename
66+
type: string?
67+
'sbg:x': 1172.9835205078125
68+
'sbg:y': 68.39226531982422
69+
- id: column_name_mappability
70+
type: string?
71+
'sbg:x': 1273.205322265625
72+
'sbg:y': 514.48193359375
73+
- id: input_complexity_bed
74+
type: File
75+
'sbg:x': 1455.4620361328125
76+
'sbg:y': 427.4315490722656
77+
- id: column_name_complexity
78+
type: string?
79+
'sbg:x': 1688.9140625
80+
'sbg:y': 449.50762939453125
81+
- id: output_complexity_filename
82+
type: string?
83+
'sbg:x': 1609.2314453125
84+
'sbg:y': 21.32272720336914
4985
outputs:
5086
- id: cosmicCount_annotatedOutput
5187
outputSource:
@@ -63,8 +99,20 @@ outputs:
6399
outputSource:
64100
- vcf2maf_v1_6_21/vcf2maf_maf
65101
type: File
66-
'sbg:x': 1113.535400390625
67-
'sbg:y': 265.8045959472656
102+
'sbg:x': 1148.8089599609375
103+
'sbg:y': 594.5475463867188
104+
- id: output_mappability_maf
105+
outputSource:
106+
- maf_annotated_by_bed_mappability/output
107+
type: File
108+
'sbg:x': 1448.455810546875
109+
'sbg:y': 54.44126510620117
110+
- id: output_complexity_maf
111+
outputSource:
112+
- maf_annotated_by_bed_lowComplexity/output
113+
type: File
114+
'sbg:x': 1815.8809814453125
115+
'sbg:y': 248.1118621826172
68116
steps:
69117
- id: snpsift_annotate_5_0
70118
in:
@@ -101,7 +149,7 @@ steps:
101149
- id: min_hom_vaf
102150
source: min_hom_vaf
103151
- id: output_maf
104-
source: output_mafName
152+
source: output_vcf2mafName
105153
- id: ref_fasta
106154
default: /.vep/homo_sapiens/105_GRCh37/Homo_sapiens.GRCh37.dna.toplevel.fa.gz
107155
- id: retain_info
@@ -115,6 +163,58 @@ steps:
115163
run: ../command_line_tools//vcf2maf_1.6.21/vcf2maf_1.6.21.cwl
116164
'sbg:x': 833.5098266601562
117165
'sbg:y': 276.9501953125
166+
- id: oncokb_annotator
167+
in:
168+
- id: inputMafFile
169+
source: vcf2maf_v1_6_21/vcf2maf_maf
170+
- id: outputMafName
171+
source: opOncoKbMafName
172+
- id: apiToken
173+
source: oncoKbApiToken
174+
- id: referenceGenome
175+
default: GRCh37
176+
- id: annotateHotspots
177+
source: oncoKbAnnotateHotspots
178+
out:
179+
- id: outputMaf
180+
run: ../command_line_tools/oncokb_annotator_3.2.2/oncokb_annotator_3-2-2.cwl
181+
label: oncokb_annotator
182+
'sbg:x': 1096.5919189453125
183+
'sbg:y': 261
184+
- id: maf_annotated_by_bed_mappability
185+
in:
186+
- id: input_maf
187+
source: oncokb_annotator/outputMaf
188+
- id: input_bed
189+
source: input_mappability_bed
190+
- id: output_filename
191+
source: output_mappability_filename
192+
- id: column_name
193+
source: column_name_mappability
194+
out:
195+
- id: output
196+
run: >-
197+
../command_line_tools/postprocessing_variant_calls/0.2.2/maf_annotated_by_bed/maf_annotated_by_bed.cwl
198+
label: maf_annotated_by_bed
199+
'sbg:x': 1317.3984375
200+
'sbg:y': 267
201+
- id: maf_annotated_by_bed_lowComplexity
202+
in:
203+
- id: input_maf
204+
source: maf_annotated_by_bed_mappability/output
205+
- id: input_bed
206+
source: input_complexity_bed
207+
- id: output_filename
208+
source: output_complexity_filename
209+
- id: column_name
210+
source: column_name_complexity
211+
out:
212+
- id: output
213+
run: >-
214+
../command_line_tools/postprocessing_variant_calls/0.2.2/maf_annotated_by_bed/maf_annotated_by_bed.cwl
215+
label: maf_annotated_by_bed
216+
'sbg:x': 1600
217+
'sbg:y': 262.8888854980469
118218
requirements: []
119219
$schemas:
120220
- 'http://schema.org/version/latest/schemaorg-current-http.rdf'

0 commit comments

Comments
 (0)