igv 2.10.3 → 2.10.4
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 +10 -10
- package/dist/igv.esm.js +8 -5
- package/dist/igv.esm.min.js +3 -3
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +5 -5
- package/dist/igv.min.js +3 -3
- package/dist/igv.min.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,19 +12,19 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
|
|
|
12
12
|
|
|
13
13
|
# Examples
|
|
14
14
|
|
|
15
|
-
***[Alignments](https://igv.org/web/release/2.10.
|
|
15
|
+
***[Alignments](https://igv.org/web/release/2.10.4/examples/cram-vcf.html)***
|
|
16
16
|
|
|
17
|
-
***[Interactions](https://igv.org/web/release/2.10.
|
|
17
|
+
***[Interactions](https://igv.org/web/release/2.10.4/examples/interact.html)***
|
|
18
18
|
|
|
19
|
-
***[Copy number](https://igv.org/web/release/2.10.
|
|
19
|
+
***[Copy number](https://igv.org/web/release/2.10.4/examples/copyNumber.html)***
|
|
20
20
|
|
|
21
|
-
***[Multiple regions](https://igv.org/web/release/2.10.
|
|
21
|
+
***[Multiple regions](https://igv.org/web/release/2.10.4/examples/multi-locus.html)***
|
|
22
22
|
|
|
23
|
-
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.10.
|
|
23
|
+
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.10.4/examples/maf-tcga.html)***
|
|
24
24
|
|
|
25
|
-
***[Variant color options](https://igv.org/web/release/2.10.
|
|
25
|
+
***[Variant color options](https://igv.org/web/release/2.10.4/examples/variant-colors.html)***
|
|
26
26
|
|
|
27
|
-
***[More](https://igv.org/web/release/2.10.
|
|
27
|
+
***[More](https://igv.org/web/release/2.10.4/examples/)***
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
# Quickstart
|
|
@@ -33,18 +33,18 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
|
|
|
33
33
|
igv.js consists of a single javascript file with no external dependencies.
|
|
34
34
|
|
|
35
35
|
Pre-built files for ES5 (igv.min.js) and ES6 (igv.esm.min.js)
|
|
36
|
-
can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.10.
|
|
36
|
+
can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.10.4/dist/](https://cdn.jsdelivr.net/npm/igv@2.10.4/dist/).
|
|
37
37
|
|
|
38
38
|
To import igv as an ES6 module
|
|
39
39
|
|
|
40
40
|
```javascript
|
|
41
|
-
import igv from "https://cdn.jsdelivr.net/npm/igv@2.10.
|
|
41
|
+
import igv from "https://cdn.jsdelivr.net/npm/igv@2.10.4/dist/igv.es6.min.js"
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Or as a script include (defines the "igv" global)
|
|
45
45
|
|
|
46
46
|
```html
|
|
47
|
-
<script src="https://cdn.jsdelivr.net/npm/igv@2.10.
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/igv@2.10.4/dist/igv.min.js"></script>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Alternatively you can install with npm
|
package/dist/igv.esm.js
CHANGED
|
@@ -8785,7 +8785,9 @@ function getFilename$1(urlOrFile) {
|
|
|
8785
8785
|
* @param object
|
|
8786
8786
|
*/
|
|
8787
8787
|
function isFile(object) {
|
|
8788
|
-
return object
|
|
8788
|
+
return object instanceof File ||
|
|
8789
|
+
(typeof object !== "function" &&
|
|
8790
|
+
object.hasOwnProperty("name") && object.hasOwnProperty("size") && object.hasOwnProperty("type"));
|
|
8789
8791
|
}
|
|
8790
8792
|
|
|
8791
8793
|
const isFilePath = isFile; // deprecated
|
|
@@ -22483,7 +22485,7 @@ const Cytoband = function (start, end, name, typestain) {
|
|
|
22483
22485
|
}
|
|
22484
22486
|
};
|
|
22485
22487
|
|
|
22486
|
-
const _version = "2.10.
|
|
22488
|
+
const _version = "2.10.4";
|
|
22487
22489
|
function version() {
|
|
22488
22490
|
return _version;
|
|
22489
22491
|
}
|
|
@@ -30348,7 +30350,7 @@ class FeatureFileReader {
|
|
|
30348
30350
|
this.indexURL = config.indexURL;
|
|
30349
30351
|
this.indexed = config.indexed;
|
|
30350
30352
|
|
|
30351
|
-
if (
|
|
30353
|
+
if (isFile(this.config.url)) {
|
|
30352
30354
|
this.filename = this.config.url.name;
|
|
30353
30355
|
} else if (isDataURL(this.config.url)) {
|
|
30354
30356
|
this.indexed = false; // by definition
|
|
@@ -41497,6 +41499,7 @@ function extractInfoColumn(data, str) {
|
|
|
41497
41499
|
* THE SOFTWARE.
|
|
41498
41500
|
*/
|
|
41499
41501
|
|
|
41502
|
+
|
|
41500
41503
|
const isString = isString$3;
|
|
41501
41504
|
|
|
41502
41505
|
|
|
@@ -41556,7 +41559,7 @@ class VariantTrack extends TrackBase {
|
|
|
41556
41559
|
|
|
41557
41560
|
this.header = await this.getHeader(); // cricital, don't remove'
|
|
41558
41561
|
if (undefined === this.visibilityWindow && this.config.indexed !== false) {
|
|
41559
|
-
const fn =
|
|
41562
|
+
const fn = isFile(this.config.url) ? this.config.url.name : this.config.url;
|
|
41560
41563
|
if (isString(fn) && fn.toLowerCase().includes("gnomad")) {
|
|
41561
41564
|
this.visibilityWindow = 1000; // these are known to be very dense
|
|
41562
41565
|
} else if (this.callSets) {
|
|
@@ -47660,7 +47663,7 @@ class Browser {
|
|
|
47660
47663
|
|
|
47661
47664
|
|
|
47662
47665
|
const locaTrackFiles = trackJson.filter((track) => {
|
|
47663
|
-
track.url &&
|
|
47666
|
+
track.url && isFile(track.url);
|
|
47664
47667
|
});
|
|
47665
47668
|
|
|
47666
47669
|
if (locaTrackFiles.length > 0) {
|