From b8002564cb54e72802d802ae19b26cb97cbe63d9 Mon Sep 17 00:00:00 2001
From: jrobinso <933148+jrobinso@users.noreply.github.com>
Date: Thu, 30 Mar 2023 20:51:55 -0700
Subject: [PATCH] bam chunk optimization
---
README.md | 20 ++++++++++----------
js/bam/indexUtils.js | 2 +-
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index 67063e78c..d61034d8c 100644
--- a/README.md
+++ b/README.md
@@ -18,19 +18,19 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
# Examples
-***[Alignments](https://igv.org/web/release/2.15.1/examples/cram-vcf.html)***
+***[Alignments](https://igv.org/web/release/2.15.2/examples/cram-vcf.html)***
-***[Interactions](https://igv.org/web/release/2.15.1/examples/interact.html)***
+***[Interactions](https://igv.org/web/release/2.15.2/examples/interact.html)***
-***[Copy number](https://igv.org/web/release/2.15.1/examples/copyNumber.html)***
+***[Copy number](https://igv.org/web/release/2.15.2/examples/copyNumber.html)***
-***[Multiple regions](https://igv.org/web/release/2.15.1/examples/multi-locus.html)***
+***[Multiple regions](https://igv.org/web/release/2.15.2/examples/multi-locus.html)***
-***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.1/examples/maf-tcga.html)***
+***[Mutation Annotation Format (MAF)](https://igv.org/web/release/2.15.2/examples/maf-tcga.html)***
-***[Variant color options](https://igv.org/web/release/2.15.1/examples/variant-colors.html)***
+***[Variant color options](https://igv.org/web/release/2.15.2/examples/variant-colors.html)***
-***[More](https://igv.org/web/release/2.15.1/examples/)***
+***[More](https://igv.org/web/release/2.15.2/examples/)***
# Quickstart
@@ -39,18 +39,18 @@ Below are examples and a quickstart guide. See the [Wiki](https://github.com/ig
igv.js consists of a single javascript file with no external dependencies.
Pre-built files for script include, AMD, or CJS module systems (igv.min.js) and an ES6 module (igv.esm.min.js)
-can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/](https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/).
+can be downloaded from [https://cdn.jsdelivr.net/npm/igv@2.15.2/dist/](https://cdn.jsdelivr.net/npm/igv@2.15.2/dist/).
To import igv as an ES6 module
```javascript
-import igv from "https://cdn.jsdelivr.net/npm/igv@2.15.1/dist/igv.esm.min.js"
+import igv from "https://cdn.jsdelivr.net/npm/igv@2.15.2/dist/igv.esm.min.js"
```
Or as a script include (defines the "igv" global)
```html
-
+
```
Alternatively you can install with npm
diff --git a/js/bam/indexUtils.js b/js/bam/indexUtils.js
index a196157a6..3bc4fbf89 100644
--- a/js/bam/indexUtils.js
+++ b/js/bam/indexUtils.js
@@ -67,7 +67,7 @@ function optimizeChunks(chunks, lowest) {
function canMerge(chunk1, chunk2) {
const gap = chunk2.minv.block - chunk1.maxv.block
const sizeEstimate = chunk1.maxv.block - chunk1.minv.block
- return gap < 65000 && sizeEstimate < 5000000
+ return sizeEstimate < 5000000
}
export {optimizeChunks}