@databio/gtars 0.7.0 → 0.8.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.
- package/gtars_js.d.ts +310 -14
- package/gtars_js.js +912 -37
- package/gtars_js_bg.wasm +0 -0
- package/package.json +1 -1
package/gtars_js.js
CHANGED
|
@@ -143,6 +143,247 @@ export class ChromosomeStatistics {
|
|
|
143
143
|
}
|
|
144
144
|
if (Symbol.dispose) ChromosomeStatistics.prototype[Symbol.dispose] = ChromosomeStatistics.prototype.free;
|
|
145
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Builder for computing consensus regions from multiple RegionSet objects.
|
|
148
|
+
*
|
|
149
|
+
* Usage from JS:
|
|
150
|
+
* ```js
|
|
151
|
+
* const cb = new ConsensusBuilder();
|
|
152
|
+
* cb.add(rs1);
|
|
153
|
+
* cb.add(rs2);
|
|
154
|
+
* cb.add(rs3);
|
|
155
|
+
* const result = cb.compute(); // [{chr, start, end, count}, ...]
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
export class ConsensusBuilder {
|
|
159
|
+
__destroy_into_raw() {
|
|
160
|
+
const ptr = this.__wbg_ptr;
|
|
161
|
+
this.__wbg_ptr = 0;
|
|
162
|
+
ConsensusBuilderFinalization.unregister(this);
|
|
163
|
+
return ptr;
|
|
164
|
+
}
|
|
165
|
+
free() {
|
|
166
|
+
const ptr = this.__destroy_into_raw();
|
|
167
|
+
wasm.__wbg_consensusbuilder_free(ptr, 0);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @param {RegionSet} set
|
|
171
|
+
*/
|
|
172
|
+
add(set) {
|
|
173
|
+
_assertClass(set, RegionSet);
|
|
174
|
+
wasm.consensusbuilder_add(this.__wbg_ptr, set.__wbg_ptr);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @returns {any}
|
|
178
|
+
*/
|
|
179
|
+
compute() {
|
|
180
|
+
const ret = wasm.consensusbuilder_compute(this.__wbg_ptr);
|
|
181
|
+
if (ret[2]) {
|
|
182
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
183
|
+
}
|
|
184
|
+
return takeFromExternrefTable0(ret[0]);
|
|
185
|
+
}
|
|
186
|
+
constructor() {
|
|
187
|
+
const ret = wasm.consensusbuilder_new();
|
|
188
|
+
this.__wbg_ptr = ret >>> 0;
|
|
189
|
+
ConsensusBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
190
|
+
return this;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (Symbol.dispose) ConsensusBuilder.prototype[Symbol.dispose] = ConsensusBuilder.prototype.free;
|
|
194
|
+
|
|
195
|
+
export class GeneModel {
|
|
196
|
+
static __wrap(ptr) {
|
|
197
|
+
ptr = ptr >>> 0;
|
|
198
|
+
const obj = Object.create(GeneModel.prototype);
|
|
199
|
+
obj.__wbg_ptr = ptr;
|
|
200
|
+
GeneModelFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
201
|
+
return obj;
|
|
202
|
+
}
|
|
203
|
+
__destroy_into_raw() {
|
|
204
|
+
const ptr = this.__wbg_ptr;
|
|
205
|
+
this.__wbg_ptr = 0;
|
|
206
|
+
GeneModelFinalization.unregister(this);
|
|
207
|
+
return ptr;
|
|
208
|
+
}
|
|
209
|
+
free() {
|
|
210
|
+
const ptr = this.__destroy_into_raw();
|
|
211
|
+
wasm.__wbg_genemodel_free(ptr, 0);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Construct a GeneModel from JS arrays of region tuples.
|
|
215
|
+
*
|
|
216
|
+
* Each array contains `[chr, start, end]` or `[chr, start, end, strand]` tuples.
|
|
217
|
+
* `threeUtr` and `fiveUtr` are optional (pass `null`/`undefined`).
|
|
218
|
+
* @param {any} genes
|
|
219
|
+
* @param {any} exons
|
|
220
|
+
* @param {any} three_utr
|
|
221
|
+
* @param {any} five_utr
|
|
222
|
+
*/
|
|
223
|
+
constructor(genes, exons, three_utr, five_utr) {
|
|
224
|
+
const ret = wasm.genemodel_new(genes, exons, three_utr, five_utr);
|
|
225
|
+
if (ret[2]) {
|
|
226
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
227
|
+
}
|
|
228
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
229
|
+
GeneModelFinalization.register(this, this.__wbg_ptr, this);
|
|
230
|
+
return this;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (Symbol.dispose) GeneModel.prototype[Symbol.dispose] = GeneModel.prototype.free;
|
|
234
|
+
|
|
235
|
+
export class GenomicDistAnnotation {
|
|
236
|
+
static __wrap(ptr) {
|
|
237
|
+
ptr = ptr >>> 0;
|
|
238
|
+
const obj = Object.create(GenomicDistAnnotation.prototype);
|
|
239
|
+
obj.__wbg_ptr = ptr;
|
|
240
|
+
GenomicDistAnnotationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
241
|
+
return obj;
|
|
242
|
+
}
|
|
243
|
+
__destroy_into_raw() {
|
|
244
|
+
const ptr = this.__wbg_ptr;
|
|
245
|
+
this.__wbg_ptr = 0;
|
|
246
|
+
GenomicDistAnnotationFinalization.unregister(this);
|
|
247
|
+
return ptr;
|
|
248
|
+
}
|
|
249
|
+
free() {
|
|
250
|
+
const ptr = this.__destroy_into_raw();
|
|
251
|
+
wasm.__wbg_genomicdistannotation_free(ptr, 0);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Load a GenomicDistAnnotation from GDA binary bytes.
|
|
255
|
+
* @param {Uint8Array} bytes
|
|
256
|
+
* @returns {GenomicDistAnnotation}
|
|
257
|
+
*/
|
|
258
|
+
static fromBin(bytes) {
|
|
259
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
260
|
+
const len0 = WASM_VECTOR_LEN;
|
|
261
|
+
const ret = wasm.genomicdistannotation_fromBin(ptr0, len0);
|
|
262
|
+
if (ret[2]) {
|
|
263
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
264
|
+
}
|
|
265
|
+
return GenomicDistAnnotation.__wrap(ret[0]);
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Get the gene model as a JsGeneModel.
|
|
269
|
+
*
|
|
270
|
+
* Note: this clones the gene model data since WASM ownership requires it.
|
|
271
|
+
* @returns {GeneModel}
|
|
272
|
+
*/
|
|
273
|
+
geneModel() {
|
|
274
|
+
const ret = wasm.genomicdistannotation_geneModel(this.__wbg_ptr);
|
|
275
|
+
return GeneModel.__wrap(ret);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Build a PartitionList from the gene model and provided chrom sizes.
|
|
279
|
+
*
|
|
280
|
+
* `chrom_sizes` should be a JS object like `{"chr1": 249250621, ...}`.
|
|
281
|
+
* @param {number} core_prom_size
|
|
282
|
+
* @param {number} prox_prom_size
|
|
283
|
+
* @param {any} chrom_sizes
|
|
284
|
+
* @returns {PartitionList}
|
|
285
|
+
*/
|
|
286
|
+
partitionList(core_prom_size, prox_prom_size, chrom_sizes) {
|
|
287
|
+
const ret = wasm.genomicdistannotation_partitionList(this.__wbg_ptr, core_prom_size, prox_prom_size, chrom_sizes);
|
|
288
|
+
if (ret[2]) {
|
|
289
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
290
|
+
}
|
|
291
|
+
return PartitionList.__wrap(ret[0]);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Derive a TssIndex from gene starts + strand.
|
|
295
|
+
*
|
|
296
|
+
* Plus/Unstranded genes → TSS at start, Minus genes → TSS at end.
|
|
297
|
+
* @returns {TssIndex}
|
|
298
|
+
*/
|
|
299
|
+
tssIndex() {
|
|
300
|
+
const ret = wasm.genomicdistannotation_tssIndex(this.__wbg_ptr);
|
|
301
|
+
if (ret[2]) {
|
|
302
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
303
|
+
}
|
|
304
|
+
return TssIndex.__wrap(ret[0]);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (Symbol.dispose) GenomicDistAnnotation.prototype[Symbol.dispose] = GenomicDistAnnotation.prototype.free;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* A LOLA region database for enrichment testing.
|
|
311
|
+
*
|
|
312
|
+
* Built in-memory from region data — no filesystem needed.
|
|
313
|
+
*/
|
|
314
|
+
export class LolaRegionDB {
|
|
315
|
+
__destroy_into_raw() {
|
|
316
|
+
const ptr = this.__wbg_ptr;
|
|
317
|
+
this.__wbg_ptr = 0;
|
|
318
|
+
LolaRegionDBFinalization.unregister(this);
|
|
319
|
+
return ptr;
|
|
320
|
+
}
|
|
321
|
+
free() {
|
|
322
|
+
const ptr = this.__destroy_into_raw();
|
|
323
|
+
wasm.__wbg_lolaregiondb_free(ptr, 0);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Collection-level annotations from the RegionDB.
|
|
327
|
+
*
|
|
328
|
+
* @returns Array of objects with keys: collectionname, collector, date, source, description
|
|
329
|
+
* @returns {any}
|
|
330
|
+
*/
|
|
331
|
+
get collectionAnno() {
|
|
332
|
+
const ret = wasm.lolaregiondb_collectionAnno(this.__wbg_ptr);
|
|
333
|
+
if (ret[2]) {
|
|
334
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
335
|
+
}
|
|
336
|
+
return takeFromExternrefTable0(ret[0]);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Extract region sets by 0-based indices as a RegionSetList.
|
|
340
|
+
*
|
|
341
|
+
* @param indices - Optional array of 0-based indices. If omitted, returns all.
|
|
342
|
+
* @param {Uint32Array | null} [indices]
|
|
343
|
+
* @returns {RegionSetList}
|
|
344
|
+
*/
|
|
345
|
+
getRegionSets(indices) {
|
|
346
|
+
var ptr0 = isLikeNone(indices) ? 0 : passArray32ToWasm0(indices, wasm.__wbindgen_malloc);
|
|
347
|
+
var len0 = WASM_VECTOR_LEN;
|
|
348
|
+
const ret = wasm.lolaregiondb_getRegionSets(this.__wbg_ptr, ptr0, len0);
|
|
349
|
+
return RegionSetList.__wrap(ret);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* List region set filenames.
|
|
353
|
+
* @returns {string[]}
|
|
354
|
+
*/
|
|
355
|
+
listRegionSets() {
|
|
356
|
+
const ret = wasm.lolaregiondb_listRegionSets(this.__wbg_ptr);
|
|
357
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
358
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
359
|
+
return v1;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Create a LolaRegionDB from an array of {regions, name} objects.
|
|
363
|
+
*
|
|
364
|
+
* @param entries - Array of { regions: [["chr1", 100, 200], ...], name: "filename.bed" }
|
|
365
|
+
* @param {any} entries
|
|
366
|
+
*/
|
|
367
|
+
constructor(entries) {
|
|
368
|
+
const ret = wasm.lolaregiondb_new(entries);
|
|
369
|
+
if (ret[2]) {
|
|
370
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
371
|
+
}
|
|
372
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
373
|
+
LolaRegionDBFinalization.register(this, this.__wbg_ptr, this);
|
|
374
|
+
return this;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Number of region sets in this database.
|
|
378
|
+
* @returns {number}
|
|
379
|
+
*/
|
|
380
|
+
get numRegionSets() {
|
|
381
|
+
const ret = wasm.lolaregiondb_numRegionSets(this.__wbg_ptr);
|
|
382
|
+
return ret >>> 0;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
if (Symbol.dispose) LolaRegionDB.prototype[Symbol.dispose] = LolaRegionDB.prototype.free;
|
|
386
|
+
|
|
146
387
|
export class Overlapper {
|
|
147
388
|
__destroy_into_raw() {
|
|
148
389
|
const ptr = this.__wbg_ptr;
|
|
@@ -198,6 +439,46 @@ export class Overlapper {
|
|
|
198
439
|
}
|
|
199
440
|
if (Symbol.dispose) Overlapper.prototype[Symbol.dispose] = Overlapper.prototype.free;
|
|
200
441
|
|
|
442
|
+
export class PartitionList {
|
|
443
|
+
static __wrap(ptr) {
|
|
444
|
+
ptr = ptr >>> 0;
|
|
445
|
+
const obj = Object.create(PartitionList.prototype);
|
|
446
|
+
obj.__wbg_ptr = ptr;
|
|
447
|
+
PartitionListFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
448
|
+
return obj;
|
|
449
|
+
}
|
|
450
|
+
__destroy_into_raw() {
|
|
451
|
+
const ptr = this.__wbg_ptr;
|
|
452
|
+
this.__wbg_ptr = 0;
|
|
453
|
+
PartitionListFinalization.unregister(this);
|
|
454
|
+
return ptr;
|
|
455
|
+
}
|
|
456
|
+
free() {
|
|
457
|
+
const ptr = this.__destroy_into_raw();
|
|
458
|
+
wasm.__wbg_partitionlist_free(ptr, 0);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Build a PartitionList from a GeneModel.
|
|
462
|
+
*
|
|
463
|
+
* `chromSizes` is an optional JS object `{"chr1": 249250621, ...}` for
|
|
464
|
+
* trimming promoters at chromosome boundaries.
|
|
465
|
+
* @param {GeneModel} model
|
|
466
|
+
* @param {number} core_prom_size
|
|
467
|
+
* @param {number} prox_prom_size
|
|
468
|
+
* @param {any} chrom_sizes
|
|
469
|
+
* @returns {PartitionList}
|
|
470
|
+
*/
|
|
471
|
+
static fromGeneModel(model, core_prom_size, prox_prom_size, chrom_sizes) {
|
|
472
|
+
_assertClass(model, GeneModel);
|
|
473
|
+
const ret = wasm.partitionlist_fromGeneModel(model.__wbg_ptr, core_prom_size, prox_prom_size, chrom_sizes);
|
|
474
|
+
if (ret[2]) {
|
|
475
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
476
|
+
}
|
|
477
|
+
return PartitionList.__wrap(ret[0]);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
if (Symbol.dispose) PartitionList.prototype[Symbol.dispose] = PartitionList.prototype.free;
|
|
481
|
+
|
|
201
482
|
export class RegionDistribution {
|
|
202
483
|
__destroy_into_raw() {
|
|
203
484
|
const ptr = this.__wbg_ptr;
|
|
@@ -213,6 +494,13 @@ export class RegionDistribution {
|
|
|
213
494
|
if (Symbol.dispose) RegionDistribution.prototype[Symbol.dispose] = RegionDistribution.prototype.free;
|
|
214
495
|
|
|
215
496
|
export class RegionSet {
|
|
497
|
+
static __wrap(ptr) {
|
|
498
|
+
ptr = ptr >>> 0;
|
|
499
|
+
const obj = Object.create(RegionSet.prototype);
|
|
500
|
+
obj.__wbg_ptr = ptr;
|
|
501
|
+
RegionSetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
502
|
+
return obj;
|
|
503
|
+
}
|
|
216
504
|
__destroy_into_raw() {
|
|
217
505
|
const ptr = this.__wbg_ptr;
|
|
218
506
|
this.__wbg_ptr = 0;
|
|
@@ -223,6 +511,35 @@ export class RegionSet {
|
|
|
223
511
|
const ptr = this.__destroy_into_raw();
|
|
224
512
|
wasm.__wbg_regionset_free(ptr, 0);
|
|
225
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
* @returns {any}
|
|
516
|
+
*/
|
|
517
|
+
calcNearestNeighbors() {
|
|
518
|
+
const ret = wasm.regionset_calcNearestNeighbors(this.__wbg_ptr);
|
|
519
|
+
if (ret[2]) {
|
|
520
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
521
|
+
}
|
|
522
|
+
return takeFromExternrefTable0(ret[0]);
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @returns {any}
|
|
526
|
+
*/
|
|
527
|
+
calcNeighborDistances() {
|
|
528
|
+
const ret = wasm.regionset_calcNeighborDistances(this.__wbg_ptr);
|
|
529
|
+
if (ret[2]) {
|
|
530
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
531
|
+
}
|
|
532
|
+
return takeFromExternrefTable0(ret[0]);
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @returns {Uint32Array}
|
|
536
|
+
*/
|
|
537
|
+
calcWidths() {
|
|
538
|
+
const ret = wasm.regionset_calcWidths(this.__wbg_ptr);
|
|
539
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
540
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
541
|
+
return v1;
|
|
542
|
+
}
|
|
226
543
|
/**
|
|
227
544
|
* @returns {any}
|
|
228
545
|
*/
|
|
@@ -238,7 +555,26 @@ export class RegionSet {
|
|
|
238
555
|
*/
|
|
239
556
|
get classify() {
|
|
240
557
|
const ret = wasm.regionset_classify(this.__wbg_ptr);
|
|
241
|
-
|
|
558
|
+
if (ret[2]) {
|
|
559
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
560
|
+
}
|
|
561
|
+
return BedClassificationOutput.__wrap(ret[0]);
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* @param {RegionSet} other
|
|
565
|
+
* @returns {RegionSet}
|
|
566
|
+
*/
|
|
567
|
+
concat(other) {
|
|
568
|
+
_assertClass(other, RegionSet);
|
|
569
|
+
const ret = wasm.regionset_concat(this.__wbg_ptr, other.__wbg_ptr);
|
|
570
|
+
return RegionSet.__wrap(ret);
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* @returns {RegionSet}
|
|
574
|
+
*/
|
|
575
|
+
disjoin() {
|
|
576
|
+
const ret = wasm.regionset_disjoin(this.__wbg_ptr);
|
|
577
|
+
return RegionSet.__wrap(ret);
|
|
242
578
|
}
|
|
243
579
|
/**
|
|
244
580
|
* @returns {string}
|
|
@@ -255,6 +591,23 @@ export class RegionSet {
|
|
|
255
591
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
256
592
|
}
|
|
257
593
|
}
|
|
594
|
+
/**
|
|
595
|
+
* @param {number} width
|
|
596
|
+
* @param {boolean} use_start
|
|
597
|
+
* @param {boolean} both
|
|
598
|
+
* @returns {RegionSet}
|
|
599
|
+
*/
|
|
600
|
+
flank(width, use_start, both) {
|
|
601
|
+
const ret = wasm.regionset_flank(this.__wbg_ptr, width, use_start, both);
|
|
602
|
+
return RegionSet.__wrap(ret);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @returns {RegionSet}
|
|
606
|
+
*/
|
|
607
|
+
gaps() {
|
|
608
|
+
const ret = wasm.regionset_gaps(this.__wbg_ptr);
|
|
609
|
+
return RegionSet.__wrap(ret);
|
|
610
|
+
}
|
|
258
611
|
/**
|
|
259
612
|
* @returns {string}
|
|
260
613
|
*/
|
|
@@ -270,6 +623,24 @@ export class RegionSet {
|
|
|
270
623
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
271
624
|
}
|
|
272
625
|
}
|
|
626
|
+
/**
|
|
627
|
+
* @param {RegionSet} other
|
|
628
|
+
* @returns {RegionSet}
|
|
629
|
+
*/
|
|
630
|
+
intersect(other) {
|
|
631
|
+
_assertClass(other, RegionSet);
|
|
632
|
+
const ret = wasm.regionset_intersect(this.__wbg_ptr, other.__wbg_ptr);
|
|
633
|
+
return RegionSet.__wrap(ret);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* @param {RegionSet} other
|
|
637
|
+
* @returns {number}
|
|
638
|
+
*/
|
|
639
|
+
jaccard(other) {
|
|
640
|
+
_assertClass(other, RegionSet);
|
|
641
|
+
const ret = wasm.regionset_jaccard(this.__wbg_ptr, other.__wbg_ptr);
|
|
642
|
+
return ret;
|
|
643
|
+
}
|
|
273
644
|
/**
|
|
274
645
|
* @returns {number}
|
|
275
646
|
*/
|
|
@@ -277,6 +648,16 @@ export class RegionSet {
|
|
|
277
648
|
const ret = wasm.regionset_meanRegionWidth(this.__wbg_ptr);
|
|
278
649
|
return ret;
|
|
279
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* @param {number | null} [start]
|
|
653
|
+
* @param {number | null} [end]
|
|
654
|
+
* @param {number | null} [width]
|
|
655
|
+
* @returns {RegionSet}
|
|
656
|
+
*/
|
|
657
|
+
narrow(start, end, width) {
|
|
658
|
+
const ret = wasm.regionset_narrow(this.__wbg_ptr, isLikeNone(start) ? 0x100000001 : (start) >>> 0, isLikeNone(end) ? 0x100000001 : (end) >>> 0, isLikeNone(width) ? 0x100000001 : (width) >>> 0);
|
|
659
|
+
return RegionSet.__wrap(ret);
|
|
660
|
+
}
|
|
280
661
|
/**
|
|
281
662
|
* @param {any} regions
|
|
282
663
|
*/
|
|
@@ -303,6 +684,31 @@ export class RegionSet {
|
|
|
303
684
|
const ret = wasm.regionset_numberOfRegions(this.__wbg_ptr);
|
|
304
685
|
return ret;
|
|
305
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* @param {RegionSet} other
|
|
689
|
+
* @returns {RegionSet}
|
|
690
|
+
*/
|
|
691
|
+
pintersect(other) {
|
|
692
|
+
_assertClass(other, RegionSet);
|
|
693
|
+
const ret = wasm.regionset_pintersect(this.__wbg_ptr, other.__wbg_ptr);
|
|
694
|
+
return RegionSet.__wrap(ret);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @param {number} upstream
|
|
698
|
+
* @param {number} downstream
|
|
699
|
+
* @returns {RegionSet}
|
|
700
|
+
*/
|
|
701
|
+
promoters(upstream, downstream) {
|
|
702
|
+
const ret = wasm.regionset_promoters(this.__wbg_ptr, upstream, downstream);
|
|
703
|
+
return RegionSet.__wrap(ret);
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* @returns {RegionSet}
|
|
707
|
+
*/
|
|
708
|
+
reduce() {
|
|
709
|
+
const ret = wasm.regionset_reduce(this.__wbg_ptr);
|
|
710
|
+
return RegionSet.__wrap(ret);
|
|
711
|
+
}
|
|
306
712
|
/**
|
|
307
713
|
* @param {number} n_bins
|
|
308
714
|
* @returns {any}
|
|
@@ -314,9 +720,190 @@ export class RegionSet {
|
|
|
314
720
|
}
|
|
315
721
|
return takeFromExternrefTable0(ret[0]);
|
|
316
722
|
}
|
|
723
|
+
/**
|
|
724
|
+
* @param {number} width
|
|
725
|
+
* @param {string} fix
|
|
726
|
+
* @returns {RegionSet}
|
|
727
|
+
*/
|
|
728
|
+
resize(width, fix) {
|
|
729
|
+
const ptr0 = passStringToWasm0(fix, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
730
|
+
const len0 = WASM_VECTOR_LEN;
|
|
731
|
+
const ret = wasm.regionset_resize(this.__wbg_ptr, width, ptr0, len0);
|
|
732
|
+
return RegionSet.__wrap(ret);
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* @param {RegionSet} other
|
|
736
|
+
* @returns {RegionSet}
|
|
737
|
+
*/
|
|
738
|
+
setdiff(other) {
|
|
739
|
+
_assertClass(other, RegionSet);
|
|
740
|
+
const ret = wasm.regionset_setdiff(this.__wbg_ptr, other.__wbg_ptr);
|
|
741
|
+
return RegionSet.__wrap(ret);
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* @param {bigint} offset
|
|
745
|
+
* @returns {RegionSet}
|
|
746
|
+
*/
|
|
747
|
+
shift(offset) {
|
|
748
|
+
const ret = wasm.regionset_shift(this.__wbg_ptr, offset);
|
|
749
|
+
return RegionSet.__wrap(ret);
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* @param {any} chrom_sizes
|
|
753
|
+
* @returns {RegionSet}
|
|
754
|
+
*/
|
|
755
|
+
trim(chrom_sizes) {
|
|
756
|
+
const ret = wasm.regionset_trim(this.__wbg_ptr, chrom_sizes);
|
|
757
|
+
if (ret[2]) {
|
|
758
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
759
|
+
}
|
|
760
|
+
return RegionSet.__wrap(ret[0]);
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* @param {RegionSet} other
|
|
764
|
+
* @returns {RegionSet}
|
|
765
|
+
*/
|
|
766
|
+
union(other) {
|
|
767
|
+
_assertClass(other, RegionSet);
|
|
768
|
+
const ret = wasm.regionset_union(this.__wbg_ptr, other.__wbg_ptr);
|
|
769
|
+
return RegionSet.__wrap(ret);
|
|
770
|
+
}
|
|
317
771
|
}
|
|
318
772
|
if (Symbol.dispose) RegionSet.prototype[Symbol.dispose] = RegionSet.prototype.free;
|
|
319
773
|
|
|
774
|
+
/**
|
|
775
|
+
* A collection of RegionSets — the gtars equivalent of GRangesList.
|
|
776
|
+
*/
|
|
777
|
+
export class RegionSetList {
|
|
778
|
+
static __wrap(ptr) {
|
|
779
|
+
ptr = ptr >>> 0;
|
|
780
|
+
const obj = Object.create(RegionSetList.prototype);
|
|
781
|
+
obj.__wbg_ptr = ptr;
|
|
782
|
+
RegionSetListFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
783
|
+
return obj;
|
|
784
|
+
}
|
|
785
|
+
__destroy_into_raw() {
|
|
786
|
+
const ptr = this.__wbg_ptr;
|
|
787
|
+
this.__wbg_ptr = 0;
|
|
788
|
+
RegionSetListFinalization.unregister(this);
|
|
789
|
+
return ptr;
|
|
790
|
+
}
|
|
791
|
+
free() {
|
|
792
|
+
const ptr = this.__destroy_into_raw();
|
|
793
|
+
wasm.__wbg_regionsetlist_free(ptr, 0);
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Flatten all region sets into a single RegionSet (no merging).
|
|
797
|
+
* @returns {RegionSet}
|
|
798
|
+
*/
|
|
799
|
+
concat() {
|
|
800
|
+
const ret = wasm.regionsetlist_concat(this.__wbg_ptr);
|
|
801
|
+
return RegionSet.__wrap(ret);
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Get a region set by 0-based index.
|
|
805
|
+
* @param {number} index
|
|
806
|
+
* @returns {RegionSet}
|
|
807
|
+
*/
|
|
808
|
+
get(index) {
|
|
809
|
+
const ret = wasm.regionsetlist_get(this.__wbg_ptr, index);
|
|
810
|
+
if (ret[2]) {
|
|
811
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
812
|
+
}
|
|
813
|
+
return RegionSet.__wrap(ret[0]);
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Number of region sets in this list.
|
|
817
|
+
* @returns {number}
|
|
818
|
+
*/
|
|
819
|
+
get length() {
|
|
820
|
+
const ret = wasm.regionsetlist_length(this.__wbg_ptr);
|
|
821
|
+
return ret >>> 0;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Get the names of the region sets, or null if unnamed.
|
|
825
|
+
* @returns {any}
|
|
826
|
+
*/
|
|
827
|
+
get names() {
|
|
828
|
+
const ret = wasm.regionsetlist_names(this.__wbg_ptr);
|
|
829
|
+
return ret;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Compute pairwise Jaccard similarity for all pairs of region sets.
|
|
833
|
+
*
|
|
834
|
+
* Returns { matrix: number[][], names: string[] | null }.
|
|
835
|
+
* @returns {any}
|
|
836
|
+
*/
|
|
837
|
+
pairwiseJaccard() {
|
|
838
|
+
const ret = wasm.regionsetlist_pairwiseJaccard(this.__wbg_ptr);
|
|
839
|
+
if (ret[2]) {
|
|
840
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
841
|
+
}
|
|
842
|
+
return takeFromExternrefTable0(ret[0]);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
if (Symbol.dispose) RegionSetList.prototype[Symbol.dispose] = RegionSetList.prototype.free;
|
|
846
|
+
|
|
847
|
+
export class SignalMatrix {
|
|
848
|
+
static __wrap(ptr) {
|
|
849
|
+
ptr = ptr >>> 0;
|
|
850
|
+
const obj = Object.create(SignalMatrix.prototype);
|
|
851
|
+
obj.__wbg_ptr = ptr;
|
|
852
|
+
SignalMatrixFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
853
|
+
return obj;
|
|
854
|
+
}
|
|
855
|
+
__destroy_into_raw() {
|
|
856
|
+
const ptr = this.__wbg_ptr;
|
|
857
|
+
this.__wbg_ptr = 0;
|
|
858
|
+
SignalMatrixFinalization.unregister(this);
|
|
859
|
+
return ptr;
|
|
860
|
+
}
|
|
861
|
+
free() {
|
|
862
|
+
const ptr = this.__destroy_into_raw();
|
|
863
|
+
wasm.__wbg_signalmatrix_free(ptr, 0);
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Load a SignalMatrix from packed binary bytes.
|
|
867
|
+
* @param {Uint8Array} bytes
|
|
868
|
+
* @returns {SignalMatrix}
|
|
869
|
+
*/
|
|
870
|
+
static fromBin(bytes) {
|
|
871
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
872
|
+
const len0 = WASM_VECTOR_LEN;
|
|
873
|
+
const ret = wasm.signalmatrix_fromBin(ptr0, len0);
|
|
874
|
+
if (ret[2]) {
|
|
875
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
876
|
+
}
|
|
877
|
+
return SignalMatrix.__wrap(ret[0]);
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Construct a SignalMatrix from JS data.
|
|
881
|
+
*
|
|
882
|
+
* - `regionIds`: array of strings in `"chr_start_end"` format
|
|
883
|
+
* - `conditionNames`: array of condition/cell-type names
|
|
884
|
+
* - `values`: flat row-major array of signal values
|
|
885
|
+
* - `nRegions`: number of rows (regions)
|
|
886
|
+
* - `nConditions`: number of columns (conditions)
|
|
887
|
+
* @param {any} region_ids
|
|
888
|
+
* @param {any} condition_names
|
|
889
|
+
* @param {Float64Array} values
|
|
890
|
+
* @param {number} n_regions
|
|
891
|
+
* @param {number} n_conditions
|
|
892
|
+
*/
|
|
893
|
+
constructor(region_ids, condition_names, values, n_regions, n_conditions) {
|
|
894
|
+
const ptr0 = passArrayF64ToWasm0(values, wasm.__wbindgen_malloc);
|
|
895
|
+
const len0 = WASM_VECTOR_LEN;
|
|
896
|
+
const ret = wasm.signalmatrix_new(region_ids, condition_names, ptr0, len0, n_regions, n_conditions);
|
|
897
|
+
if (ret[2]) {
|
|
898
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
899
|
+
}
|
|
900
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
901
|
+
SignalMatrixFinalization.register(this, this.__wbg_ptr, this);
|
|
902
|
+
return this;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
if (Symbol.dispose) SignalMatrix.prototype[Symbol.dispose] = SignalMatrix.prototype.free;
|
|
906
|
+
|
|
320
907
|
export class Tokenizer {
|
|
321
908
|
__destroy_into_raw() {
|
|
322
909
|
const ptr = this.__wbg_ptr;
|
|
@@ -567,6 +1154,128 @@ export class Tokenizer {
|
|
|
567
1154
|
}
|
|
568
1155
|
if (Symbol.dispose) Tokenizer.prototype[Symbol.dispose] = Tokenizer.prototype.free;
|
|
569
1156
|
|
|
1157
|
+
export class TssIndex {
|
|
1158
|
+
static __wrap(ptr) {
|
|
1159
|
+
ptr = ptr >>> 0;
|
|
1160
|
+
const obj = Object.create(TssIndex.prototype);
|
|
1161
|
+
obj.__wbg_ptr = ptr;
|
|
1162
|
+
TssIndexFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1163
|
+
return obj;
|
|
1164
|
+
}
|
|
1165
|
+
__destroy_into_raw() {
|
|
1166
|
+
const ptr = this.__wbg_ptr;
|
|
1167
|
+
this.__wbg_ptr = 0;
|
|
1168
|
+
TssIndexFinalization.unregister(this);
|
|
1169
|
+
return ptr;
|
|
1170
|
+
}
|
|
1171
|
+
free() {
|
|
1172
|
+
const ptr = this.__destroy_into_raw();
|
|
1173
|
+
wasm.__wbg_tssindex_free(ptr, 0);
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Calculate signed distance from each query region to its nearest feature.
|
|
1177
|
+
*
|
|
1178
|
+
* Positive = feature is downstream, negative = feature is upstream.
|
|
1179
|
+
* Returns an array where `null` indicates no features on that chromosome
|
|
1180
|
+
* (sentinel `i64::MAX` in Rust → `null` in JS).
|
|
1181
|
+
* @param {RegionSet} query
|
|
1182
|
+
* @returns {any}
|
|
1183
|
+
*/
|
|
1184
|
+
calcFeatureDistances(query) {
|
|
1185
|
+
_assertClass(query, RegionSet);
|
|
1186
|
+
const ret = wasm.tssindex_calcFeatureDistances(this.__wbg_ptr, query.__wbg_ptr);
|
|
1187
|
+
if (ret[2]) {
|
|
1188
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1189
|
+
}
|
|
1190
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Calculate unsigned distance from each query region to its nearest feature midpoint.
|
|
1194
|
+
*
|
|
1195
|
+
* Returns an array where `null` indicates no features on that chromosome
|
|
1196
|
+
* (sentinel `u32::MAX` in Rust → `null` in JS).
|
|
1197
|
+
* @param {RegionSet} query
|
|
1198
|
+
* @returns {any}
|
|
1199
|
+
*/
|
|
1200
|
+
calcTssDistances(query) {
|
|
1201
|
+
_assertClass(query, RegionSet);
|
|
1202
|
+
const ret = wasm.tssindex_calcTssDistances(this.__wbg_ptr, query.__wbg_ptr);
|
|
1203
|
+
if (ret[2]) {
|
|
1204
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1205
|
+
}
|
|
1206
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Build a TssIndex from a RegionSet of features (e.g. TSS sites).
|
|
1210
|
+
*
|
|
1211
|
+
* Clones the inner RegionSet and computes sorted midpoints per chromosome.
|
|
1212
|
+
* @param {RegionSet} features
|
|
1213
|
+
*/
|
|
1214
|
+
constructor(features) {
|
|
1215
|
+
_assertClass(features, RegionSet);
|
|
1216
|
+
const ret = wasm.tssindex_new(features.__wbg_ptr);
|
|
1217
|
+
if (ret[2]) {
|
|
1218
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1219
|
+
}
|
|
1220
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
1221
|
+
TssIndexFinalization.register(this, this.__wbg_ptr, this);
|
|
1222
|
+
return this;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
if (Symbol.dispose) TssIndex.prototype[Symbol.dispose] = TssIndex.prototype.free;
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Compute observed vs expected partition enrichment.
|
|
1229
|
+
* @param {RegionSet} region_set
|
|
1230
|
+
* @param {PartitionList} partition_list
|
|
1231
|
+
* @param {any} chrom_sizes
|
|
1232
|
+
* @param {boolean} bp_proportion
|
|
1233
|
+
* @returns {any}
|
|
1234
|
+
*/
|
|
1235
|
+
export function calcExpectedPartitions(region_set, partition_list, chrom_sizes, bp_proportion) {
|
|
1236
|
+
_assertClass(region_set, RegionSet);
|
|
1237
|
+
_assertClass(partition_list, PartitionList);
|
|
1238
|
+
const ret = wasm.calcExpectedPartitions(region_set.__wbg_ptr, partition_list.__wbg_ptr, chrom_sizes, bp_proportion);
|
|
1239
|
+
if (ret[2]) {
|
|
1240
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1241
|
+
}
|
|
1242
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Classify query regions into partitions.
|
|
1247
|
+
* @param {RegionSet} region_set
|
|
1248
|
+
* @param {PartitionList} partition_list
|
|
1249
|
+
* @param {boolean} bp_proportion
|
|
1250
|
+
* @returns {any}
|
|
1251
|
+
*/
|
|
1252
|
+
export function calcPartitions(region_set, partition_list, bp_proportion) {
|
|
1253
|
+
_assertClass(region_set, RegionSet);
|
|
1254
|
+
_assertClass(partition_list, PartitionList);
|
|
1255
|
+
const ret = wasm.calcPartitions(region_set.__wbg_ptr, partition_list.__wbg_ptr, bp_proportion);
|
|
1256
|
+
if (ret[2]) {
|
|
1257
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1258
|
+
}
|
|
1259
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Compute summary signal: overlap query regions with a signal matrix,
|
|
1264
|
+
* take MAX per condition, and compute boxplot statistics.
|
|
1265
|
+
* @param {RegionSet} region_set
|
|
1266
|
+
* @param {SignalMatrix} signal_matrix
|
|
1267
|
+
* @returns {any}
|
|
1268
|
+
*/
|
|
1269
|
+
export function calcSummarySignal(region_set, signal_matrix) {
|
|
1270
|
+
_assertClass(region_set, RegionSet);
|
|
1271
|
+
_assertClass(signal_matrix, SignalMatrix);
|
|
1272
|
+
const ret = wasm.calcSummarySignal(region_set.__wbg_ptr, signal_matrix.__wbg_ptr);
|
|
1273
|
+
if (ret[2]) {
|
|
1274
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1275
|
+
}
|
|
1276
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
570
1279
|
/**
|
|
571
1280
|
* Canonicalize a JSON string according to RFC-8785.
|
|
572
1281
|
*
|
|
@@ -601,6 +1310,24 @@ export function canonicalizeJsonString(json_str) {
|
|
|
601
1310
|
}
|
|
602
1311
|
}
|
|
603
1312
|
|
|
1313
|
+
/**
|
|
1314
|
+
* Check whether the universe is appropriate for the given user sets.
|
|
1315
|
+
*
|
|
1316
|
+
* @param userSets - Array of arrays of [chr, start, end] tuples
|
|
1317
|
+
* @param universe - Array of [chr, start, end] tuples
|
|
1318
|
+
* @returns Object with column arrays: userSet, totalRegions, regionsInUniverse, coverage, manyToMany, warnings
|
|
1319
|
+
* @param {any} user_sets
|
|
1320
|
+
* @param {any} universe_regions
|
|
1321
|
+
* @returns {any}
|
|
1322
|
+
*/
|
|
1323
|
+
export function checkUniverseAppropriateness(user_sets, universe_regions) {
|
|
1324
|
+
const ret = wasm.checkUniverseAppropriateness(user_sets, universe_regions);
|
|
1325
|
+
if (ret[2]) {
|
|
1326
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1327
|
+
}
|
|
1328
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1329
|
+
}
|
|
1330
|
+
|
|
604
1331
|
/**
|
|
605
1332
|
* Compute the MD5 digest of a string.
|
|
606
1333
|
*
|
|
@@ -832,6 +1559,33 @@ export function greet(name) {
|
|
|
832
1559
|
wasm.greet(ptr0, len0);
|
|
833
1560
|
}
|
|
834
1561
|
|
|
1562
|
+
/**
|
|
1563
|
+
* Run LOLA enrichment analysis.
|
|
1564
|
+
*
|
|
1565
|
+
* @param userSets - Array of arrays of [chr, start, end] tuples
|
|
1566
|
+
* @param universe - Array of [chr, start, end] tuples
|
|
1567
|
+
* @param regionDb - A LolaRegionDB object
|
|
1568
|
+
* @param minOverlap - Minimum bp overlap (default 1)
|
|
1569
|
+
* @param direction - "enrichment" or "depletion" (default "enrichment")
|
|
1570
|
+
* @returns Object with column arrays: userSet, dbSet, pValueLog, oddsRatio, support, etc.
|
|
1571
|
+
* @param {any} user_sets
|
|
1572
|
+
* @param {any} universe_regions
|
|
1573
|
+
* @param {LolaRegionDB} region_db
|
|
1574
|
+
* @param {number | null} [min_overlap]
|
|
1575
|
+
* @param {string | null} [direction]
|
|
1576
|
+
* @returns {any}
|
|
1577
|
+
*/
|
|
1578
|
+
export function runLOLA(user_sets, universe_regions, region_db, min_overlap, direction) {
|
|
1579
|
+
_assertClass(region_db, LolaRegionDB);
|
|
1580
|
+
var ptr0 = isLikeNone(direction) ? 0 : passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1581
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1582
|
+
const ret = wasm.runLOLA(user_sets, universe_regions, region_db.__wbg_ptr, isLikeNone(min_overlap) ? 0x100000001 : (min_overlap) >> 0, ptr0, len0);
|
|
1583
|
+
if (ret[2]) {
|
|
1584
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1585
|
+
}
|
|
1586
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
835
1589
|
/**
|
|
836
1590
|
* Compute a sequence digest (sha512t24u) from raw sequence data.
|
|
837
1591
|
*
|
|
@@ -898,7 +1652,7 @@ export function sequenceMd5(sequence) {
|
|
|
898
1652
|
function __wbg_get_imports() {
|
|
899
1653
|
const import0 = {
|
|
900
1654
|
__proto__: null,
|
|
901
|
-
|
|
1655
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
902
1656
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
903
1657
|
return ret;
|
|
904
1658
|
},
|
|
@@ -909,42 +1663,68 @@ function __wbg_get_imports() {
|
|
|
909
1663
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
910
1664
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
911
1665
|
},
|
|
912
|
-
|
|
1666
|
+
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
1667
|
+
const v = arg1;
|
|
1668
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1669
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1670
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1671
|
+
},
|
|
1672
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
913
1673
|
const v = arg0;
|
|
914
1674
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
915
1675
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
916
1676
|
},
|
|
917
|
-
|
|
1677
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
918
1678
|
const ret = debugString(arg1);
|
|
919
1679
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
920
1680
|
const len1 = WASM_VECTOR_LEN;
|
|
921
1681
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
922
1682
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
923
1683
|
},
|
|
924
|
-
|
|
1684
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
1685
|
+
const ret = arg0 in arg1;
|
|
1686
|
+
return ret;
|
|
1687
|
+
},
|
|
1688
|
+
__wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
|
|
1689
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1690
|
+
return ret;
|
|
1691
|
+
},
|
|
1692
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
925
1693
|
const ret = typeof(arg0) === 'function';
|
|
926
1694
|
return ret;
|
|
927
1695
|
},
|
|
928
|
-
|
|
1696
|
+
__wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
|
|
1697
|
+
const ret = arg0 === null;
|
|
1698
|
+
return ret;
|
|
1699
|
+
},
|
|
1700
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
929
1701
|
const val = arg0;
|
|
930
1702
|
const ret = typeof(val) === 'object' && val !== null;
|
|
931
1703
|
return ret;
|
|
932
1704
|
},
|
|
933
|
-
|
|
1705
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
934
1706
|
const ret = typeof(arg0) === 'string';
|
|
935
1707
|
return ret;
|
|
936
1708
|
},
|
|
937
|
-
|
|
1709
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
1710
|
+
const ret = arg0 === undefined;
|
|
1711
|
+
return ret;
|
|
1712
|
+
},
|
|
1713
|
+
__wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
|
|
1714
|
+
const ret = arg0 === arg1;
|
|
1715
|
+
return ret;
|
|
1716
|
+
},
|
|
1717
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
938
1718
|
const ret = arg0 == arg1;
|
|
939
1719
|
return ret;
|
|
940
1720
|
},
|
|
941
|
-
|
|
1721
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
942
1722
|
const obj = arg1;
|
|
943
1723
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
944
1724
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
945
1725
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
946
1726
|
},
|
|
947
|
-
|
|
1727
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
948
1728
|
const obj = arg1;
|
|
949
1729
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
950
1730
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -952,29 +1732,41 @@ function __wbg_get_imports() {
|
|
|
952
1732
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
953
1733
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
954
1734
|
},
|
|
955
|
-
|
|
1735
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
956
1736
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
957
1737
|
},
|
|
958
|
-
|
|
1738
|
+
__wbg_alert_42dff0589bd812e0: function(arg0, arg1) {
|
|
959
1739
|
alert(getStringFromWasm0(arg0, arg1));
|
|
960
1740
|
},
|
|
961
|
-
|
|
1741
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
962
1742
|
const ret = arg0.call(arg1);
|
|
963
1743
|
return ret;
|
|
964
1744
|
}, arguments); },
|
|
965
|
-
|
|
1745
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
966
1746
|
const ret = arg0.done;
|
|
967
1747
|
return ret;
|
|
968
1748
|
},
|
|
969
|
-
|
|
1749
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
1750
|
+
const ret = Object.entries(arg0);
|
|
1751
|
+
return ret;
|
|
1752
|
+
},
|
|
1753
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
970
1754
|
const ret = Reflect.get(arg0, arg1);
|
|
971
1755
|
return ret;
|
|
972
1756
|
}, arguments); },
|
|
973
|
-
|
|
1757
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
1758
|
+
const ret = arg0[arg1 >>> 0];
|
|
1759
|
+
return ret;
|
|
1760
|
+
},
|
|
1761
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
974
1762
|
const ret = arg0[arg1 >>> 0];
|
|
975
1763
|
return ret;
|
|
976
1764
|
},
|
|
977
|
-
|
|
1765
|
+
__wbg_get_with_ref_key_f38bf27dc398d91b: function(arg0, arg1) {
|
|
1766
|
+
const ret = arg0[arg1];
|
|
1767
|
+
return ret;
|
|
1768
|
+
},
|
|
1769
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
978
1770
|
let result;
|
|
979
1771
|
try {
|
|
980
1772
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -984,7 +1776,7 @@ function __wbg_get_imports() {
|
|
|
984
1776
|
const ret = result;
|
|
985
1777
|
return ret;
|
|
986
1778
|
},
|
|
987
|
-
|
|
1779
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
988
1780
|
let result;
|
|
989
1781
|
try {
|
|
990
1782
|
result = arg0 instanceof Uint8Array;
|
|
@@ -994,64 +1786,64 @@ function __wbg_get_imports() {
|
|
|
994
1786
|
const ret = result;
|
|
995
1787
|
return ret;
|
|
996
1788
|
},
|
|
997
|
-
|
|
1789
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
998
1790
|
const ret = Array.isArray(arg0);
|
|
999
1791
|
return ret;
|
|
1000
1792
|
},
|
|
1001
|
-
|
|
1793
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
1002
1794
|
const ret = Number.isSafeInteger(arg0);
|
|
1003
1795
|
return ret;
|
|
1004
1796
|
},
|
|
1005
|
-
|
|
1797
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
1006
1798
|
const ret = Symbol.iterator;
|
|
1007
1799
|
return ret;
|
|
1008
1800
|
},
|
|
1009
|
-
|
|
1801
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
1010
1802
|
const ret = arg0.length;
|
|
1011
1803
|
return ret;
|
|
1012
1804
|
},
|
|
1013
|
-
|
|
1805
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
1014
1806
|
const ret = arg0.length;
|
|
1015
1807
|
return ret;
|
|
1016
1808
|
},
|
|
1017
|
-
|
|
1809
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
1018
1810
|
const ret = new Map();
|
|
1019
1811
|
return ret;
|
|
1020
1812
|
},
|
|
1021
|
-
|
|
1813
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1022
1814
|
const ret = new Uint8Array(arg0);
|
|
1023
1815
|
return ret;
|
|
1024
1816
|
},
|
|
1025
|
-
|
|
1026
|
-
const ret = new
|
|
1817
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
1818
|
+
const ret = new Array();
|
|
1027
1819
|
return ret;
|
|
1028
1820
|
},
|
|
1029
|
-
|
|
1030
|
-
const ret = new
|
|
1821
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
1822
|
+
const ret = new Object();
|
|
1031
1823
|
return ret;
|
|
1032
1824
|
},
|
|
1033
|
-
|
|
1825
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
1034
1826
|
const ret = arg0.next();
|
|
1035
1827
|
return ret;
|
|
1036
1828
|
}, arguments); },
|
|
1037
|
-
|
|
1829
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1038
1830
|
const ret = arg0.next;
|
|
1039
1831
|
return ret;
|
|
1040
1832
|
},
|
|
1041
|
-
|
|
1833
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
1042
1834
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1043
1835
|
},
|
|
1044
|
-
|
|
1836
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
1045
1837
|
arg0[arg1 >>> 0] = arg2;
|
|
1046
1838
|
},
|
|
1047
|
-
|
|
1839
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1048
1840
|
const ret = arg0.set(arg1, arg2);
|
|
1049
1841
|
return ret;
|
|
1050
1842
|
},
|
|
1051
1843
|
__wbg_set_d1cb61e9f39c870f: function(arg0, arg1, arg2) {
|
|
1052
1844
|
arg0[arg1] = arg2;
|
|
1053
1845
|
},
|
|
1054
|
-
|
|
1846
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
1055
1847
|
const ret = arg0.value;
|
|
1056
1848
|
return ret;
|
|
1057
1849
|
},
|
|
@@ -1060,12 +1852,17 @@ function __wbg_get_imports() {
|
|
|
1060
1852
|
const ret = arg0;
|
|
1061
1853
|
return ret;
|
|
1062
1854
|
},
|
|
1063
|
-
__wbindgen_cast_0000000000000002: function(arg0
|
|
1855
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
1856
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1857
|
+
const ret = arg0;
|
|
1858
|
+
return ret;
|
|
1859
|
+
},
|
|
1860
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1064
1861
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1065
1862
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1066
1863
|
return ret;
|
|
1067
1864
|
},
|
|
1068
|
-
|
|
1865
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
1069
1866
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1070
1867
|
const ret = BigInt.asUintN(64, arg0);
|
|
1071
1868
|
return ret;
|
|
@@ -1092,18 +1889,42 @@ const BedClassificationOutputFinalization = (typeof FinalizationRegistry === 'un
|
|
|
1092
1889
|
const ChromosomeStatisticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1093
1890
|
? { register: () => {}, unregister: () => {} }
|
|
1094
1891
|
: new FinalizationRegistry(ptr => wasm.__wbg_chromosomestatistics_free(ptr >>> 0, 1));
|
|
1892
|
+
const ConsensusBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1893
|
+
? { register: () => {}, unregister: () => {} }
|
|
1894
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_consensusbuilder_free(ptr >>> 0, 1));
|
|
1895
|
+
const GeneModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1896
|
+
? { register: () => {}, unregister: () => {} }
|
|
1897
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_genemodel_free(ptr >>> 0, 1));
|
|
1898
|
+
const GenomicDistAnnotationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1899
|
+
? { register: () => {}, unregister: () => {} }
|
|
1900
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_genomicdistannotation_free(ptr >>> 0, 1));
|
|
1901
|
+
const LolaRegionDBFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1902
|
+
? { register: () => {}, unregister: () => {} }
|
|
1903
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_lolaregiondb_free(ptr >>> 0, 1));
|
|
1095
1904
|
const OverlapperFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1096
1905
|
? { register: () => {}, unregister: () => {} }
|
|
1097
1906
|
: new FinalizationRegistry(ptr => wasm.__wbg_overlapper_free(ptr >>> 0, 1));
|
|
1907
|
+
const PartitionListFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1908
|
+
? { register: () => {}, unregister: () => {} }
|
|
1909
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_partitionlist_free(ptr >>> 0, 1));
|
|
1098
1910
|
const RegionDistributionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1099
1911
|
? { register: () => {}, unregister: () => {} }
|
|
1100
1912
|
: new FinalizationRegistry(ptr => wasm.__wbg_regiondistribution_free(ptr >>> 0, 1));
|
|
1101
1913
|
const RegionSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1102
1914
|
? { register: () => {}, unregister: () => {} }
|
|
1103
1915
|
: new FinalizationRegistry(ptr => wasm.__wbg_regionset_free(ptr >>> 0, 1));
|
|
1916
|
+
const RegionSetListFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1917
|
+
? { register: () => {}, unregister: () => {} }
|
|
1918
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_regionsetlist_free(ptr >>> 0, 1));
|
|
1919
|
+
const SignalMatrixFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1920
|
+
? { register: () => {}, unregister: () => {} }
|
|
1921
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_signalmatrix_free(ptr >>> 0, 1));
|
|
1104
1922
|
const TokenizerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1105
1923
|
? { register: () => {}, unregister: () => {} }
|
|
1106
1924
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenizer_free(ptr >>> 0, 1));
|
|
1925
|
+
const TssIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1926
|
+
? { register: () => {}, unregister: () => {} }
|
|
1927
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tssindex_free(ptr >>> 0, 1));
|
|
1107
1928
|
|
|
1108
1929
|
function addToExternrefTable0(obj) {
|
|
1109
1930
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -1111,6 +1932,12 @@ function addToExternrefTable0(obj) {
|
|
|
1111
1932
|
return idx;
|
|
1112
1933
|
}
|
|
1113
1934
|
|
|
1935
|
+
function _assertClass(instance, klass) {
|
|
1936
|
+
if (!(instance instanceof klass)) {
|
|
1937
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1114
1941
|
function debugString(val) {
|
|
1115
1942
|
// primitive types
|
|
1116
1943
|
const type = typeof val;
|
|
@@ -1176,6 +2003,22 @@ function debugString(val) {
|
|
|
1176
2003
|
return className;
|
|
1177
2004
|
}
|
|
1178
2005
|
|
|
2006
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
2007
|
+
ptr = ptr >>> 0;
|
|
2008
|
+
const mem = getDataViewMemory0();
|
|
2009
|
+
const result = [];
|
|
2010
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
2011
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
2012
|
+
}
|
|
2013
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
2014
|
+
return result;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
2018
|
+
ptr = ptr >>> 0;
|
|
2019
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
1179
2022
|
function getArrayU8FromWasm0(ptr, len) {
|
|
1180
2023
|
ptr = ptr >>> 0;
|
|
1181
2024
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -1189,11 +2032,27 @@ function getDataViewMemory0() {
|
|
|
1189
2032
|
return cachedDataViewMemory0;
|
|
1190
2033
|
}
|
|
1191
2034
|
|
|
2035
|
+
let cachedFloat64ArrayMemory0 = null;
|
|
2036
|
+
function getFloat64ArrayMemory0() {
|
|
2037
|
+
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
2038
|
+
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
2039
|
+
}
|
|
2040
|
+
return cachedFloat64ArrayMemory0;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
1192
2043
|
function getStringFromWasm0(ptr, len) {
|
|
1193
2044
|
ptr = ptr >>> 0;
|
|
1194
2045
|
return decodeText(ptr, len);
|
|
1195
2046
|
}
|
|
1196
2047
|
|
|
2048
|
+
let cachedUint32ArrayMemory0 = null;
|
|
2049
|
+
function getUint32ArrayMemory0() {
|
|
2050
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
2051
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
2052
|
+
}
|
|
2053
|
+
return cachedUint32ArrayMemory0;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
1197
2056
|
let cachedUint8ArrayMemory0 = null;
|
|
1198
2057
|
function getUint8ArrayMemory0() {
|
|
1199
2058
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -1215,6 +2074,13 @@ function isLikeNone(x) {
|
|
|
1215
2074
|
return x === undefined || x === null;
|
|
1216
2075
|
}
|
|
1217
2076
|
|
|
2077
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
2078
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
2079
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
2080
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2081
|
+
return ptr;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
1218
2084
|
function passArray8ToWasm0(arg, malloc) {
|
|
1219
2085
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1220
2086
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -1222,6 +2088,13 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
1222
2088
|
return ptr;
|
|
1223
2089
|
}
|
|
1224
2090
|
|
|
2091
|
+
function passArrayF64ToWasm0(arg, malloc) {
|
|
2092
|
+
const ptr = malloc(arg.length * 8, 8) >>> 0;
|
|
2093
|
+
getFloat64ArrayMemory0().set(arg, ptr / 8);
|
|
2094
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2095
|
+
return ptr;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
1225
2098
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
1226
2099
|
if (realloc === undefined) {
|
|
1227
2100
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -1299,6 +2172,8 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1299
2172
|
wasm = instance.exports;
|
|
1300
2173
|
wasmModule = module;
|
|
1301
2174
|
cachedDataViewMemory0 = null;
|
|
2175
|
+
cachedFloat64ArrayMemory0 = null;
|
|
2176
|
+
cachedUint32ArrayMemory0 = null;
|
|
1302
2177
|
cachedUint8ArrayMemory0 = null;
|
|
1303
2178
|
wasm.__wbindgen_start();
|
|
1304
2179
|
return wasm;
|