igv 2.12.3 → 2.12.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 +30 -15
- package/dist/igv.esm.min.js +4 -4
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +34 -14
- package/dist/igv.min.js +4 -4
- package/dist/igv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/igv.js
CHANGED
|
@@ -20670,9 +20670,18 @@
|
|
|
20670
20670
|
|
|
20671
20671
|
|
|
20672
20672
|
getState() {
|
|
20673
|
-
const config =
|
|
20674
|
-
|
|
20675
|
-
|
|
20673
|
+
const config = {
|
|
20674
|
+
type: "sequence"
|
|
20675
|
+
};
|
|
20676
|
+
|
|
20677
|
+
if (this.order !== defaultSequenceTrackOrder) {
|
|
20678
|
+
config.order = this.order;
|
|
20679
|
+
}
|
|
20680
|
+
|
|
20681
|
+
if (this.reversed) {
|
|
20682
|
+
config.revealed = true;
|
|
20683
|
+
}
|
|
20684
|
+
|
|
20676
20685
|
return config;
|
|
20677
20686
|
}
|
|
20678
20687
|
|
|
@@ -23113,7 +23122,7 @@
|
|
|
23113
23122
|
}
|
|
23114
23123
|
};
|
|
23115
23124
|
|
|
23116
|
-
const _version = "2.12.
|
|
23125
|
+
const _version = "2.12.4";
|
|
23117
23126
|
|
|
23118
23127
|
function version$1() {
|
|
23119
23128
|
return _version;
|
|
@@ -24646,10 +24655,10 @@
|
|
|
24646
24655
|
(module.exports = function (key, value) {
|
|
24647
24656
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
24648
24657
|
})('versions', []).push({
|
|
24649
|
-
version: '3.22.
|
|
24658
|
+
version: '3.22.2',
|
|
24650
24659
|
mode: 'global',
|
|
24651
24660
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
24652
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
24661
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE',
|
|
24653
24662
|
source: 'https://github.com/zloirock/core-js'
|
|
24654
24663
|
});
|
|
24655
24664
|
});
|
|
@@ -45645,7 +45654,7 @@
|
|
|
45645
45654
|
}
|
|
45646
45655
|
|
|
45647
45656
|
get supportsWholeGenome() {
|
|
45648
|
-
return
|
|
45657
|
+
return this.config.supportsWholeGenome === true;
|
|
45649
45658
|
}
|
|
45650
45659
|
/**
|
|
45651
45660
|
* Does the track support sample names. Current sample aware tracks include VCF (with genotypes), MUT, MAF, and SEG
|
|
@@ -56182,7 +56191,7 @@
|
|
|
56182
56191
|
const len = Math.min(rows.length, maxRows);
|
|
56183
56192
|
|
|
56184
56193
|
for (r = 0; r < len; r++) {
|
|
56185
|
-
if (feature.start
|
|
56194
|
+
if (feature.start >= rows[r]) {
|
|
56186
56195
|
feature.row = r;
|
|
56187
56196
|
rows[r] = feature.end;
|
|
56188
56197
|
break;
|
|
@@ -57655,7 +57664,7 @@
|
|
|
57655
57664
|
}
|
|
57656
57665
|
|
|
57657
57666
|
supportsWholeGenome() {
|
|
57658
|
-
return this.reader.type === "bigwig"
|
|
57667
|
+
return this.reader.type === "bigwig";
|
|
57659
57668
|
}
|
|
57660
57669
|
|
|
57661
57670
|
async trackType() {
|
|
@@ -58913,7 +58922,15 @@
|
|
|
58913
58922
|
}
|
|
58914
58923
|
|
|
58915
58924
|
get supportsWholeGenome() {
|
|
58916
|
-
|
|
58925
|
+
if (this.config.supportsWholeGenome !== undefined) {
|
|
58926
|
+
return this.config.supportsWholeGenome;
|
|
58927
|
+
} else if (this.featureSource && typeof this.featureSource.supportsWholeGenome === 'function') {
|
|
58928
|
+
return this.featureSource.supportsWholeGenome();
|
|
58929
|
+
} else {
|
|
58930
|
+
if (this.visibilityWindow === undefined && (this.config.indexed === false || !this.config.indexURL)) {
|
|
58931
|
+
return true;
|
|
58932
|
+
}
|
|
58933
|
+
}
|
|
58917
58934
|
}
|
|
58918
58935
|
|
|
58919
58936
|
async getFeatures(chr, start, end, bpPerPixel) {
|
|
@@ -61480,9 +61497,9 @@
|
|
|
61480
61497
|
'fillStyle': "rgb(255, 255, 255)"
|
|
61481
61498
|
});
|
|
61482
61499
|
const vGap = "SQUISHED" === this.displayMode ? this.squishedVGap : this.expandedVGap;
|
|
61483
|
-
const
|
|
61500
|
+
const rowCount = "COLLAPSED" === this.displayMode ? 1 : this.nVariantRows;
|
|
61484
61501
|
const variantHeight = "SQUISHED" === this.displayMode ? this.squishedVariantHeight : this.expandedVariantHeight;
|
|
61485
|
-
this.variantBandHeight = TOP_MARGIN +
|
|
61502
|
+
this.variantBandHeight = TOP_MARGIN + rowCount * (variantHeight + vGap);
|
|
61486
61503
|
const callSets = this.callSets;
|
|
61487
61504
|
const nCalls = this.getCallsetsLength();
|
|
61488
61505
|
|
|
@@ -61624,7 +61641,10 @@
|
|
|
61624
61641
|
// Variant
|
|
61625
61642
|
const variantHeight = "SQUISHED" === this.displayMode ? this.squishedVariantHeight : this.expandedVariantHeight;
|
|
61626
61643
|
const variantRow = Math.floor((yOffset - TOP_MARGIN) / (variantHeight + vGap));
|
|
61627
|
-
|
|
61644
|
+
|
|
61645
|
+
if ("COLLAPSED" !== this.displayMode) {
|
|
61646
|
+
featureList = featureList.filter(f => f.row === variantRow);
|
|
61647
|
+
}
|
|
61628
61648
|
} else if (this.callSets) {
|
|
61629
61649
|
const callSets = this.callSets;
|
|
61630
61650
|
const sampleY = yOffset - this.variantBandHeight;
|
|
@@ -61632,7 +61652,7 @@
|
|
|
61632
61652
|
|
|
61633
61653
|
if (sampleRow >= 0 && sampleRow < callSets.length) {
|
|
61634
61654
|
const variantRow = Math.floor((sampleY - sampleRow * this.sampleHeight) / callHeight);
|
|
61635
|
-
const variants = featureList.filter(f => f.row === variantRow);
|
|
61655
|
+
const variants = "COLLAPSED" === this.displayMode ? featureList : featureList.filter(f => f.row === variantRow);
|
|
61636
61656
|
const cs = callSets[sampleRow];
|
|
61637
61657
|
featureList = variants.map(v => {
|
|
61638
61658
|
const call = v.calls[cs.id];
|