-
Notifications
You must be signed in to change notification settings - Fork 0
/
short-variants.json
134 lines (127 loc) · 2.8 KB
/
short-variants.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"$schema": "https://unpkg.com/@genome-spy/core/dist/schema.json",
"title": "Short variants",
"name": "mutations",
"baseUrl": "decider-data/",
"configurableVisibility": true,
"params": [
{
"name": "minPointDiameter",
"value": 0,
"bind": {
"input": "range",
"min": 0.0,
"max": 10,
"name": "Minimum point diameter",
"description": "Specifies how small the variants can become when squeezed in the bird's-eye-view."
}
},
{
"name": "semanticZoomSlider",
"value": 0.015,
"bind": {
"input": "range",
"min": 0.0,
"max": 0.15,
"step": 0.001,
"name": "Semantic zoom fraction",
"description": "The portion of mutations to show at each zoom level. Only those with the highest CADD score are shown."
}
}
],
"mark": {
"type": "point",
"stroke": "black",
"fillGradientStrength": 0.3,
"semanticZoomFraction": { "expr": "semanticZoomSlider" }
},
"data": {
"url": ["patient1.tsv", "patient2.tsv", "patient3.tsv"],
"format": {
"type": "tsv",
"parse": {
"POS": "number",
"CADD_phred": "number"
}
}
},
"transform": [
{
"type": "regexFold",
"columnRegex": "^(.*)\\.AF$",
"asValue": "VAF",
"asKey": "sample"
},
{ "type": "formula", "expr": "+datum.VAF", "as": "VAF" },
{ "type": "filter", "expr": "datum.VAF >= 0.02" }
],
"encoding": {
"sample": { "field": "sample" },
"x": {
"chrom": "CHROM",
"pos": "POS",
"type": "locus",
"offset": 1
},
"color": {
"type": "nominal",
"field": "Func",
"scale": {
"domain": [
"stopgain",
"stoploss",
"frameshift_indel",
"missense",
"splicing",
"inframe_indel",
"synonymous",
"genic_other",
"ncRNA",
"intergenic"
],
"range": [
"#e31a1c",
"#ff7f00",
"#6a3d9a",
"#1f78b4",
"#b2df8a",
"#cab2d6",
"#33a02c",
"#a6cee3",
"#fdbf6f",
"#c0c0c0"
]
}
},
"size": {
"field": "VAF",
"type": "quantitative",
"scale": {
"domain": [0, 1],
"range": [
{ "expr": "0" },
{
"expr": "clamp(pow(height * 0.64, 2), pow(minPointDiameter, 2), 350)"
}
]
}
},
"shape": {
"expr": "datum.FILTER == 'PASS'",
"type": "nominal",
"scale": {
"domain": [true, false],
"range": ["circle", "cross"]
}
},
"semanticScore": {
"field": "CADD_phred"
},
"strokeOpacity": {
"value": 0.65
},
"strokeWidth": {
"value": 0.8
}
}
}