igv 3.7.3 → 3.8.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 +18 -25
- package/dist/igv.d.ts +2 -2
- package/dist/igv.esm.js +28969 -28590
- package/dist/igv.esm.min.js +12 -12
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +28969 -28590
- package/dist/igv.min.js +12 -12
- package/dist/igv.min.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -18,19 +18,19 @@ Below are examples and a quickstart guide. See the [developer documentation](ht
|
|
|
18
18
|
|
|
19
19
|
# Examples
|
|
20
20
|
|
|
21
|
-
***[Alignments](https://igv.org/web/release/3.
|
|
21
|
+
***[Alignments](https://igv.org/web/release/3.8.1/examples/cram-vcf.html)***
|
|
22
22
|
|
|
23
|
-
***[Interactions](https://igv.org/web/release/3.
|
|
23
|
+
***[Interactions](https://igv.org/web/release/3.8.1/examples/interact.html)***
|
|
24
24
|
|
|
25
|
-
***[Copy number](https://igv.org/web/release/3.
|
|
25
|
+
***[Copy number](https://igv.org/web/release/3.8.1/examples/copyNumber.html)***
|
|
26
26
|
|
|
27
|
-
***[Multiple regions](https://igv.org/web/release/3.
|
|
27
|
+
***[Multiple regions](https://igv.org/web/release/3.8.1/examples/multi-locus.html)***
|
|
28
28
|
|
|
29
|
-
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.
|
|
29
|
+
***[Mutation Annotation Format (MAF)](https://igv.org/web/release/3.8.1/examples/maf-tcga.html)***
|
|
30
30
|
|
|
31
|
-
***[Variant color options](https://igv.org/web/release/3.
|
|
31
|
+
***[Variant color options](https://igv.org/web/release/3.8.1/examples/variant-colors.html)***
|
|
32
32
|
|
|
33
|
-
***[More](https://igv.org/web/release/3.
|
|
33
|
+
***[More](https://igv.org/web/release/3.8.1/examples/)***
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
# Quickstart
|
|
@@ -39,18 +39,18 @@ Below are examples and a quickstart guide. See the [developer documentation](ht
|
|
|
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@3.
|
|
42
|
+
can be downloaded from [https://cdn.jsdelivr.net/npm/igv@3.8.1/dist/](https://cdn.jsdelivr.net/npm/igv@3.8.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@3.
|
|
47
|
+
import igv from "https://cdn.jsdelivr.net/npm/igv@3.8.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@3.
|
|
53
|
+
<script src="https://cdn.jsdelivr.net/npm/igv@3.8.1/dist/igv.min.js"></script>
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
Alternatively you can install with npm
|
|
@@ -121,6 +121,14 @@ npm install
|
|
|
121
121
|
npm run build
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
+
**Note**: igv.js has a large history with many commits which can make cloning and building the entire history time consuming.
|
|
125
|
+
To clone just the latest commit, use the ```--depth``` option, for example
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
git clone --depth 1 https://github.com/igvteam/igv.js.git
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
|
|
124
132
|
This creates a dist folder with the following files
|
|
125
133
|
|
|
126
134
|
* igv.js - UMDS file for script include, AMD, or CJS modules. A script include will define an "igv" global.
|
|
@@ -131,7 +139,6 @@ This creates a dist folder with the following files
|
|
|
131
139
|
Additionally the file ```embedCSS.js``` is created in the ```js``` folder. This contains the CSS required for igv.js,
|
|
132
140
|
which is injected into a shadow root containing igv.js.
|
|
133
141
|
|
|
134
|
-
|
|
135
142
|
### Tests
|
|
136
143
|
|
|
137
144
|
To run the tests from the command line
|
|
@@ -140,20 +147,6 @@ To run the tests from the command line
|
|
|
140
147
|
npm run test
|
|
141
148
|
```
|
|
142
149
|
|
|
143
|
-
|
|
144
|
-
### Examples
|
|
145
|
-
|
|
146
|
-
To run the examples install [http-server](https://www.npmjs.com/package/http-server).
|
|
147
|
-
|
|
148
|
-
Start http-server from the project root directory
|
|
149
|
-
|
|
150
|
-
```bash
|
|
151
|
-
npx http-server
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
Then open [http://localhost:8080/examples](http://localhost:8080/examples) in a web browser.
|
|
155
|
-
|
|
156
|
-
|
|
157
150
|
# Supported Browsers
|
|
158
151
|
|
|
159
152
|
igv.js require a modern web browser with support for Javascript ECMAScript 2015 (ES6).
|
package/dist/igv.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare class Opaque<N extends string> {
|
|
|
11
11
|
|
|
12
12
|
export type TrackType =
|
|
13
13
|
"annotation" | "wig" | "alignment" | "variant" | "mut" | "seg" |
|
|
14
|
-
"gwas" | "interact" | 'interaction' | "qtl" | "junction" | "cnvpytor" | "merged" | "arc" |
|
|
14
|
+
"gwas" | "interact" | 'interaction' | "qtl" | "junction" | "cnvpytor" | "merged" | "arc" | "longrange" |
|
|
15
15
|
/* undocumented options */
|
|
16
16
|
"snp" | "eqtl";
|
|
17
17
|
|
|
@@ -384,7 +384,7 @@ export namespace Tracks {
|
|
|
384
384
|
});
|
|
385
385
|
|
|
386
386
|
|
|
387
|
-
export type InteractFormat = "interact" | "bedpe" | "bigInteract" | "bb" | "hic";
|
|
387
|
+
export type InteractFormat = "interact" | "bedpe" | "bigInteract" | "bb" | "hic" | "longrange";
|
|
388
388
|
|
|
389
389
|
export type InteractTrackOptions = {
|
|
390
390
|
arcType?: "nested" | "proportional" | "inView" | "partialInView";
|