igv 2.15.0 → 2.15.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/README.md CHANGED
@@ -18,19 +18,19 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
18
18
 
19
19
  # Examples
20
20
 
21
- ***[Alignments](https://igv.org/web/release/2.13.9/examples/cram-vcf.html)***
21
+ ***[Alignments](https://igv.org/web/release/2.15.1/examples/cram-vcf.html)***
22
22
 
23
- ***[Interactions](https://igv.org/web/release/2.13.9/examples/interact.html)***
23
+ ***[Interactions](https://igv.org/web/release/2.15.1/examples/interact.html)***
24
24
 
25
- ***[Copy number](https://igv.org/web/release/2.13.9/examples/copyNumber.html)***
25
+ ***[Copy number](https://igv.org/web/release/2.15.1/examples/copyNumber.html)***
26
26
 
27
- ***[Multiple regions](https://igv.org/web/release/2.13.9/examples/multi-locus.html)***
27
+ ***[Multiple regions](https://igv.org/web/release/2.15.1/examples/multi-locus.html)***
28
28
 
29
- ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.13.9/examples/maf-tcga.html)***
29
+ ***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.1/examples/maf-tcga.html)***
30
30
 
31
- ***[Variant color options](https://igv.org/web/release/2.13.9/examples/variant-colors.html)***
31
+ ***[Variant color options](https://igv.org/web/release/2.15.1/examples/variant-colors.html)***
32
32
 
33
- ***[More](https://igv.org/web/release/2.13.9/examples/)***
33
+ ***[More](https://igv.org/web/release/2.15.1/examples/)***
34
34
 
35
35
 
36
36
  # Quickstart
@@ -39,18 +39,18 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
39
39
  igv.js consists of a single javascript file with no external dependencies.
40
40
 
41
41
  Pre-built files for script include, AMD, or CJS module systems (igv.min.js) and an ES6 module (igv.esm.min.js)
42
- can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.13.9/dist/](https://cdn.jsdelivr.net/npm/igv@2.13.9/dist/).
42
+ can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/](https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/).
43
43
 
44
44
  To import igv as an ES6 module
45
45
 
46
46
  ```javascript
47
- import igv from "https://cdn.jsdelivr.net/npm/igv@2.13.9/dist/igv.esm.min.js"
47
+ import igv from "https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/igv.esm.min.js"
48
48
  ```
49
49
 
50
50
  Or as a script include (defines the "igv" global)
51
51
 
52
52
  ```html
53
- <script src="https://cdn.jsdelivr.net/npm/igv@2.13.9/dist/igv.min.js"></script>
53
+ <script src="https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/igv.min.js"></script>
54
54
  ```
55
55
 
56
56
  Alternatively you can install with npm
package/dist/igv.esm.js CHANGED
@@ -23922,7 +23922,7 @@ const Cytoband = function (start, end, name, typestain) {
23922
23922
  }
23923
23923
  };
23924
23924
 
23925
- const _version = "2.15.0";
23925
+ const _version = "2.15.1";
23926
23926
  function version() {
23927
23927
  return _version
23928
23928
  }
@@ -25916,7 +25916,25 @@ function decodeBed(tokens, header) {
25916
25916
  }
25917
25917
 
25918
25918
  if (tokens.length > 11) {
25919
- const exons = decodeExons(tokens[9], tokens[10], tokens[11]);
25919
+ const exonCount = parseInt(tokens[9]);
25920
+ // Some basic validation
25921
+ if (exonCount > 1000) {
25922
+ // unlikely
25923
+ return feature
25924
+ }
25925
+
25926
+ const exonSizes = tokens[10].replace(/,$/, '').split(',');
25927
+ const exonStarts = tokens[11].replace(/,$/, '').split(',');
25928
+ if (!(exonSizes.length === exonStarts.length && exonCount === exonSizes.length)) {
25929
+ return feature
25930
+ }
25931
+
25932
+ const exons = [];
25933
+ for (let i = 0; i < exonCount; i++) {
25934
+ const eStart = start + parseInt(exonStarts[i]);
25935
+ const eEnd = eStart + parseInt(exonSizes[i]);
25936
+ exons.push({start: eStart, end: eEnd});
25937
+ }
25920
25938
  if (exons.length > 0) {
25921
25939
  findUTRs$1(exons, feature.cdStart, feature.cdEnd);
25922
25940
  feature.exons = exons;
@@ -25940,7 +25958,6 @@ function decodeBed(tokens, header) {
25940
25958
  }
25941
25959
 
25942
25960
  return feature
25943
-
25944
25961
  }
25945
25962
 
25946
25963
  /**