@genome-spy/app 0.73.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/AbortablePromiseCache-3gHJdF3E.js +96 -0
  2. package/dist/blosc-oa0DlI6G.js +692 -0
  3. package/dist/browser-Dvlo92rx.js +126 -0
  4. package/dist/chunk-CPXzm0be.js +11 -0
  5. package/dist/chunk-INHXZS53-fPMmEwMt.js +13 -0
  6. package/dist/esm-B8-vSu-c.js +369 -0
  7. package/dist/esm-BDFRLEuD.js +1248 -0
  8. package/dist/esm-BygJiwh0.js +573 -0
  9. package/dist/esm-CGX-qz1d.js +155 -0
  10. package/dist/esm-Cmo4qEPr.js +1015 -0
  11. package/dist/esm-CuMSzCHy.js +298 -0
  12. package/dist/esm-D-WfYOx7.js +461 -0
  13. package/dist/esm-DCCYNvaz.js +1426 -0
  14. package/dist/esm-n0auOe11.js +121 -0
  15. package/dist/index.es.js +41252 -52718
  16. package/dist/index.js +1093 -1099
  17. package/dist/lz4-jZ0zyLBa.js +626 -0
  18. package/dist/parquetRead-CJe1UPsz.js +1609 -0
  19. package/dist/schema.json +11293 -5027
  20. package/dist/style.css +2 -1
  21. package/dist/zstd-C6ksIG9r.js +583 -0
  22. package/package.json +14 -5
  23. package/dist/AbortablePromiseCache-Dj0vzLnp.js +0 -149
  24. package/dist/blosc-D1xNXZJs.js +0 -719
  25. package/dist/browser-0iNU5Wit.js +0 -138
  26. package/dist/chunk-INHXZS53-DiyuLb3Z.js +0 -14
  27. package/dist/index-BUsSzlHg.js +0 -1771
  28. package/dist/index-BYsZN7b0.js +0 -1597
  29. package/dist/index-C7wOh6y1.js +0 -657
  30. package/dist/index-CRaQAuki.js +0 -326
  31. package/dist/index-D9v1PCj9.js +0 -507
  32. package/dist/index-GDOuv_D5.js +0 -266
  33. package/dist/index-Gt44EOIH.js +0 -628
  34. package/dist/inflate-GtwLkvSP.js +0 -1048
  35. package/dist/lz4-1Ws5oVWR.js +0 -640
  36. package/dist/parquetRead-BnAGCa4_.js +0 -1663
  37. package/dist/unzip-Bac01w6X.js +0 -1492
  38. package/dist/zstd-C4EcZnjq.js +0 -603
@@ -1,507 +0,0 @@
1
- function xt(s, m) {
2
- function t() {
3
- this.constructor = s;
4
- }
5
- t.prototype = m.prototype, s.prototype = new t();
6
- }
7
- function B(s, m, t, y) {
8
- this.message = s, this.expected = m, this.found = t, this.location = y, this.name = "SyntaxError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, B);
9
- }
10
- xt(B, Error);
11
- B.buildMessage = function(s, m) {
12
- var t = {
13
- literal: function(f) {
14
- return '"' + F(f.text) + '"';
15
- },
16
- class: function(f) {
17
- var h = "", S;
18
- for (S = 0; S < f.parts.length; S++)
19
- h += f.parts[S] instanceof Array ? w(f.parts[S][0]) + "-" + w(f.parts[S][1]) : w(f.parts[S]);
20
- return "[" + (f.inverted ? "^" : "") + h + "]";
21
- },
22
- any: function(f) {
23
- return "any character";
24
- },
25
- end: function(f) {
26
- return "end of input";
27
- },
28
- other: function(f) {
29
- return f.description;
30
- }
31
- };
32
- function y(f) {
33
- return f.charCodeAt(0).toString(16).toUpperCase();
34
- }
35
- function F(f) {
36
- return f.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(h) {
37
- return "\\x0" + y(h);
38
- }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(h) {
39
- return "\\x" + y(h);
40
- });
41
- }
42
- function w(f) {
43
- return f.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(h) {
44
- return "\\x0" + y(h);
45
- }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(h) {
46
- return "\\x" + y(h);
47
- });
48
- }
49
- function p(f) {
50
- return t[f.type](f);
51
- }
52
- function k(f) {
53
- var h = new Array(f.length), S, x;
54
- for (S = 0; S < f.length; S++)
55
- h[S] = p(f[S]);
56
- if (h.sort(), h.length > 0) {
57
- for (S = 1, x = 1; S < h.length; S++)
58
- h[S - 1] !== h[S] && (h[x] = h[S], x++);
59
- h.length = x;
60
- }
61
- switch (h.length) {
62
- case 1:
63
- return h[0];
64
- case 2:
65
- return h[0] + " or " + h[1];
66
- default:
67
- return h.slice(0, -1).join(", ") + ", or " + h[h.length - 1];
68
- }
69
- }
70
- function D(f) {
71
- return f ? '"' + F(f) + '"' : "end of input";
72
- }
73
- return "Expected " + k(s) + " but " + D(m) + " found.";
74
- };
75
- function Nt(s, m) {
76
- m = m !== void 0 ? m : {};
77
- var t = {}, y = { declaration: qe }, F = qe, w = "(", p = g("(", !1), k = ")", D = g(")", !1), f = function(e, o, i, n) {
78
- return { type: e, name: o, comment: i, fields: n };
79
- }, h = "simple", S = g("simple", !1), x = "object", O = g("object", !1), I = "table", Be = g("table", !1), G = "auto", H = g("auto", !1), J = "primary", Ie = g("primary", !1), K = "index", Pe = g("index", !1), ee = "unique", Ge = g("unique", !1), M = function(e, o) {
80
- return o;
81
- }, Me = function(e, o) {
82
- return e.name && o.unshift(e), o;
83
- }, je = "#", _e = g("#", !1), U = ";", V = g(";", !1), Le = function(e, o, i) {
84
- return { type: e, name: o, comment: i };
85
- }, Oe = "[", Ue = g("[", !1), Ve = "]", Ze = g("]", !1), Qe = function(e, o, i, n) {
86
- return { type: e, size: o, name: i, comment: n };
87
- }, We = function(e, o, i, n) {
88
- return { type: e, vals: o, name: i, comment: n };
89
- }, te = ",", re = g(",", !1), Xe = function(e, o) {
90
- return o.unshift(e), o;
91
- }, oe = "int", Ye = g("int", !1), ie = "uint", He = g("uint", !1), se = "short", Je = g("short", !1), ne = "ushort", Ke = g("ushort", !1), ae = "byte", et = g("byte", !1), ce = "ubyte", tt = g("ubyte", !1), fe = "float", rt = g("float", !1), le = "char", ot = g("char", !1), ue = "string", it = g("string", !1), he = "lstring", st = g("lstring", !1), me = "enum", nt = g("enum", !1), ge = "double", at = g("double", !1), pe = "bigint", ct = g("bigint", !1), de = "set", ft = g("set", !1), lt = function(e, o) {
92
- return e + " " + o;
93
- }, ut = /^[a-zA-Z_]/, ht = P([["a", "z"], ["A", "Z"], "_"], !1, !1), be = /^[a-zA-Z0-9_]/, Se = P([["a", "z"], ["A", "Z"], ["0", "9"], "_"], !1, !1), mt = function(e) {
94
- return Ae();
95
- }, $e = /^[^\n\r]/, ye = P([`
96
- `, "\r"], !0, !1), gt = function(e) {
97
- return e.join("").replace(/^"/, "").replace(/"$/, "");
98
- }, pt = xe("integer"), Ee = /^[0-9]/, ke = P([["0", "9"]], !1, !1), dt = function() {
99
- return parseInt(Ae(), 10);
100
- }, bt = xe("whitespace"), Ce = /^[ \t\n\r]/, we = P([" ", " ", `
101
- `, "\r"], !1, !1), r = 0, $ = 0, j = [{ line: 1, column: 1 }], A = 0, Z = [], c = 0, _;
102
- if ("startRule" in m) {
103
- if (!(m.startRule in y))
104
- throw new Error(`Can't start parsing from rule "` + m.startRule + '".');
105
- F = y[m.startRule];
106
- }
107
- function Ae() {
108
- return s.substring($, r);
109
- }
110
- function g(e, o) {
111
- return { type: "literal", text: e, ignoreCase: o };
112
- }
113
- function P(e, o, i) {
114
- return {
115
- type: "class",
116
- parts: e,
117
- inverted: o,
118
- ignoreCase: i
119
- };
120
- }
121
- function St() {
122
- return { type: "end" };
123
- }
124
- function xe(e) {
125
- return { type: "other", description: e };
126
- }
127
- function Ne(e) {
128
- var o = j[e], i;
129
- if (o)
130
- return o;
131
- for (i = e - 1; !j[i]; )
132
- i--;
133
- for (o = j[i], o = {
134
- line: o.line,
135
- column: o.column
136
- }; i < e; )
137
- s.charCodeAt(i) === 10 ? (o.line++, o.column = 1) : o.column++, i++;
138
- return j[e] = o, o;
139
- }
140
- function ve(e, o) {
141
- var i = Ne(e), n = Ne(o);
142
- return {
143
- start: {
144
- offset: e,
145
- line: i.line,
146
- column: i.column
147
- },
148
- end: {
149
- offset: o,
150
- line: n.line,
151
- column: n.column
152
- }
153
- };
154
- }
155
- function l(e) {
156
- r < A || (r > A && (A = r, Z = []), Z.push(e));
157
- }
158
- function $t(e, o, i) {
159
- return new B(B.buildMessage(e, o), e, o, i);
160
- }
161
- function qe() {
162
- var e, o, i, n, a, d, b, E, R, N, T, v, z, q;
163
- return e = r, o = u(), o !== t ? (i = Fe(), i !== t ? (n = u(), n !== t ? (a = De(), a !== t ? (d = u(), d !== t ? (b = L(), b !== t ? (E = u(), E !== t ? (s.charCodeAt(r) === 40 ? (R = w, r++) : (R = t, c === 0 && l(p)), R !== t ? (N = u(), N !== t ? (T = yt(), T !== t ? (v = u(), v !== t ? (s.charCodeAt(r) === 41 ? (z = k, r++) : (z = t, c === 0 && l(D)), z !== t ? (q = u(), q !== t ? ($ = e, o = f(i, a, b, T), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e;
164
- }
165
- function Fe() {
166
- var e;
167
- return s.substr(r, 6) === h ? (e = h, r += 6) : (e = t, c === 0 && l(S)), e === t && (s.substr(r, 6) === x ? (e = x, r += 6) : (e = t, c === 0 && l(O)), e === t && (s.substr(r, 5) === I ? (e = I, r += 5) : (e = t, c === 0 && l(Be)))), e;
168
- }
169
- function De() {
170
- var e, o, i, n;
171
- return e = C(), e === t && (e = r, o = C(), o !== t ? (i = Re(), i !== t ? (o = [o, i], e = o) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = C(), o !== t ? (s.substr(r, 4) === G ? (i = G, r += 4) : (i = t, c === 0 && l(H)), i !== t ? (o = [o, i], e = o) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = C(), o !== t ? (i = Re(), i !== t ? (s.substr(r, 4) === G ? (n = G, r += 4) : (n = t, c === 0 && l(H)), n !== t ? (o = [o, i, n], e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)))), e;
172
- }
173
- function Re() {
174
- var e;
175
- return s.substr(r, 7) === J ? (e = J, r += 7) : (e = t, c === 0 && l(Ie)), e === t && (s.substr(r, 5) === K ? (e = K, r += 5) : (e = t, c === 0 && l(Pe)), e === t && (s.substr(r, 6) === ee ? (e = ee, r += 6) : (e = t, c === 0 && l(Ge)))), e;
176
- }
177
- function L() {
178
- var e;
179
- return e = Te(), e === t && (e = u()), e;
180
- }
181
- function yt() {
182
- var e, o, i, n, a, d, b;
183
- if (e = r, o = Q(), o !== t)
184
- if (i = u(), i !== t) {
185
- for (n = [], a = r, d = u(), d !== t ? (b = Q(), b !== t ? ($ = a, d = M(o, b), a = d) : (r = a, a = t)) : (r = a, a = t); a !== t; )
186
- n.push(a), a = r, d = u(), d !== t ? (b = Q(), b !== t ? ($ = a, d = M(o, b), a = d) : (r = a, a = t)) : (r = a, a = t);
187
- n !== t ? (a = u(), a !== t ? ($ = e, o = Me(o, n), e = o) : (r = e, e = t)) : (r = e, e = t);
188
- } else
189
- r = e, e = t;
190
- else
191
- r = e, e = t;
192
- return e;
193
- }
194
- function Et() {
195
- var e;
196
- return s.charCodeAt(r) === 35 ? (e = je, r++) : (e = t, c === 0 && l(_e)), e;
197
- }
198
- function kt() {
199
- var e, o, i, n, a;
200
- return e = r, o = u(), o !== t ? (i = Et(), i !== t ? (n = Te(), n !== t ? (a = u(), a !== t ? (o = [o, i, n, a], e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e;
201
- }
202
- function Q() {
203
- var e, o, i, n, a, d, b, E, R, N, T, v, z, q;
204
- return e = r, o = W(), o !== t ? (i = u(), i !== t ? (n = C(), n !== t ? (a = u(), a !== t ? (s.charCodeAt(r) === 59 ? (d = U, r++) : (d = t, c === 0 && l(V)), d !== t ? (b = u(), b !== t ? (E = L(), E !== t ? ($ = e, o = Le(o, n, E), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = u(), i !== t ? (s.charCodeAt(r) === 91 ? (n = Oe, r++) : (n = t, c === 0 && l(Ue)), n !== t ? (a = u(), a !== t ? (d = wt(), d !== t ? (b = u(), b !== t ? (s.charCodeAt(r) === 93 ? (E = Ve, r++) : (E = t, c === 0 && l(Ze)), E !== t ? (R = u(), R !== t ? (N = C(), N !== t ? (T = u(), T !== t ? (s.charCodeAt(r) === 59 ? (v = U, r++) : (v = t, c === 0 && l(V)), v !== t ? (z = u(), z !== t ? (q = L(), q !== t ? ($ = e, o = Qe(o, d, N, q), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = u(), i !== t ? (s.charCodeAt(r) === 40 ? (n = w, r++) : (n = t, c === 0 && l(p)), n !== t ? (a = u(), a !== t ? (d = Ct(), d !== t ? (b = u(), b !== t ? (s.charCodeAt(r) === 41 ? (E = k, r++) : (E = t, c === 0 && l(D)), E !== t ? (R = u(), R !== t ? (N = C(), N !== t ? (T = u(), T !== t ? (s.charCodeAt(r) === 59 ? (v = U, r++) : (v = t, c === 0 && l(V)), v !== t ? (z = u(), z !== t ? (q = L(), q !== t ? ($ = e, o = We(o, d, N, q), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = kt()))), e;
205
- }
206
- function Ct() {
207
- var e, o, i, n, a, d, b;
208
- if (e = r, o = C(), o !== t) {
209
- for (i = [], n = r, s.charCodeAt(r) === 44 ? (a = te, r++) : (a = t, c === 0 && l(re)), a !== t ? (d = u(), d !== t ? (b = C(), b !== t ? ($ = n, a = M(o, b), n = a) : (r = n, n = t)) : (r = n, n = t)) : (r = n, n = t); n !== t; )
210
- i.push(n), n = r, s.charCodeAt(r) === 44 ? (a = te, r++) : (a = t, c === 0 && l(re)), a !== t ? (d = u(), d !== t ? (b = C(), b !== t ? ($ = n, a = M(o, b), n = a) : (r = n, n = t)) : (r = n, n = t)) : (r = n, n = t);
211
- i !== t ? ($ = e, o = Xe(o, i), e = o) : (r = e, e = t);
212
- } else
213
- r = e, e = t;
214
- return e;
215
- }
216
- function W() {
217
- var e, o, i, n;
218
- return s.substr(r, 3) === oe ? (e = oe, r += 3) : (e = t, c === 0 && l(Ye)), e === t && (s.substr(r, 4) === ie ? (e = ie, r += 4) : (e = t, c === 0 && l(He)), e === t && (s.substr(r, 5) === se ? (e = se, r += 5) : (e = t, c === 0 && l(Je)), e === t && (s.substr(r, 6) === ne ? (e = ne, r += 6) : (e = t, c === 0 && l(Ke)), e === t && (s.substr(r, 4) === ae ? (e = ae, r += 4) : (e = t, c === 0 && l(et)), e === t && (s.substr(r, 5) === ce ? (e = ce, r += 5) : (e = t, c === 0 && l(tt)), e === t && (s.substr(r, 5) === fe ? (e = fe, r += 5) : (e = t, c === 0 && l(rt)), e === t && (s.substr(r, 4) === le ? (e = le, r += 4) : (e = t, c === 0 && l(ot)), e === t && (s.substr(r, 6) === ue ? (e = ue, r += 6) : (e = t, c === 0 && l(it)), e === t && (s.substr(r, 7) === he ? (e = he, r += 7) : (e = t, c === 0 && l(st)), e === t && (s.substr(r, 4) === me ? (e = me, r += 4) : (e = t, c === 0 && l(nt)), e === t && (s.substr(r, 6) === ge ? (e = ge, r += 6) : (e = t, c === 0 && l(at)), e === t && (s.substr(r, 6) === pe ? (e = pe, r += 6) : (e = t, c === 0 && l(ct)), e === t && (s.substr(r, 3) === de ? (e = de, r += 3) : (e = t, c === 0 && l(ft)), e === t && (e = r, o = Fe(), o !== t ? (i = u(), i !== t ? (n = De(), n !== t ? ($ = e, o = lt(o, n), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t))))))))))))))), e;
219
- }
220
- function wt() {
221
- var e;
222
- return e = At(), e === t && (e = C()), e;
223
- }
224
- function C() {
225
- var e, o, i, n, a;
226
- if (e = r, o = r, ut.test(s.charAt(r)) ? (i = s.charAt(r), r++) : (i = t, c === 0 && l(ht)), i !== t) {
227
- for (n = [], be.test(s.charAt(r)) ? (a = s.charAt(r), r++) : (a = t, c === 0 && l(Se)); a !== t; )
228
- n.push(a), be.test(s.charAt(r)) ? (a = s.charAt(r), r++) : (a = t, c === 0 && l(Se));
229
- n !== t ? (i = [i, n], o = i) : (r = o, o = t);
230
- } else
231
- r = o, o = t;
232
- return o !== t && ($ = e, o = mt()), e = o, e;
233
- }
234
- function Te() {
235
- var e, o, i;
236
- for (e = r, o = [], $e.test(s.charAt(r)) ? (i = s.charAt(r), r++) : (i = t, c === 0 && l(ye)); i !== t; )
237
- o.push(i), $e.test(s.charAt(r)) ? (i = s.charAt(r), r++) : (i = t, c === 0 && l(ye));
238
- return o !== t && ($ = e, o = gt(o)), e = o, e;
239
- }
240
- function At() {
241
- var e, o, i, n;
242
- if (c++, e = r, o = u(), o !== t) {
243
- if (i = [], Ee.test(s.charAt(r)) ? (n = s.charAt(r), r++) : (n = t, c === 0 && l(ke)), n !== t)
244
- for (; n !== t; )
245
- i.push(n), Ee.test(s.charAt(r)) ? (n = s.charAt(r), r++) : (n = t, c === 0 && l(ke));
246
- else
247
- i = t;
248
- i !== t ? ($ = e, o = dt(), e = o) : (r = e, e = t);
249
- } else
250
- r = e, e = t;
251
- return c--, e === t && (o = t, c === 0 && l(pt)), e;
252
- }
253
- function u() {
254
- var e, o;
255
- for (c++, e = [], Ce.test(s.charAt(r)) ? (o = s.charAt(r), r++) : (o = t, c === 0 && l(we)); o !== t; )
256
- e.push(o), Ce.test(s.charAt(r)) ? (o = s.charAt(r), r++) : (o = t, c === 0 && l(we));
257
- return c--, e === t && (o = t, c === 0 && l(bt)), e;
258
- }
259
- if (_ = F(), _ !== t && r === s.length)
260
- return _;
261
- throw _ !== t && r < s.length && l(St()), $t(Z, A < s.length ? s.charAt(A) : null, A < s.length ? ve(A, A + 1) : ve(A, A));
262
- }
263
- const ze = {
264
- SyntaxError: B,
265
- parse: Nt
266
- }, vt = `table bigChain
267
- "bigChain pairwise alignment"
268
- (
269
- string chrom; "Reference sequence chromosome or scaffold"
270
- uint chromStart; "Start position in chromosome"
271
- uint chromEnd; "End position in chromosome"
272
- string name; "Name or ID of item, ideally both human readable and unique"
273
- uint score; "Score (0-1000)"
274
- char[1] strand; "+ or - for strand"
275
- uint tSize; "size of target sequence"
276
- string qName; "name of query sequence"
277
- uint qSize; "size of query sequence"
278
- uint qStart; "start of alignment on query sequence"
279
- uint qEnd; "end of alignment on query sequence"
280
- uint chainScore; "score from chain"
281
- )`, qt = `table bigGenePred
282
- "bigGenePred gene models"
283
- (
284
- string chrom; "Reference sequence chromosome or scaffold"
285
- uint chromStart; "Start position in chromosome"
286
- uint chromEnd; "End position in chromosome"
287
- string name; "Name or ID of item, ideally both human readable and unique"
288
- uint score; "Score (0-1000)"
289
- char[1] strand; "+ or - for strand"
290
- uint thickStart; "Start of where display should be thick (start codon)"
291
- uint thickEnd; "End of where display should be thick (stop codon)"
292
- uint reserved; "RGB value (use R,G,B string in input file)"
293
- int blockCount; "Number of blocks"
294
- int[blockCount] blockSizes; "Comma separated list of block sizes"
295
- int[blockCount] chromStarts; "Start positions relative to chromStart"
296
- string name2; "Alternative/human readable name"
297
- string cdsStartStat; "Status of CDS start annotation (none, unknown, incomplete, or complete)"
298
- string cdsEndStat; "Status of CDS end annotation (none, unknown, incomplete, or complete)"
299
- int[blockCount] exonFrames; "Exon frame {0,1,2}, or -1 if no frame for exon"
300
- string type; "Transcript type"
301
- string geneName; "Primary identifier for gene"
302
- string geneName2; "Alternative/human readable gene name"
303
- string geneType; "Gene type"
304
- )`, Ft = `table interact
305
- "interaction between two regions"
306
- (
307
- string chrom; "Chromosome (or contig, scaffold, etc.). For interchromosomal, use 2 records"
308
- uint chromStart; "Start position of lower region. For interchromosomal, set to chromStart of this region"
309
- uint chromEnd; "End position of upper region. For interchromosomal, set to chromEnd of this region"
310
- string name; "Name of item, for display. Usually 'sourceName/targetName/exp' or empty"
311
- uint score; "Score (0-1000)"
312
- double value; "Strength of interaction or other data value. Typically basis for score"
313
- string exp; "Experiment name (metadata for filtering). Use . if not applicable"
314
- string color; "Item color. Specified as r,g,b or hexadecimal #RRGGBB or html color name, as in //www.w3.org/TR/css3-color/#html4. Use 0 and spectrum setting to shade by score"
315
- string sourceChrom; "Chromosome of source region (directional) or lower region. For non-directional interchromosomal, chrom of this region."
316
- uint sourceStart; "Start position in chromosome of source/lower/this region"
317
- uint sourceEnd; "End position in chromosome of source/lower/this region"
318
- string sourceName; "Identifier of source/lower/this region"
319
- string sourceStrand; "Orientation of source/lower/this region: + or -. Use . if not applicable"
320
- string targetChrom; "Chromosome of target region (directional) or upper region. For non-directional interchromosomal, chrom of other region"
321
- uint targetStart; "Start position in chromosome of target/upper/this region"
322
- uint targetEnd; "End position in chromosome of target/upper/this region"
323
- string targetName; "Identifier of target/upper/this region"
324
- string targetStrand; "Orientation of target/upper/this region: + or -. Use . if not applicable"
325
-
326
- )`, Dt = `table bigLink
327
- "bigLink pairwise alignment"
328
- (
329
- string chrom; "Reference sequence chromosome or scaffold"
330
- uint chromStart; "Start position in chromosome"
331
- uint chromEnd; "End position in chromosome"
332
- string name; "Name or ID of item, ideally both human readable and unique"
333
- uint qStart; "start of alignment on query sequence"
334
- )`, Rt = `table bedMaf
335
- "Bed3 with MAF block"
336
- (
337
- string chrom; "Reference sequence chromosome or scaffold"
338
- uint chromStart; "Start position in chromosome"
339
- uint chromEnd; "End position in chromosome"
340
- lstring mafBlock; "MAF block"
341
- )`, Tt = `table bigNarrowPeak
342
- "BED6+4 Peaks of signal enrichment based on pooled, normalized (interpreted) data."
343
- (
344
- string chrom; "Reference sequence chromosome or scaffold"
345
- uint chromStart; "Start position in chromosome"
346
- uint chromEnd; "End position in chromosome"
347
- string name; "Name given to a region (preferably unique). Use . if no name is assigned"
348
- uint score; "Indicates how dark the peak will be displayed in the browser (0-1000) "
349
- char[1] strand; "+ or - or . for unknown"
350
- float signalValue; "Measurement of average enrichment for the region"
351
- float pValue; "Statistical significance of signal value (-log10). Set to -1 if not used."
352
- float qValue; "Statistical significance with multiple-test correction applied (FDR -log10). Set to -1 if not used."
353
- int peak; "Point-source called for this peak; 0-based offset from chromStart. Set to -1 if no point-source called."
354
- )`, zt = `table bigPsl
355
- "bigPsl pairwise alignment"
356
- (
357
- string chrom; "Reference sequence chromosome or scaffold"
358
- uint chromStart; "Start position in chromosome"
359
- uint chromEnd; "End position in chromosome"
360
- string name; "Name or ID of item, ideally both human readable and unique"
361
- uint score; "Score (0-1000)"
362
- char[1] strand; "+ or - indicates whether the query aligns to the + or - strand on the reference"
363
- uint thickStart; "Start of where display should be thick (start codon)"
364
- uint thickEnd; "End of where display should be thick (stop codon)"
365
- uint reserved; "RGB value (use R,G,B string in input file)"
366
- int blockCount; "Number of blocks"
367
- int[blockCount] blockSizes; "Comma separated list of block sizes"
368
- int[blockCount] chromStarts; "Start positions relative to chromStart"
369
-
370
- uint oChromStart;"Start position in other chromosome"
371
- uint oChromEnd; "End position in other chromosome"
372
- char[1] oStrand; "+ or -, - means that psl was reversed into BED-compatible coordinates"
373
- uint oChromSize; "Size of other chromosome."
374
- int[blockCount] oChromStarts; "Start positions relative to oChromStart or from oChromStart+oChromSize depending on strand"
375
-
376
- lstring oSequence; "Sequence on other chrom (or empty)"
377
- string oCDS; "CDS in NCBI format"
378
-
379
- uint chromSize;"Size of target chromosome"
380
-
381
- uint match; "Number of bases matched."
382
- uint misMatch; " Number of bases that don't match "
383
- uint repMatch; " Number of bases that match but are part of repeats "
384
- uint nCount; " Number of 'N' bases "
385
- uint seqType; "0=empty, 1=nucleotide, 2=amino_acid"
386
- )`, Bt = `table defaultBedSchema
387
- "BED12"
388
- (
389
- string chrom; "The name of the chromosome (e.g. chr3, chrY, chr2_random) or scaffold (e.g. scaffold10671)."
390
- uint chromStart; "The starting position of the feature in the chromosome or scaffold. The first base in a chromosome is numbered 0."
391
- uint chromEnd; "The ending position of the feature in the chromosome or scaffold. The chromEnd base is not included in the display of the feature. For example, the first 100 bases of a chromosome are defined as chromStart=0, chromEnd=100, and span the bases numbered 0-99."
392
- string name; "Defines the name of the BED line."
393
- float score; "Feature score, doesn't care about the 0-1000 limit as in bed"
394
- char strand; "Defines the strand. Either '.' (=no strand) or '+' or '-'"
395
- uint thickStart; "The starting position at which the feature is drawn thickly (for example, the start codon in gene displays). When there is no thick part, thickStart and thickEnd are usually set to the chromStart position."
396
- uint thickEnd; "The ending position at which the feature is drawn thickly (for example the stop codon in gene displays)."
397
- string itemRgb; "An RGB value of the form R,G,B (e.g. 255,0,0). "
398
- uint blockCount; " The number of blocks (exons) in the BED line."
399
- uint[blockCount] blockSizes; " A comma-separated list of the block sizes. The number of items in this list should correspond to blockCount."
400
- uint[blockCount] blockStarts; "A comma-separated list of block starts. All of the blockStart positions should be calculated relative to chromStart. The number of items in this list should correspond to blockCount."
401
- )`, It = `table mafFrames
402
- "codon frame assignment for MAF components"
403
- (
404
- string chrom; "Reference sequence chromosome or scaffold"
405
- uint chromStart; "Start range in chromosome"
406
- uint chromEnd; "End range in chromosome"
407
- string src; "Name of sequence source in MAF"
408
- ubyte frame; "frame (0,1,2) for first base(+) or last bast(-)"
409
- char[1] strand; "+ or -"
410
- string name; "Name of gene used to define frame"
411
- int prevFramePos; "target position of the previous base (in transcription direction) that continues this frame, or -1 if none, or frame not contiguous"
412
- int nextFramePos; "target position of the next base (in transcription direction) that continues this frame, or -1 if none, or frame not contiguous"
413
- ubyte isExonStart; "does this start the CDS portion of an exon?"
414
- ubyte isExonEnd; "does this end the CDS portion of an exon?"
415
- )`, Pt = `table mafSummary
416
- "Positions and scores for alignment blocks"
417
- (
418
- string chrom; "Reference sequence chromosome or scaffold"
419
- uint chromStart; "Start position in chromosome"
420
- uint chromEnd; "End position in chromosome"
421
- string src; "Sequence name or database of alignment"
422
- float score; "Floating point score."
423
- char[1] leftStatus; "Gap/break annotation for preceding block"
424
- char[1] rightStatus; "Gap/break annotation for following block"
425
- )`, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
426
- __proto__: null,
427
- bigChain: vt,
428
- bigGenePred: qt,
429
- bigInteract: Ft,
430
- bigLink: Dt,
431
- bigMaf: Rt,
432
- bigNarrowPeak: Tt,
433
- bigPsl: zt,
434
- defaultBedSchema: Bt,
435
- mafFrames: It,
436
- mafSummary: Pt
437
- }, Symbol.toStringTag, { value: "Module" })), X = Object.fromEntries(Object.entries(Gt).map(([s, m]) => [
438
- s,
439
- // @ts-expect-error
440
- ze.parse(m.trim())
441
- ]));
442
- function Y(s) {
443
- const m = /* @__PURE__ */ new Set(["uint", "int", "float", "long"]);
444
- return {
445
- ...s,
446
- fields: s.fields.map((t) => ({
447
- ...t,
448
- isArray: t.size && t.type !== "char",
449
- arrayIsNumeric: t.size && m.has(t.type),
450
- isNumeric: !t.size && m.has(t.type)
451
- })).filter((t) => !!t.name)
452
- };
453
- }
454
- const Mt = { ".": 0, "-": -1, "+": 1 };
455
- function jt(s) {
456
- return s.length >= 12 && !Number.isNaN(Number.parseInt(s[9], 10)) && s[10]?.split(",").filter((m) => !!m).length === Number.parseInt(s[9], 10);
457
- }
458
- class _t {
459
- constructor(m = {}) {
460
- if (m.autoSql)
461
- this.autoSql = Y(
462
- // @ts-expect-error
463
- ze.parse(m.autoSql)
464
- );
465
- else if (m.type) {
466
- if (!X[m.type])
467
- throw new Error("Type not found");
468
- this.autoSql = Y(X[m.type]);
469
- } else
470
- this.autoSql = Y(X.defaultBedSchema), this.attemptDefaultBed = !0;
471
- }
472
- /*
473
- * parses a line of text as a BED line with the loaded autoSql schema
474
- *
475
- * @param line - a BED line as tab delimited text or array
476
- * @param opts - supply opts.uniqueId
477
- * @return a object representing a feature
478
- */
479
- parseLine(m, t = {}) {
480
- const { autoSql: y } = this, { uniqueId: F } = t, w = Array.isArray(m) ? m : m.split(" ");
481
- let p = {};
482
- if (!this.attemptDefaultBed || // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
483
- this.attemptDefaultBed && jt(w))
484
- for (let k = 0; k < y.fields.length; k++) {
485
- const D = y.fields[k];
486
- let f = w[k];
487
- const { isNumeric: h, isArray: S, arrayIsNumeric: x, name: O } = D;
488
- if (f == null)
489
- break;
490
- if (f !== ".") {
491
- if (h) {
492
- const I = Number(f);
493
- f = Number.isNaN(I) ? f : I;
494
- } else S && (f = f.split(","), f.at(-1) === "" && f.pop(), x && (f = f.map(Number)));
495
- p[O] = f;
496
- }
497
- }
498
- else {
499
- const k = ["chrom", "chromStart", "chromEnd", "name"];
500
- p = Object.fromEntries(w.map((D, f) => [k[f] || "field" + f, D])), p.chromStart = +p.chromStart, p.chromEnd = +p.chromEnd, Number.isNaN(Number.parseFloat(p.field4)) || (p.score = +p.field4, delete p.field4), (p.field5 === "+" || p.field5 === "-") && (p.strand = p.field5, delete p.field5);
501
- }
502
- return F && (p.uniqueId = F), p.strand = Mt[p.strand] || 0, p.chrom = decodeURIComponent(p.chrom), p;
503
- }
504
- }
505
- export {
506
- _t as default
507
- };