|
1 | 1 | { |
2 | | - "config": { "view": { "continuousWidth": 300, "continuousHeight": 300 } }, |
| 2 | + "config": { |
| 3 | + "view": { |
| 4 | + "continuousWidth": 300, |
| 5 | + "continuousHeight": 300 |
| 6 | + } |
| 7 | + }, |
3 | 8 | "vconcat": [ |
4 | 9 | { |
5 | | - "data": { "name": "data-a1ad66d96417cbab667365597f608ba0" }, |
6 | | - "mark": { "type": "tick", "thickness": 4 }, |
| 10 | + "data": { |
| 11 | + "name": "data-a1ad66d96417cbab667365597f608ba0" |
| 12 | + }, |
| 13 | + "mark": { |
| 14 | + "type": "tick", |
| 15 | + "thickness": 4 |
| 16 | + }, |
7 | 17 | "encoding": { |
8 | 18 | "color": { |
9 | 19 | "field": "effect_bin", |
|
16 | 26 | }, |
17 | 27 | "opacity": { |
18 | 28 | "field": "samples", |
19 | | - "scale": { "range": [0.35, 1] }, |
| 29 | + "scale": { |
| 30 | + "range": [0.35, 1] |
| 31 | + }, |
20 | 32 | "title": "Samples", |
21 | 33 | "type": "quantitative" |
22 | 34 | }, |
23 | 35 | "size": { |
24 | 36 | "field": "af_range", |
25 | | - "scale": { "range": [6, 28] }, |
| 37 | + "scale": { |
| 38 | + "range": [6, 28] |
| 39 | + }, |
26 | 40 | "title": "AF range (max-min)", |
27 | 41 | "type": "quantitative" |
28 | 42 | }, |
29 | 43 | "tooltip": [ |
30 | | - { "field": "var_id", "type": "nominal" }, |
31 | | - { "field": "chr", "type": "nominal" }, |
32 | | - { "field": "genome_pos", "type": "quantitative" }, |
33 | | - { "field": "ref", "type": "nominal" }, |
34 | | - { "field": "alt", "type": "nominal" }, |
35 | | - { "field": "product", "type": "nominal" }, |
36 | | - { "field": "gene", "type": "nominal" }, |
37 | | - { "field": "effect_bin", "type": "nominal" }, |
38 | | - { "field": "samples", "type": "quantitative" }, |
39 | | - { "field": "af", "type": "quantitative" }, |
40 | | - { "field": "af_min", "type": "quantitative" }, |
41 | | - { "field": "af_max", "type": "quantitative" }, |
42 | | - { "field": "ref_codon", "type": "nominal" }, |
43 | | - { "field": "new_codon", "type": "nominal" }, |
44 | | - { "field": "ref_aa", "type": "nominal" }, |
45 | | - { "field": "new_aa", "type": "nominal" } |
| 44 | + { |
| 45 | + "field": "var_id", |
| 46 | + "type": "nominal" |
| 47 | + }, |
| 48 | + { |
| 49 | + "field": "chr", |
| 50 | + "type": "nominal" |
| 51 | + }, |
| 52 | + { |
| 53 | + "field": "genome_pos", |
| 54 | + "type": "quantitative" |
| 55 | + }, |
| 56 | + { |
| 57 | + "field": "ref", |
| 58 | + "type": "nominal" |
| 59 | + }, |
| 60 | + { |
| 61 | + "field": "alt", |
| 62 | + "type": "nominal" |
| 63 | + }, |
| 64 | + { |
| 65 | + "field": "product", |
| 66 | + "type": "nominal" |
| 67 | + }, |
| 68 | + { |
| 69 | + "field": "gene", |
| 70 | + "type": "nominal" |
| 71 | + }, |
| 72 | + { |
| 73 | + "field": "effect_bin", |
| 74 | + "type": "nominal" |
| 75 | + }, |
| 76 | + { |
| 77 | + "field": "samples", |
| 78 | + "type": "quantitative" |
| 79 | + }, |
| 80 | + { |
| 81 | + "field": "af", |
| 82 | + "type": "quantitative" |
| 83 | + }, |
| 84 | + { |
| 85 | + "field": "af_min", |
| 86 | + "type": "quantitative" |
| 87 | + }, |
| 88 | + { |
| 89 | + "field": "af_max", |
| 90 | + "type": "quantitative" |
| 91 | + }, |
| 92 | + { |
| 93 | + "field": "ref_codon", |
| 94 | + "type": "nominal" |
| 95 | + }, |
| 96 | + { |
| 97 | + "field": "new_codon", |
| 98 | + "type": "nominal" |
| 99 | + }, |
| 100 | + { |
| 101 | + "field": "ref_aa", |
| 102 | + "type": "nominal" |
| 103 | + }, |
| 104 | + { |
| 105 | + "field": "new_aa", |
| 106 | + "type": "nominal" |
| 107 | + } |
46 | 108 | ], |
47 | 109 | "x": { |
48 | 110 | "field": "genome_pos", |
|
64 | 126 | { |
65 | 127 | "layer": [ |
66 | 128 | { |
67 | | - "mark": { "type": "rect" }, |
| 129 | + "mark": { |
| 130 | + "type": "rect" |
| 131 | + }, |
68 | 132 | "encoding": { |
69 | 133 | "color": { |
70 | 134 | "field": "aa_label", |
71 | 135 | "title": "Amino acid", |
72 | 136 | "type": "nominal" |
73 | 137 | }, |
74 | 138 | "tooltip": [ |
75 | | - { "field": "CHROM", "type": "nominal" }, |
76 | | - { "field": "product", "type": "nominal" }, |
77 | | - { "field": "gene", "type": "nominal" }, |
78 | | - { "field": "genome_pos", "type": "quantitative" }, |
79 | | - { "field": "cds_nt_index", "type": "quantitative" }, |
80 | | - { "field": "codon_index", "type": "quantitative" }, |
81 | | - { "field": "codon_pos", "type": "quantitative" }, |
82 | | - { "field": "codon", "type": "nominal" }, |
83 | | - { "field": "aa_label", "type": "nominal" }, |
84 | | - { "field": "base", "type": "nominal" } |
| 139 | + { |
| 140 | + "field": "CHROM", |
| 141 | + "type": "nominal" |
| 142 | + }, |
| 143 | + { |
| 144 | + "field": "product", |
| 145 | + "type": "nominal" |
| 146 | + }, |
| 147 | + { |
| 148 | + "field": "gene", |
| 149 | + "type": "nominal" |
| 150 | + }, |
| 151 | + { |
| 152 | + "field": "genome_pos", |
| 153 | + "type": "quantitative" |
| 154 | + }, |
| 155 | + { |
| 156 | + "field": "cds_nt_index", |
| 157 | + "type": "quantitative" |
| 158 | + }, |
| 159 | + { |
| 160 | + "field": "codon_index", |
| 161 | + "type": "quantitative" |
| 162 | + }, |
| 163 | + { |
| 164 | + "field": "codon_pos", |
| 165 | + "type": "quantitative" |
| 166 | + }, |
| 167 | + { |
| 168 | + "field": "codon", |
| 169 | + "type": "nominal" |
| 170 | + }, |
| 171 | + { |
| 172 | + "field": "aa_label", |
| 173 | + "type": "nominal" |
| 174 | + }, |
| 175 | + { |
| 176 | + "field": "base", |
| 177 | + "type": "nominal" |
| 178 | + } |
85 | 179 | ], |
86 | 180 | "x": { |
87 | 181 | "field": "genome_pos", |
88 | 182 | "title": "Genome position (1-based)", |
89 | 183 | "type": "quantitative" |
90 | 184 | }, |
91 | | - "x2": { "field": "x2" }, |
| 185 | + "x2": { |
| 186 | + "field": "x2" |
| 187 | + }, |
92 | 188 | "y": { |
93 | 189 | "field": "product", |
94 | 190 | "sort": [ |
|
117 | 213 | "strokeWidth": 1 |
118 | 214 | }, |
119 | 215 | "encoding": { |
120 | | - "text": { "field": "base", "type": "nominal" }, |
121 | | - "x": { "field": "x_mid", "type": "quantitative" }, |
| 216 | + "text": { |
| 217 | + "field": "base", |
| 218 | + "type": "nominal" |
| 219 | + }, |
| 220 | + "x": { |
| 221 | + "field": "x_mid", |
| 222 | + "type": "quantitative" |
| 223 | + }, |
122 | 224 | "y": { |
123 | 225 | "field": "product", |
124 | 226 | "sort": [ |
|
136 | 238 | } |
137 | 239 | } |
138 | 240 | ], |
139 | | - "data": { "name": "data-8fb1d001c9584e6ee761d2bf63274f5c" }, |
| 241 | + "data": { |
| 242 | + "name": "data-8fb1d001c9584e6ee761d2bf63274f5c" |
| 243 | + }, |
140 | 244 | "height": 144, |
141 | 245 | "title": "Per-nucleotide amino acid context by product (centered nucleotide labels)", |
142 | 246 | "width": 756 |
|
145 | 249 | "params": [ |
146 | 250 | { |
147 | 251 | "name": "param_2", |
148 | | - "select": { "type": "interval", "encodings": ["x", "y"] }, |
| 252 | + "select": { |
| 253 | + "type": "interval", |
| 254 | + "encodings": ["x", "y"] |
| 255 | + }, |
149 | 256 | "bind": "scales", |
150 | 257 | "views": ["view_6"] |
151 | 258 | }, |
152 | 259 | { |
153 | 260 | "name": "xzoom", |
154 | | - "select": { "type": "interval", "encodings": ["x"] }, |
| 261 | + "select": { |
| 262 | + "type": "interval", |
| 263 | + "encodings": ["x"] |
| 264 | + }, |
155 | 265 | "bind": "scales", |
156 | 266 | "views": ["view_5", "view_6"] |
157 | 267 | } |
158 | 268 | ], |
159 | | - "resolve": { "scale": { "color": "independent", "x": "shared" } }, |
| 269 | + "resolve": { |
| 270 | + "scale": { |
| 271 | + "color": "independent", |
| 272 | + "x": "shared" |
| 273 | + } |
| 274 | + }, |
160 | 275 | "spacing": 6, |
161 | | - "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json", |
| 276 | + "$schema": "https://vega.github.io/schema/vega-lite/v6.json", |
162 | 277 | "datasets": { |
163 | 278 | "data-a1ad66d96417cbab667365597f608ba0": [ |
164 | 279 | { |
|
0 commit comments