@genome-spy/core 0.31.2 → 0.32.1

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/dist/schema.json CHANGED
@@ -306,6 +306,36 @@
306
306
  ],
307
307
  "type": "object"
308
308
  },
309
+ "BamData": {
310
+ "additionalProperties": false,
311
+ "properties": {
312
+ "channel": {
313
+ "$ref": "#/definitions/PrimaryPositionalChannel",
314
+ "description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
315
+ },
316
+ "indexUrl": {
317
+ "description": "URL of the index file.\n\n__Default value:__ `url` + `\".bai\"`.",
318
+ "type": "string"
319
+ },
320
+ "type": {
321
+ "const": "bam",
322
+ "type": "string"
323
+ },
324
+ "url": {
325
+ "description": "URL of the BigBed file.",
326
+ "type": "string"
327
+ },
328
+ "windowSize": {
329
+ "description": "Size of each chunk when fetching the BigBed file. Data is only fetched when the length of the visible domain smaller than the window size.\n\n__Default value:__ `10000`",
330
+ "type": "number"
331
+ }
332
+ },
333
+ "required": [
334
+ "type",
335
+ "url"
336
+ ],
337
+ "type": "object"
338
+ },
309
339
  "Baseline": {
310
340
  "enum": [
311
341
  "top",
@@ -315,6 +345,58 @@
315
345
  ],
316
346
  "type": "string"
317
347
  },
348
+ "BigBedData": {
349
+ "additionalProperties": false,
350
+ "properties": {
351
+ "channel": {
352
+ "$ref": "#/definitions/PrimaryPositionalChannel",
353
+ "description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
354
+ },
355
+ "type": {
356
+ "const": "bigbed",
357
+ "type": "string"
358
+ },
359
+ "url": {
360
+ "description": "URL of the BigBed file.",
361
+ "type": "string"
362
+ },
363
+ "windowSize": {
364
+ "description": "Size of each chunk when fetching the BigBed file. Data is only fetched when the length of the visible domain smaller than the window size.\n\n__Default value:__ `1000000`",
365
+ "type": "number"
366
+ }
367
+ },
368
+ "required": [
369
+ "type",
370
+ "url"
371
+ ],
372
+ "type": "object"
373
+ },
374
+ "BigWigData": {
375
+ "additionalProperties": false,
376
+ "properties": {
377
+ "channel": {
378
+ "$ref": "#/definitions/PrimaryPositionalChannel",
379
+ "description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
380
+ },
381
+ "pixelsPerBin": {
382
+ "description": "The approximate minimum width of each data bin, in pixels.\n\n__Default value:__ `2`",
383
+ "type": "number"
384
+ },
385
+ "type": {
386
+ "const": "bigwig",
387
+ "type": "string"
388
+ },
389
+ "url": {
390
+ "description": "URL of the BigWig file.",
391
+ "type": "string"
392
+ }
393
+ },
394
+ "required": [
395
+ "type",
396
+ "url"
397
+ ],
398
+ "type": "object"
399
+ },
318
400
  "Channel": {
319
401
  "anyOf": [
320
402
  {
@@ -827,7 +909,7 @@
827
909
  "$ref": "#/definitions/DynamicCallbackData"
828
910
  },
829
911
  {
830
- "$ref": "#/definitions/DynamicData"
912
+ "$ref": "#/definitions/LazyData"
831
913
  }
832
914
  ]
833
915
  },
@@ -883,28 +965,6 @@
883
965
  ],
884
966
  "type": "object"
885
967
  },
886
- "DynamicData": {
887
- "additionalProperties": false,
888
- "properties": {
889
- "dynamic": {
890
- "$ref": "#/definitions/DynamicDataParams"
891
- }
892
- },
893
- "required": [
894
- "dynamic"
895
- ],
896
- "type": "object"
897
- },
898
- "DynamicDataParams": {
899
- "anyOf": [
900
- {
901
- "$ref": "#/definitions/AxisTicksData"
902
- },
903
- {
904
- "$ref": "#/definitions/AxisGenomeData"
905
- }
906
- ]
907
- },
908
968
  "DynamicOpacity": {
909
969
  "additionalProperties": false,
910
970
  "description": "DynamicOpacity specifies a zoom-dependent behavior for view opacity. The opacity is interpolated between the specified stops.",
@@ -1538,6 +1598,36 @@
1538
1598
  ],
1539
1599
  "type": "object"
1540
1600
  },
1601
+ "IndexedFastaData": {
1602
+ "additionalProperties": false,
1603
+ "properties": {
1604
+ "channel": {
1605
+ "$ref": "#/definitions/PrimaryPositionalChannel",
1606
+ "description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
1607
+ },
1608
+ "indexUrl": {
1609
+ "description": "URL of the index file.\n\n__Default value:__ `url` + `\".fai\"`.",
1610
+ "type": "string"
1611
+ },
1612
+ "type": {
1613
+ "const": "indexedFasta",
1614
+ "type": "string"
1615
+ },
1616
+ "url": {
1617
+ "description": "URL of the fasta file.",
1618
+ "type": "string"
1619
+ },
1620
+ "windowSize": {
1621
+ "description": "Size of each chunk when fetching the fasta file. Data is only fetched when the length of the visible domain smaller than the window size.\n\n__Default value:__ `7000`",
1622
+ "type": "number"
1623
+ }
1624
+ },
1625
+ "required": [
1626
+ "type",
1627
+ "url"
1628
+ ],
1629
+ "type": "object"
1630
+ },
1541
1631
  "InlineData": {
1542
1632
  "additionalProperties": false,
1543
1633
  "properties": {
@@ -1777,6 +1867,40 @@
1777
1867
  ],
1778
1868
  "type": "object"
1779
1869
  },
1870
+ "LazyData": {
1871
+ "additionalProperties": false,
1872
+ "properties": {
1873
+ "lazy": {
1874
+ "$ref": "#/definitions/LazyDataParams"
1875
+ }
1876
+ },
1877
+ "required": [
1878
+ "lazy"
1879
+ ],
1880
+ "type": "object"
1881
+ },
1882
+ "LazyDataParams": {
1883
+ "anyOf": [
1884
+ {
1885
+ "$ref": "#/definitions/AxisTicksData"
1886
+ },
1887
+ {
1888
+ "$ref": "#/definitions/AxisGenomeData"
1889
+ },
1890
+ {
1891
+ "$ref": "#/definitions/IndexedFastaData"
1892
+ },
1893
+ {
1894
+ "$ref": "#/definitions/BigWigData"
1895
+ },
1896
+ {
1897
+ "$ref": "#/definitions/BigBedData"
1898
+ },
1899
+ {
1900
+ "$ref": "#/definitions/BamData"
1901
+ }
1902
+ ]
1903
+ },
1780
1904
  "LinearizeGenomicCoordinateParams": {
1781
1905
  "additionalProperties": false,
1782
1906
  "properties": {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "contributors": [],
9
9
  "license": "MIT",
10
- "version": "0.31.2",
10
+ "version": "0.32.1",
11
11
  "main": "dist/index.js",
12
12
  "module": "dist/index.es.js",
13
13
  "exports": {
@@ -37,12 +37,17 @@
37
37
  "build:schema": "mkdir -p dist && ts-json-schema-generator --path 'src/spec/*.ts' --type RootSpec > dist/schema.json"
38
38
  },
39
39
  "dependencies": {
40
+ "@gmod/bam": "^1.1.18",
41
+ "@gmod/bbi": "^4.0.0",
42
+ "@gmod/bed": "^2.1.2",
43
+ "@gmod/indexedfasta": "^2.0.4",
40
44
  "@types/d3-array": "^3.0.2",
41
45
  "@types/d3-dsv": "^3.0.0",
42
46
  "@types/d3-ease": "^3.0.0",
43
47
  "@types/d3-format": "^3.0.1",
44
48
  "@types/d3-interpolate": "^3.0.1",
45
49
  "@types/d3-scale": "^4.0.2",
50
+ "buffer": "^6.0.3",
46
51
  "d3-array": "^3.1.1",
47
52
  "d3-color": "^3.0.1",
48
53
  "d3-ease": "^3.0.1",
@@ -56,5 +61,5 @@
56
61
  "vega-scale": "^7.1.1",
57
62
  "vega-util": "^1.16.0"
58
63
  },
59
- "gitHead": "c29482b83972de8f18b0283b3a93f8dbcbb6af9d"
64
+ "gitHead": "c7565c2c1c76c6ec21202c50d91ad13b15ff7efe"
60
65
  }