@jbrowse/bandage-core 9.4.0 → 9.5.0

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.
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var version = "9.4.0";
2
+ var version = "9.5.0";
3
3
 
4
4
  export {
5
5
  version
@@ -18,6 +18,7 @@ var UNTANGLE_LINKS = 3;
18
18
  var UNTANGLE_PUSH = 0.3;
19
19
  var SMOOTH_PASSES = 2;
20
20
  var MAX_HOPS = 200;
21
+ var REFERENCE_HOPS = 20;
21
22
  var EPS = 0.1;
22
23
  var WARM = 0.5;
23
24
  function flipped(strand, name) {
@@ -238,7 +239,8 @@ function stressLayout(request, opts = {}) {
238
239
  let idx = c.indexOf[i];
239
240
  let dir = rand() < 0.5 ? -1 : 1;
240
241
  let remaining = length;
241
- for (let hops = 0; hops < MAX_HOPS; hops++) {
242
+ const maxHops = refIdx[comp[i]].length >= 2 ? REFERENCE_HOPS : MAX_HOPS;
243
+ for (let hops = 0; hops < maxHops; hops++) {
242
244
  const points = count[chain];
243
245
  const step = per[chain];
244
246
  const toEnd = (dir > 0 ? points - 1 - idx : idx) * step;
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-BR25DGIJ.js";
46
46
  import {
47
47
  version
48
- } from "./chunk-BIGORSXS.js";
48
+ } from "./chunk-DW4ZNIZH.js";
49
49
  import {
50
50
  walkRowLabels,
51
51
  walkRowsExtent
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  stressLayout
3
- } from "./chunk-UNOE2NDN.js";
3
+ } from "./chunk-Q6FRNVDU.js";
4
4
  import {
5
5
  loadBandage
6
6
  } from "./chunk-7XHHVYG7.js";
@@ -14,7 +14,7 @@ var LAYOUT_ENGINES = [
14
14
  },
15
15
  {
16
16
  value: "stress",
17
- label: "Stress (experimental)",
17
+ label: "Stress",
18
18
  description: "Stress layout by stochastic gradient descent in plain JS: distances along the graph become distances on the page, so the reference reads straight and a repeat loop reads as a ring."
19
19
  }
20
20
  ];
@@ -8,8 +8,8 @@ import {
8
8
  LAYOUT_ENGINE_VALUES,
9
9
  isLayoutEngineKind,
10
10
  layoutEngine
11
- } from "../chunks/chunk-6EJIU6IA.js";
12
- import "../chunks/chunk-UNOE2NDN.js";
11
+ } from "../chunks/chunk-VK6XMP6B.js";
12
+ import "../chunks/chunk-Q6FRNVDU.js";
13
13
  import "../chunks/chunk-LYJ4US66.js";
14
14
  import {
15
15
  LAYOUT_MODES,
@@ -35,7 +35,7 @@ import "../chunks/chunk-LTUWJKHD.js";
35
35
  import "../chunks/chunk-WSIFAZU7.js";
36
36
  import {
37
37
  figureSvg
38
- } from "../chunks/chunk-4DEOECM3.js";
38
+ } from "../chunks/chunk-T6EGLY2R.js";
39
39
  import "../chunks/chunk-UD5FOCI2.js";
40
40
  import "../chunks/chunk-WBCOREDZ.js";
41
41
  import "../chunks/chunk-4BYTEJGW.js";
@@ -54,7 +54,7 @@ import "../chunks/chunk-2LQ5BWT7.js";
54
54
  import "../chunks/chunk-OXTR3BVF.js";
55
55
  import "../chunks/chunk-BR25DGIJ.js";
56
56
  import "../chunks/chunk-G2FD7S3C.js";
57
- import "../chunks/chunk-BIGORSXS.js";
57
+ import "../chunks/chunk-DW4ZNIZH.js";
58
58
  import "../chunks/chunk-3C5UXR2U.js";
59
59
  import {
60
60
  filterSamples,
package/dist/figure.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  figureSvg
3
- } from "./chunks/chunk-4DEOECM3.js";
3
+ } from "./chunks/chunk-T6EGLY2R.js";
4
4
  import "./chunks/chunk-UD5FOCI2.js";
5
5
  import "./chunks/chunk-WBCOREDZ.js";
6
6
  import "./chunks/chunk-4BYTEJGW.js";
@@ -16,7 +16,7 @@ import "./chunks/chunk-2LQ5BWT7.js";
16
16
  import "./chunks/chunk-OXTR3BVF.js";
17
17
  import "./chunks/chunk-BR25DGIJ.js";
18
18
  import "./chunks/chunk-G2FD7S3C.js";
19
- import "./chunks/chunk-BIGORSXS.js";
19
+ import "./chunks/chunk-DW4ZNIZH.js";
20
20
  import "./chunks/chunk-3C5UXR2U.js";
21
21
  import "./chunks/chunk-MAUEPAMG.js";
22
22
  import "./chunks/chunk-7GBL7SJY.js";
package/dist/index.js CHANGED
@@ -74,10 +74,10 @@ import {
74
74
  import {
75
75
  LAYOUT_ENGINES,
76
76
  layoutEngine
77
- } from "./chunks/chunk-6EJIU6IA.js";
77
+ } from "./chunks/chunk-VK6XMP6B.js";
78
78
  import {
79
79
  stressLayout
80
- } from "./chunks/chunk-UNOE2NDN.js";
80
+ } from "./chunks/chunk-Q6FRNVDU.js";
81
81
  import "./chunks/chunk-LYJ4US66.js";
82
82
  import {
83
83
  FORCE_LAYOUT_LABEL,
@@ -119,7 +119,7 @@ import {
119
119
  } from "./chunks/chunk-AZFVORTC.js";
120
120
  import {
121
121
  figureSvg
122
- } from "./chunks/chunk-4DEOECM3.js";
122
+ } from "./chunks/chunk-T6EGLY2R.js";
123
123
  import {
124
124
  WALK_STRIP_CEILING_PX,
125
125
  cutsWholeWalks,
@@ -219,7 +219,7 @@ import {
219
219
  import "./chunks/chunk-G2FD7S3C.js";
220
220
  import {
221
221
  version
222
- } from "./chunks/chunk-BIGORSXS.js";
222
+ } from "./chunks/chunk-DW4ZNIZH.js";
223
223
  import {
224
224
  walkRowLabels,
225
225
  walkRowsExtent
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  chains,
3
3
  stressLayout
4
- } from "../chunks/chunk-UNOE2NDN.js";
4
+ } from "../chunks/chunk-Q6FRNVDU.js";
5
5
  import "../chunks/chunk-LYJ4US66.js";
6
6
  import "../chunks/chunk-JVLURPFW.js";
7
7
  import "../chunks/chunk-FYQWPEEY.js";
@@ -3,8 +3,8 @@ import {
3
3
  LAYOUT_ENGINE_VALUES,
4
4
  isLayoutEngineKind,
5
5
  layoutEngine
6
- } from "./chunks/chunk-6EJIU6IA.js";
7
- import "./chunks/chunk-UNOE2NDN.js";
6
+ } from "./chunks/chunk-VK6XMP6B.js";
7
+ import "./chunks/chunk-Q6FRNVDU.js";
8
8
  import "./chunks/chunk-LYJ4US66.js";
9
9
  import "./chunks/chunk-7XHHVYG7.js";
10
10
  import "./chunks/chunk-JVLURPFW.js";
@@ -5,7 +5,7 @@ export declare const LAYOUT_ENGINES: readonly [{
5
5
  readonly description: "Bandage's force-directed layout: OGDF's fast multipole multilevel method, compiled to wasm.";
6
6
  }, {
7
7
  readonly value: "stress";
8
- readonly label: "Stress (experimental)";
8
+ readonly label: "Stress";
9
9
  readonly description: "Stress layout by stochastic gradient descent in plain JS: distances along the graph become distances on the page, so the reference reads straight and a repeat loop reads as a ring.";
10
10
  }];
11
11
  export type LayoutEngineKind = (typeof LAYOUT_ENGINES)[number]['value'];
@@ -1 +1 @@
1
- export declare const version = "9.4.0";
1
+ export declare const version = "9.5.0";
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  version
3
- } from "./chunks/chunk-BIGORSXS.js";
3
+ } from "./chunks/chunk-DW4ZNIZH.js";
4
4
  export {
5
5
  version
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/bandage-core",
3
- "version": "9.4.0",
3
+ "version": "9.5.0",
4
4
  "description": "Pangenome graph layout and drawing with no host: GFA in, the Bandage force-directed engine and reference-anchored layouts, a Canvas2D renderer, hit testing and labels out",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {