@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.
- package/dist/chunks/{chunk-BIGORSXS.js → chunk-DW4ZNIZH.js} +1 -1
- package/dist/chunks/{chunk-UNOE2NDN.js → chunk-Q6FRNVDU.js} +3 -1
- package/dist/chunks/{chunk-4DEOECM3.js → chunk-T6EGLY2R.js} +1 -1
- package/dist/chunks/{chunk-6EJIU6IA.js → chunk-VK6XMP6B.js} +2 -2
- package/dist/cli/figure.js +4 -4
- package/dist/figure.js +2 -2
- package/dist/index.js +4 -4
- package/dist/layout/stressEngine.js +1 -1
- package/dist/layoutEngines.js +2 -2
- package/dist/types/layoutEngines.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
stressLayout
|
|
3
|
-
} from "./chunk-
|
|
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
|
|
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
|
];
|
package/dist/cli/figure.js
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
LAYOUT_ENGINE_VALUES,
|
|
9
9
|
isLayoutEngineKind,
|
|
10
10
|
layoutEngine
|
|
11
|
-
} from "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
77
|
+
} from "./chunks/chunk-VK6XMP6B.js";
|
|
78
78
|
import {
|
|
79
79
|
stressLayout
|
|
80
|
-
} from "./chunks/chunk-
|
|
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-
|
|
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-
|
|
222
|
+
} from "./chunks/chunk-DW4ZNIZH.js";
|
|
223
223
|
import {
|
|
224
224
|
walkRowLabels,
|
|
225
225
|
walkRowsExtent
|
package/dist/layoutEngines.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
LAYOUT_ENGINE_VALUES,
|
|
4
4
|
isLayoutEngineKind,
|
|
5
5
|
layoutEngine
|
|
6
|
-
} from "./chunks/chunk-
|
|
7
|
-
import "./chunks/chunk-
|
|
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
|
|
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'];
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "9.
|
|
1
|
+
export declare const version = "9.5.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "9.
|
|
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": {
|