-
Notifications
You must be signed in to change notification settings - Fork 0
/
cytobands.json
125 lines (124 loc) · 2.58 KB
/
cytobands.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
{
"name": "ideogram-track",
"title": {
"text": "Chromosome Ideogram",
"style": "track-title"
},
"height": 24,
"data": { "url": "external-data/cytobands.tsv" },
"transform": [{ "type": "filter", "expr": "!test(/_/, datum.chrom)" }],
"encoding": {
"x": {
"chrom": "chrom",
"pos": "chromStart",
"type": "locus",
"axis": null
},
"x2": { "chrom": "chrom", "pos": "chromEnd" }
},
"resolve": {
"scale": {
"color": "independent"
}
},
"layer": [
{
"title": "Cytoband",
"mark": "rect",
"encoding": {
"color": {
"field": "gieStain",
"type": "nominal",
"scale": {
"domain": [
"gneg",
"gpos25",
"gpos50",
"gpos75",
"gpos100",
"acen",
"stalk",
"gvar"
],
"range": [
"#f0f0f0",
"#e0e0e0",
"#d0d0d0",
"#c0c0c0",
"#a0a0a0",
"#cc4444",
"#338833",
"#000000"
]
}
},
"squeeze": {
"expr": "datum.gieStain == 'acen' ? (test(/^p/, datum.name) ? 'p' : 'q') : null",
"type": "nominal",
"scale": {
"domain": ["p", "q"],
"range": ["right", "left"]
}
}
}
},
{
"mark": {
"type": "text",
"align": "center",
"baseline": "middle",
"paddingX": 4,
"tooltip": null
},
"encoding": {
"color": {
"field": "gieStain",
"type": "nominal",
"scale": {
"domain": [
"gneg",
"gpos25",
"gpos50",
"gpos75",
"gpos100",
"acen",
"stalk",
"gvar"
],
"range": [
"black",
"black",
"black",
"black",
"black",
"black",
"white",
"white"
]
}
},
"text": {
"field": "name",
"type": "nominal"
}
}
},
{
"transform": [
{
"type": "filter",
"expr": "datum.chromStart == 0 && datum.chrom != 'chr1'"
}
],
"encoding": {
"x2": null
},
"mark": {
"type": "rule",
"color": "#a0a0a0",
"strokeDash": [3, 3],
"strokeDashOffset": 2
}
}
]
}