@jbrowse/bandage-core 11.13.0 → 11.14.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-C5FEIJFK.js → chunk-CLY6DKIU.js} +10 -3
- package/dist/chunks/{chunk-OCYQIHFA.js → chunk-FXUAVF4A.js} +1 -1
- package/dist/chunks/{chunk-7AZ57C5C.js → chunk-JUVIPVXX.js} +12 -3
- package/dist/chunks/{chunk-ANWUCJZB.js → chunk-MB4UWYDG.js} +10 -0
- package/dist/chunks/{chunk-HL4U73TC.js → chunk-XBX3HSC7.js} +1 -1
- package/dist/cli/figure.js +5 -5
- package/dist/figure.js +4 -4
- package/dist/figureData.js +4 -4
- package/dist/figureScene.js +2 -2
- package/dist/index.js +5 -5
- package/dist/types/figureData.d.ts +2 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/walkHighlight.d.ts +1 -0
- package/dist/version.js +1 -1
- package/dist/walkHighlight.js +3 -1
- package/package.json +1 -1
|
@@ -30,13 +30,16 @@ import {
|
|
|
30
30
|
} from "./chunk-HEYIAMTC.js";
|
|
31
31
|
import {
|
|
32
32
|
version
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FXUAVF4A.js";
|
|
34
34
|
import {
|
|
35
35
|
axisScaleOf
|
|
36
36
|
} from "./chunk-OKPSS5PG.js";
|
|
37
37
|
import {
|
|
38
38
|
figureScene
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XBX3HSC7.js";
|
|
40
|
+
import {
|
|
41
|
+
fadedKey
|
|
42
|
+
} from "./chunk-MB4UWYDG.js";
|
|
40
43
|
import {
|
|
41
44
|
encodingStops
|
|
42
45
|
} from "./chunk-EOB4Y3EM.js";
|
|
@@ -315,7 +318,11 @@ function figureSvg(graph, layout, o = {}) {
|
|
|
315
318
|
y,
|
|
316
319
|
[{ offset: 0, color: FADED }],
|
|
317
320
|
"",
|
|
318
|
-
|
|
321
|
+
fadedKey(
|
|
322
|
+
graph,
|
|
323
|
+
lift,
|
|
324
|
+
lift.walks.length === 1 ? labelOf(lift.walks[0].name) : "these walks"
|
|
325
|
+
),
|
|
319
326
|
void 0,
|
|
320
327
|
0.3
|
|
321
328
|
)
|
|
@@ -12,13 +12,16 @@ import {
|
|
|
12
12
|
} from "./chunk-HEYIAMTC.js";
|
|
13
13
|
import {
|
|
14
14
|
version
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FXUAVF4A.js";
|
|
16
16
|
import {
|
|
17
17
|
axisScaleOf
|
|
18
18
|
} from "./chunk-OKPSS5PG.js";
|
|
19
19
|
import {
|
|
20
20
|
figureScene
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XBX3HSC7.js";
|
|
22
|
+
import {
|
|
23
|
+
fadedKey
|
|
24
|
+
} from "./chunk-MB4UWYDG.js";
|
|
22
25
|
import {
|
|
23
26
|
encodingStops
|
|
24
27
|
} from "./chunk-EOB4Y3EM.js";
|
|
@@ -317,7 +320,13 @@ function figureData(graph, layout, o = {}) {
|
|
|
317
320
|
start: referenceRamp.start,
|
|
318
321
|
end: referenceRamp.start + referenceRamp.span
|
|
319
322
|
} : null,
|
|
320
|
-
deletions: drawnDeletions.shown.length
|
|
323
|
+
deletions: drawnDeletions.shown.length,
|
|
324
|
+
// what the key for the drawing a lift fades says
|
|
325
|
+
fadedKey: lift ? fadedKey(
|
|
326
|
+
graph,
|
|
327
|
+
lift,
|
|
328
|
+
lift.walks.length === 1 ? labelOf(lift.walks[0].name) : "these walks"
|
|
329
|
+
) : null
|
|
321
330
|
},
|
|
322
331
|
panels: {
|
|
323
332
|
panel: panels.map((p) => p.name),
|
|
@@ -21,6 +21,15 @@ import {
|
|
|
21
21
|
} from "./chunk-2JL2JVZ2.js";
|
|
22
22
|
|
|
23
23
|
// src/walkHighlight.ts
|
|
24
|
+
function fadedKey(graph, lift, walks) {
|
|
25
|
+
const onPaths = /* @__PURE__ */ new Set();
|
|
26
|
+
for (const path of graph.paths ?? []) {
|
|
27
|
+
for (const id of path.nodeIds) {
|
|
28
|
+
onPaths.add(id);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return graph.nodes.every((n) => lift.nodeIds.has(n.id) || onPaths.has(n.id)) ? "only in other haplotypes" : `nodes and links not on ${walks}`;
|
|
32
|
+
}
|
|
24
33
|
var isReference = (graph, name) => !!graph.referencePath && pathOrigin(name).name === graph.referencePath;
|
|
25
34
|
function piecesOf(graph, name) {
|
|
26
35
|
const origin = pathOrigin(name).name;
|
|
@@ -282,6 +291,7 @@ function liftOf(walks, ramp) {
|
|
|
282
291
|
}
|
|
283
292
|
|
|
284
293
|
export {
|
|
294
|
+
fadedKey,
|
|
285
295
|
walkHighlight,
|
|
286
296
|
walkLift,
|
|
287
297
|
facetLifts
|
package/dist/cli/figure.js
CHANGED
|
@@ -9,7 +9,7 @@ import "../chunks/chunk-EQDQ7P4Y.js";
|
|
|
9
9
|
import {
|
|
10
10
|
laidOutGraph,
|
|
11
11
|
walkLayers
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-JUVIPVXX.js";
|
|
13
13
|
import {
|
|
14
14
|
LAYOUT_ENGINE_VALUES,
|
|
15
15
|
isLayoutEngineKind
|
|
@@ -36,7 +36,7 @@ import "../chunks/chunk-ZKSC7QVE.js";
|
|
|
36
36
|
import "../chunks/chunk-HNWJ4B7S.js";
|
|
37
37
|
import {
|
|
38
38
|
figureSvg
|
|
39
|
-
} from "../chunks/chunk-
|
|
39
|
+
} from "../chunks/chunk-CLY6DKIU.js";
|
|
40
40
|
import "../chunks/chunk-V4YML3GR.js";
|
|
41
41
|
import "../chunks/chunk-QL673EK5.js";
|
|
42
42
|
import "../chunks/chunk-4DMSPNYV.js";
|
|
@@ -50,11 +50,11 @@ import "../chunks/chunk-TQ26XEFL.js";
|
|
|
50
50
|
import "../chunks/chunk-4JDO7ZLN.js";
|
|
51
51
|
import "../chunks/chunk-7YSIP3O2.js";
|
|
52
52
|
import "../chunks/chunk-HEYIAMTC.js";
|
|
53
|
-
import "../chunks/chunk-
|
|
53
|
+
import "../chunks/chunk-FXUAVF4A.js";
|
|
54
54
|
import "../chunks/chunk-OKPSS5PG.js";
|
|
55
|
-
import "../chunks/chunk-
|
|
55
|
+
import "../chunks/chunk-XBX3HSC7.js";
|
|
56
56
|
import "../chunks/chunk-LOCJN3BZ.js";
|
|
57
|
-
import "../chunks/chunk-
|
|
57
|
+
import "../chunks/chunk-MB4UWYDG.js";
|
|
58
58
|
import "../chunks/chunk-EOB4Y3EM.js";
|
|
59
59
|
import "../chunks/chunk-JUYPCLF4.js";
|
|
60
60
|
import "../chunks/chunk-YUIKEUKY.js";
|
package/dist/figure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureSvg
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-CLY6DKIU.js";
|
|
4
4
|
import "./chunks/chunk-V4YML3GR.js";
|
|
5
5
|
import "./chunks/chunk-QL673EK5.js";
|
|
6
6
|
import "./chunks/chunk-4DMSPNYV.js";
|
|
@@ -11,11 +11,11 @@ import "./chunks/chunk-TQ26XEFL.js";
|
|
|
11
11
|
import "./chunks/chunk-4JDO7ZLN.js";
|
|
12
12
|
import "./chunks/chunk-7YSIP3O2.js";
|
|
13
13
|
import "./chunks/chunk-HEYIAMTC.js";
|
|
14
|
-
import "./chunks/chunk-
|
|
14
|
+
import "./chunks/chunk-FXUAVF4A.js";
|
|
15
15
|
import "./chunks/chunk-OKPSS5PG.js";
|
|
16
|
-
import "./chunks/chunk-
|
|
16
|
+
import "./chunks/chunk-XBX3HSC7.js";
|
|
17
17
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
18
|
-
import "./chunks/chunk-
|
|
18
|
+
import "./chunks/chunk-MB4UWYDG.js";
|
|
19
19
|
import "./chunks/chunk-EOB4Y3EM.js";
|
|
20
20
|
import "./chunks/chunk-JUYPCLF4.js";
|
|
21
21
|
import "./chunks/chunk-YUIKEUKY.js";
|
package/dist/figureData.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
gfaFigureData,
|
|
4
4
|
laidOutGraph,
|
|
5
5
|
walkLayers
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-JUVIPVXX.js";
|
|
7
7
|
import "./chunks/chunk-CO6RGQAD.js";
|
|
8
8
|
import "./chunks/chunk-TEFNVUGD.js";
|
|
9
9
|
import "./chunks/chunk-3JDGPLCL.js";
|
|
@@ -18,11 +18,11 @@ import "./chunks/chunk-FNDNSDKW.js";
|
|
|
18
18
|
import "./chunks/chunk-ZKSC7QVE.js";
|
|
19
19
|
import "./chunks/chunk-HNWJ4B7S.js";
|
|
20
20
|
import "./chunks/chunk-HEYIAMTC.js";
|
|
21
|
-
import "./chunks/chunk-
|
|
21
|
+
import "./chunks/chunk-FXUAVF4A.js";
|
|
22
22
|
import "./chunks/chunk-OKPSS5PG.js";
|
|
23
|
-
import "./chunks/chunk-
|
|
23
|
+
import "./chunks/chunk-XBX3HSC7.js";
|
|
24
24
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
25
|
-
import "./chunks/chunk-
|
|
25
|
+
import "./chunks/chunk-MB4UWYDG.js";
|
|
26
26
|
import "./chunks/chunk-EOB4Y3EM.js";
|
|
27
27
|
import "./chunks/chunk-JUYPCLF4.js";
|
|
28
28
|
import "./chunks/chunk-YUIKEUKY.js";
|
package/dist/figureScene.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureScene
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-XBX3HSC7.js";
|
|
4
4
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
5
|
-
import "./chunks/chunk-
|
|
5
|
+
import "./chunks/chunk-MB4UWYDG.js";
|
|
6
6
|
import "./chunks/chunk-EOB4Y3EM.js";
|
|
7
7
|
import "./chunks/chunk-JUYPCLF4.js";
|
|
8
8
|
import "./chunks/chunk-YUIKEUKY.js";
|
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
import {
|
|
98
98
|
figureData,
|
|
99
99
|
gfaFigureData
|
|
100
|
-
} from "./chunks/chunk-
|
|
100
|
+
} from "./chunks/chunk-JUVIPVXX.js";
|
|
101
101
|
import {
|
|
102
102
|
LAYOUT_ENGINES,
|
|
103
103
|
layoutEngine
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
import "./chunks/chunk-HNWJ4B7S.js";
|
|
135
135
|
import {
|
|
136
136
|
figureSvg
|
|
137
|
-
} from "./chunks/chunk-
|
|
137
|
+
} from "./chunks/chunk-CLY6DKIU.js";
|
|
138
138
|
import {
|
|
139
139
|
svgCanvas
|
|
140
140
|
} from "./chunks/chunk-V4YML3GR.js";
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
} from "./chunks/chunk-HEYIAMTC.js";
|
|
206
206
|
import {
|
|
207
207
|
version
|
|
208
|
-
} from "./chunks/chunk-
|
|
208
|
+
} from "./chunks/chunk-FXUAVF4A.js";
|
|
209
209
|
import {
|
|
210
210
|
axisScaleOf,
|
|
211
211
|
contains,
|
|
@@ -214,7 +214,7 @@ import {
|
|
|
214
214
|
viewportOf,
|
|
215
215
|
zoomAbout
|
|
216
216
|
} from "./chunks/chunk-OKPSS5PG.js";
|
|
217
|
-
import "./chunks/chunk-
|
|
217
|
+
import "./chunks/chunk-XBX3HSC7.js";
|
|
218
218
|
import {
|
|
219
219
|
layoutGeometryInputs
|
|
220
220
|
} from "./chunks/chunk-LOCJN3BZ.js";
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
facetLifts,
|
|
223
223
|
walkHighlight,
|
|
224
224
|
walkLift
|
|
225
|
-
} from "./chunks/chunk-
|
|
225
|
+
} from "./chunks/chunk-MB4UWYDG.js";
|
|
226
226
|
import {
|
|
227
227
|
WALK_FIELDS,
|
|
228
228
|
WALK_SCHEMES,
|
|
@@ -102,6 +102,7 @@ export declare function figureData(graph: Graph, layout: LayoutResult, o?: Figur
|
|
|
102
102
|
end: number;
|
|
103
103
|
} | null;
|
|
104
104
|
deletions: number;
|
|
105
|
+
fadedKey: string | null;
|
|
105
106
|
};
|
|
106
107
|
panels: {
|
|
107
108
|
panel: string[];
|
|
@@ -161,6 +162,7 @@ export declare function gfaFigureData(text: string, name: string, spec?: GfaFigu
|
|
|
161
162
|
end: number;
|
|
162
163
|
} | null;
|
|
163
164
|
deletions: number;
|
|
165
|
+
fadedKey: string | null;
|
|
164
166
|
};
|
|
165
167
|
panels: {
|
|
166
168
|
panel: string[];
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "11.
|
|
1
|
+
export declare const version = "11.14.0";
|
|
@@ -39,6 +39,7 @@ export interface WalkLift {
|
|
|
39
39
|
edgeIndexes: Set<number>;
|
|
40
40
|
names: Set<string>;
|
|
41
41
|
}
|
|
42
|
+
export declare function fadedKey(graph: Graph, lift: WalkLift, walks: string): string;
|
|
42
43
|
export declare function walkHighlight(graph: Graph, name: string): WalkHighlight | undefined;
|
|
43
44
|
export declare function walkLift(graph: Graph, layers: readonly WalkLayer[], ramp?: ReferenceRamp): WalkLift | undefined;
|
|
44
45
|
export declare function facetLifts(graph: Graph, lift: WalkLift, layers: readonly WalkLayer[], ramp?: ReferenceRamp): WalkLift[];
|
package/dist/version.js
CHANGED
package/dist/walkHighlight.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
facetLifts,
|
|
3
|
+
fadedKey,
|
|
3
4
|
walkHighlight,
|
|
4
5
|
walkLift
|
|
5
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-MB4UWYDG.js";
|
|
6
7
|
import "./chunks/chunk-EOB4Y3EM.js";
|
|
7
8
|
import "./chunks/chunk-JUYPCLF4.js";
|
|
8
9
|
import "./chunks/chunk-YUIKEUKY.js";
|
|
@@ -30,6 +31,7 @@ import "./chunks/chunk-DAEEMZ74.js";
|
|
|
30
31
|
import "./chunks/chunk-2JL2JVZ2.js";
|
|
31
32
|
export {
|
|
32
33
|
facetLifts,
|
|
34
|
+
fadedKey,
|
|
33
35
|
walkHighlight,
|
|
34
36
|
walkLift
|
|
35
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.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": {
|