@jbrowse/bandage-core 12.5.1 → 12.6.1
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/bubbles/bubbleHalos.js +6 -6
- package/dist/bubbles/classifyBubble.js +5 -5
- package/dist/bubbles/popBubble.js +2 -2
- package/dist/bubbles/superbubbles.js +8 -8
- package/dist/chunks/{chunk-23KZAXYG.js → chunk-2C5O34JJ.js} +14 -14
- package/dist/chunks/{chunk-AROLTYCK.js → chunk-3A4XRB2C.js} +1 -1
- package/dist/chunks/{chunk-RV6YKJA3.js → chunk-3LAOZB2I.js} +1 -1
- package/dist/chunks/{chunk-72HYCU7V.js → chunk-3UYMOEKF.js} +2 -2
- package/dist/chunks/{chunk-JQVS4DRW.js → chunk-4J4IKYSL.js} +1 -1
- package/dist/chunks/{chunk-LQNQFFPY.js → chunk-4MS7JFRY.js} +2 -2
- package/dist/chunks/{chunk-UEIUFEQY.js → chunk-54DLYBBU.js} +1 -1
- package/dist/chunks/{chunk-EH64AFZH.js → chunk-5QAQV7DT.js} +4 -4
- package/dist/chunks/{chunk-55CFTY5H.js → chunk-5XXUBTSN.js} +3 -3
- package/dist/chunks/{chunk-ZTH7T5QK.js → chunk-5ZWKBAAS.js} +29 -18
- package/dist/chunks/chunk-77TYCUVR.js +118 -0
- package/dist/chunks/{chunk-T6EWT5ET.js → chunk-BMU7JPHI.js} +3 -3
- package/dist/chunks/{chunk-VA5U4F23.js → chunk-D7ZTAGDM.js} +3 -2
- package/dist/chunks/{chunk-H5N3HE53.js → chunk-DMP3DQZT.js} +1 -1
- package/dist/chunks/{chunk-OPTHW6IZ.js → chunk-EAKP6VH6.js} +1 -1
- package/dist/chunks/{chunk-U6ILKBCW.js → chunk-EEDZY4E5.js} +1 -1
- package/dist/chunks/{chunk-YR3HOBN2.js → chunk-ESTKW37X.js} +2 -2
- package/dist/chunks/{chunk-VUUVL3WZ.js → chunk-FCCKHTQP.js} +1 -1
- package/dist/chunks/{chunk-WUTD47OG.js → chunk-H5NMBQZG.js} +1 -1
- package/dist/chunks/{chunk-FTVESWXT.js → chunk-IDPBN2BP.js} +1 -1
- package/dist/chunks/{chunk-XDTIBSTI.js → chunk-K2Y5BWHF.js} +2 -2
- package/dist/chunks/{chunk-ZXGGKW3X.js → chunk-KGMCRRKM.js} +1 -1
- package/dist/chunks/{chunk-H4UHV22B.js → chunk-L2FHURWV.js} +1 -1
- package/dist/chunks/{chunk-IXRW2FCR.js → chunk-LDHBYZAB.js} +1 -1
- package/dist/chunks/{chunk-ZAKP7T6S.js → chunk-LWLO2B37.js} +1 -1
- package/dist/chunks/{chunk-XM4ZBF5P.js → chunk-MHOE34QT.js} +8 -8
- package/dist/chunks/{chunk-YI7CEK4W.js → chunk-O6SLIY74.js} +3 -3
- package/dist/chunks/{chunk-GAZWQMC6.js → chunk-OUYHOHHF.js} +2 -2
- package/dist/chunks/{chunk-UGECUIDN.js → chunk-PAPUFUJZ.js} +3 -3
- package/dist/chunks/{chunk-BPIKXPB4.js → chunk-PQYOXT6V.js} +2 -2
- package/dist/chunks/{chunk-PLX2PMGF.js → chunk-Q4B4O2M4.js} +2 -2
- package/dist/chunks/{chunk-BRH73RCH.js → chunk-QBI6SC74.js} +19 -9
- package/dist/chunks/{chunk-BGEAXWE7.js → chunk-QPKSULKV.js} +1 -1
- package/dist/chunks/{chunk-4NUW2F2Y.js → chunk-RQHIDUZR.js} +1 -1
- package/dist/chunks/{chunk-URPU4XCM.js → chunk-RV5RJZKO.js} +1 -1
- package/dist/chunks/{chunk-MJ7ADOYX.js → chunk-RYDRC3Y5.js} +1 -1
- package/dist/chunks/{chunk-MQQ7E5SC.js → chunk-SPSYFAIP.js} +1 -1
- package/dist/chunks/{chunk-ZULVAGVE.js → chunk-TAHZ6TZ6.js} +2 -2
- package/dist/chunks/{chunk-VA2RAPPR.js → chunk-ULFBFEPG.js} +2 -2
- package/dist/chunks/{chunk-6ZO2MD6Q.js → chunk-WLOSINY4.js} +1 -1
- package/dist/chunks/{chunk-PQWVJUL7.js → chunk-WMP72ZWV.js} +1 -1
- package/dist/chunks/{chunk-ALGYCMMH.js → chunk-XDG2VSEC.js} +66 -45
- package/dist/chunks/{chunk-RRFGPMJE.js → chunk-XDO7E7P3.js} +3 -3
- package/dist/chunks/{chunk-NQPCXWVP.js → chunk-Y4ZWAC23.js} +2 -2
- package/dist/chunks/{chunk-V35LJPJL.js → chunk-ZGCRG46V.js} +1 -1
- package/dist/chunks/{chunk-DGKR4JJX.js → chunk-ZWIKCBQD.js} +11 -11
- package/dist/cli/figure.js +34 -34
- package/dist/cli/fold.js +9 -9
- package/dist/deletionEdges.js +9 -7
- package/dist/figure.js +29 -29
- package/dist/figureData.js +29 -29
- package/dist/figureScene.js +22 -22
- package/dist/figureSettings.js +10 -10
- package/dist/gbzCut.js +4 -4
- package/dist/gbzWindow.js +3 -3
- package/dist/gfa/gfaConverter.js +3 -3
- package/dist/gfa/gfaTables.js +2 -2
- package/dist/gfa/graphTables.js +2 -2
- package/dist/gfa/walkStops.js +1 -1
- package/dist/graphLabels.js +4 -4
- package/dist/index.js +45 -45
- package/dist/labelLayout.js +8 -8
- package/dist/layout/deletionRoutes.js +5 -1
- package/dist/layout/forceCache.js +10 -10
- package/dist/layout/trimToWindow.js +2 -2
- package/dist/layout/tubeMapLayout.js +10 -10
- package/dist/layout/walkRowDraw.js +9 -9
- package/dist/layout/walkRowLayout.js +13 -13
- package/dist/layout/walkRowRuns.js +4 -4
- package/dist/layout/walkRows.js +5 -5
- package/dist/layout/walkStrip.js +14 -14
- package/dist/layoutModes.js +15 -15
- package/dist/pathAnchoring.js +3 -1
- package/dist/pathColors.js +5 -5
- package/dist/pipeline.js +9 -9
- package/dist/referenceStrip.js +8 -8
- package/dist/renderer/GeometryBuilder.js +7 -7
- package/dist/tubeMap/axis.js +5 -5
- package/dist/tubeMap/bundle.js +11 -11
- package/dist/tubeMap/coarsen.js +11 -11
- package/dist/tubeMap/deviations.js +12 -12
- package/dist/tubeMap/draw.js +6 -6
- package/dist/tubeMap/genes.js +6 -6
- package/dist/tubeMap/nodeColors.js +8 -8
- package/dist/types/deletionEdges.d.ts +2 -1
- package/dist/types/layout/deletionRoutes.d.ts +2 -1
- package/dist/types/pathAnchoring.d.ts +5 -0
- package/dist/types/pipeline.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/util/SpatialIndex.js +5 -5
- package/dist/util/edgeCurves.js +4 -4
- package/dist/util/hitDetection.js +6 -6
- package/dist/version.js +1 -1
- package/dist/viewport.js +10 -10
- package/dist/walkEncoding.js +8 -8
- package/dist/walkHighlight.js +10 -10
- package/dist/walkKey.js +6 -6
- package/package.json +1 -1
- package/dist/chunks/chunk-VPE4AYP7.js +0 -79
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
facetLifts,
|
|
6
6
|
walkLift
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5QAQV7DT.js";
|
|
8
8
|
import {
|
|
9
9
|
walkKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K2Y5BWHF.js";
|
|
11
11
|
import {
|
|
12
12
|
walkRowsExtent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OUYHOHHF.js";
|
|
14
14
|
import {
|
|
15
15
|
buildGeometry,
|
|
16
16
|
computeReferenceRamp
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y4ZWAC23.js";
|
|
18
18
|
import {
|
|
19
19
|
pathLegend,
|
|
20
20
|
walkLabelsOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TAHZ6TZ6.js";
|
|
22
22
|
import {
|
|
23
23
|
FIGURE_DEFAULTS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SPSYFAIP.js";
|
|
25
25
|
import {
|
|
26
26
|
drawingBounds
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5ZWKBAAS.js";
|
|
28
28
|
import {
|
|
29
29
|
referenceLabel
|
|
30
30
|
} from "./chunk-5ORP7EFJ.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
deletionDrawing,
|
|
36
36
|
deletionEdges
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XDG2VSEC.js";
|
|
38
38
|
import {
|
|
39
39
|
facetCells,
|
|
40
40
|
facetSettingOf
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tableNodeIds,
|
|
3
3
|
tablePath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IDPBN2BP.js";
|
|
5
5
|
import {
|
|
6
6
|
gapParts
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D7ZTAGDM.js";
|
|
8
8
|
import {
|
|
9
9
|
pathOrigin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QBI6SC74.js";
|
|
11
11
|
import {
|
|
12
12
|
groupBy
|
|
13
13
|
} from "./chunk-BSOZW3FC.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-KKHXMJEE.js";
|
|
5
5
|
import {
|
|
6
6
|
referenceWalkName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O6SLIY74.js";
|
|
8
8
|
import {
|
|
9
9
|
pathCssColor,
|
|
10
10
|
pathGreyCssColor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TAHZ6TZ6.js";
|
|
12
12
|
import {
|
|
13
13
|
pathOrigin
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QBI6SC74.js";
|
|
15
15
|
import {
|
|
16
16
|
ownStrand,
|
|
17
17
|
strandSides
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-CFXXFHRK.js";
|
|
4
4
|
import {
|
|
5
5
|
walkStopFields
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D7ZTAGDM.js";
|
|
7
7
|
import {
|
|
8
8
|
pathOrigin,
|
|
9
9
|
surveyPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QBI6SC74.js";
|
|
11
11
|
|
|
12
12
|
// src/gfa/gfaConverter.ts
|
|
13
13
|
function surveySegments(gfaGraph, pathSteps) {
|
|
@@ -155,30 +155,39 @@ function trimOrigins(graph, kept) {
|
|
|
155
155
|
} : o;
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function referenceVisits(graph) {
|
|
159
159
|
const { pathVisits } = graph;
|
|
160
160
|
const cache = /* @__PURE__ */ new Map();
|
|
161
161
|
return (node) => {
|
|
162
|
-
let
|
|
163
|
-
if (!
|
|
164
|
-
|
|
162
|
+
let visits = cache.get(node.id);
|
|
163
|
+
if (!visits) {
|
|
164
|
+
visits = [];
|
|
165
165
|
const slot = pathVisits ? pathVisits.slot(node.name) : -1;
|
|
166
166
|
const p = slot >= 0 ? pathVisits.pathIndex(node.stable.refName) : -1;
|
|
167
167
|
if (p >= 0) {
|
|
168
168
|
for (let i = pathVisits.offsets[slot]; i < pathVisits.offsets[slot + 1]; i++) {
|
|
169
169
|
if (pathVisits.path[i] === p) {
|
|
170
|
-
|
|
170
|
+
visits.push({
|
|
171
|
+
start: pathVisits.start[i],
|
|
172
|
+
strand: pathVisits.strand(i)
|
|
173
|
+
});
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
|
-
if (
|
|
175
|
-
|
|
177
|
+
if (visits.length < 2) {
|
|
178
|
+
visits = [
|
|
179
|
+
{ start: node.stable.start, strand: node.stable.strand ?? "+" }
|
|
180
|
+
];
|
|
176
181
|
}
|
|
177
|
-
cache.set(node.id,
|
|
182
|
+
cache.set(node.id, visits);
|
|
178
183
|
}
|
|
179
|
-
return
|
|
184
|
+
return visits;
|
|
180
185
|
};
|
|
181
186
|
}
|
|
187
|
+
function referenceVisitStarts(graph) {
|
|
188
|
+
const visitsOf = referenceVisits(graph);
|
|
189
|
+
return (node) => visitsOf(node).map((v) => v.start);
|
|
190
|
+
}
|
|
182
191
|
|
|
183
192
|
export {
|
|
184
193
|
pathOrigin,
|
|
@@ -187,5 +196,6 @@ export {
|
|
|
187
196
|
anchorFromPaths,
|
|
188
197
|
anchorGraph,
|
|
189
198
|
trimOrigins,
|
|
199
|
+
referenceVisits,
|
|
190
200
|
referenceVisitStarts
|
|
191
201
|
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
hasTubeMapPaths,
|
|
7
7
|
tubeMapLayout,
|
|
8
8
|
tubeMapReferenceLayout
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PAPUFUJZ.js";
|
|
10
10
|
import {
|
|
11
11
|
anchoredLayout
|
|
12
12
|
} from "./chunk-CNWAVRLF.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-Q7OFBTBW.js";
|
|
16
16
|
import {
|
|
17
17
|
walkRowLayout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OUYHOHHF.js";
|
|
19
19
|
import {
|
|
20
20
|
withoutStrayHandles
|
|
21
21
|
} from "./chunk-FGH4D6WT.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unclipped
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L2FHURWV.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
referenceVisits
|
|
6
|
+
} from "./chunk-QBI6SC74.js";
|
|
7
7
|
import {
|
|
8
8
|
computeEdgeCurves,
|
|
9
9
|
edgeJoinOf,
|
|
@@ -76,17 +76,17 @@ function skipsBetween(edge, from, to, forwards) {
|
|
|
76
76
|
if (fromStrand === void 0 || toStrand === void 0) {
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
79
|
-
const leavesRight = fromStrand ===
|
|
80
|
-
const arrivesLeft = toStrand ===
|
|
79
|
+
const leavesRight = fromStrand === from.strand;
|
|
80
|
+
const arrivesLeft = toStrand === to.strand;
|
|
81
81
|
return forwards ? leavesRight && arrivesLeft : !leavesRight && !arrivesLeft;
|
|
82
82
|
}
|
|
83
|
-
function skippedSpan(edge, from, to,
|
|
83
|
+
function skippedSpan(edge, from, to, visitsOf) {
|
|
84
84
|
let best;
|
|
85
|
-
for (const a of
|
|
86
|
-
for (const b of
|
|
87
|
-
const forwards = a <= b;
|
|
88
|
-
const span = forwards ? { start: a + from.length, end: b } : { start: b + to.length, end: a };
|
|
89
|
-
if (skipsBetween(edge,
|
|
85
|
+
for (const a of visitsOf(from)) {
|
|
86
|
+
for (const b of visitsOf(to)) {
|
|
87
|
+
const forwards = a.start <= b.start;
|
|
88
|
+
const span = forwards ? { start: a.start + from.length, end: b.start } : { start: b.start + to.length, end: a.start };
|
|
89
|
+
if (skipsBetween(edge, a, b, forwards) && (!best || Math.abs(span.end - span.start) < Math.abs(best.end - best.start))) {
|
|
90
90
|
best = span;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -94,11 +94,11 @@ function skippedSpan(edge, from, to, startsOf) {
|
|
|
94
94
|
return best;
|
|
95
95
|
}
|
|
96
96
|
var COPY_SWITCH_SHARE = 0.01;
|
|
97
|
-
function repeatCopies(backbone,
|
|
97
|
+
function repeatCopies(backbone, visitsOf) {
|
|
98
98
|
const bySequence = /* @__PURE__ */ new Map();
|
|
99
99
|
for (const [refName, nodes] of backbone) {
|
|
100
100
|
const copies = nodes.flatMap((node) => {
|
|
101
|
-
const starts =
|
|
101
|
+
const starts = visitsOf(node).map((v) => v.start);
|
|
102
102
|
return starts.slice(1).map((next, i) => ({
|
|
103
103
|
at: starts[i],
|
|
104
104
|
copy: next - starts[i]
|
|
@@ -121,41 +121,55 @@ function switchesCopy(copies, start, bp) {
|
|
|
121
121
|
const near = [copies[i - 1], copies[i]].filter((c) => c !== void 0).sort((a, b) => Math.abs(a.at - start) - Math.abs(b.at - start))[0];
|
|
122
122
|
return near !== void 0 && Math.abs(near.at - start) <= near.copy && Math.abs(bp - near.copy) <= near.copy * COPY_SWITCH_SHARE;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function backboneLinks(cut) {
|
|
125
125
|
const graph = unclipped(cut);
|
|
126
126
|
const byId = new Map(graph.nodes.map((n) => [n.id, n]));
|
|
127
127
|
const backbone = backboneBySequence(graph);
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
const found = [];
|
|
131
|
-
for (let edgeIndex = 0; edgeIndex < graph.edges.length; edgeIndex++) {
|
|
132
|
-
const edge = graph.edges[edgeIndex];
|
|
128
|
+
const visitsOf = referenceVisits(graph);
|
|
129
|
+
const links = graph.edges.flatMap((edge, edgeIndex) => {
|
|
133
130
|
const from = byId.get(edge.from);
|
|
134
131
|
const to = byId.get(edge.to);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
found.push({
|
|
142
|
-
edgeIndex,
|
|
143
|
-
from: edge.from,
|
|
144
|
-
to: edge.to,
|
|
145
|
-
...edge.fromStrand ? { fromStrand: edge.fromStrand } : {},
|
|
146
|
-
...edge.toStrand ? { toStrand: edge.toStrand } : {},
|
|
147
|
-
refName,
|
|
148
|
-
start,
|
|
149
|
-
end,
|
|
150
|
-
bp,
|
|
151
|
-
bypassed: bypassedNodes(backbone.get(refName), start, end)
|
|
152
|
-
});
|
|
132
|
+
return !edge.foldBridge && from !== void 0 && to !== void 0 && isBackbone(from) && isBackbone(to) && from.stable.refName === to.stable.refName ? [
|
|
133
|
+
{
|
|
134
|
+
edgeIndex,
|
|
135
|
+
edge,
|
|
136
|
+
refName: from.stable.refName,
|
|
137
|
+
span: skippedSpan(edge, from, to, visitsOf)
|
|
153
138
|
}
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
return
|
|
139
|
+
] : [];
|
|
140
|
+
});
|
|
141
|
+
return { links, backbone, copies: repeatCopies(backbone, visitsOf) };
|
|
142
|
+
}
|
|
143
|
+
function deletionEdges(cut) {
|
|
144
|
+
const { links, backbone, copies } = backboneLinks(cut);
|
|
145
|
+
return links.flatMap(({ edgeIndex, edge, refName, span }) => {
|
|
146
|
+
const bp = span ? span.end - span.start : 0;
|
|
147
|
+
return span && bp >= MIN_DELETION_BP && !switchesCopy(copies.get(refName), span.start, bp) ? [
|
|
148
|
+
{
|
|
149
|
+
edgeIndex,
|
|
150
|
+
from: edge.from,
|
|
151
|
+
to: edge.to,
|
|
152
|
+
...edge.fromStrand ? { fromStrand: edge.fromStrand } : {},
|
|
153
|
+
...edge.toStrand ? { toStrand: edge.toStrand } : {},
|
|
154
|
+
refName,
|
|
155
|
+
start: span.start,
|
|
156
|
+
end: span.end,
|
|
157
|
+
bp,
|
|
158
|
+
bypassed: bypassedNodes(
|
|
159
|
+
backbone.get(refName),
|
|
160
|
+
span.start,
|
|
161
|
+
span.end
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
] : [];
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function offReferenceLinks(cut) {
|
|
168
|
+
return backboneLinks(cut).links.filter(
|
|
169
|
+
({ span }) => !span || span.end - span.start >= MIN_DELETION_BP
|
|
170
|
+
).map(({ edgeIndex }) => edgeIndex);
|
|
157
171
|
}
|
|
158
|
-
function
|
|
172
|
+
function closableLinks(graph, edgeIndexes) {
|
|
159
173
|
const parent = /* @__PURE__ */ new Map();
|
|
160
174
|
const root = (id) => {
|
|
161
175
|
let r = id;
|
|
@@ -174,14 +188,17 @@ function closableDeletions(graph, deletions) {
|
|
|
174
188
|
}
|
|
175
189
|
return ra !== rb;
|
|
176
190
|
};
|
|
177
|
-
const candidates = new Set(
|
|
191
|
+
const candidates = new Set(edgeIndexes);
|
|
178
192
|
graph.edges.forEach((e, ei) => {
|
|
179
193
|
if (!candidates.has(ei)) {
|
|
180
194
|
join(e.from, e.to);
|
|
181
195
|
}
|
|
182
196
|
});
|
|
183
197
|
return new Set(
|
|
184
|
-
|
|
198
|
+
edgeIndexes.filter((ei) => {
|
|
199
|
+
const edge = graph.edges[ei];
|
|
200
|
+
return !join(edge.from, edge.to);
|
|
201
|
+
})
|
|
185
202
|
);
|
|
186
203
|
}
|
|
187
204
|
function dashedDeletions(shown, lift) {
|
|
@@ -196,7 +213,10 @@ function deletionDrawing(graph, deletions, show = true) {
|
|
|
196
213
|
}
|
|
197
214
|
let drawing = byShow.get(show);
|
|
198
215
|
if (!drawing) {
|
|
199
|
-
const hidden = show ? /* @__PURE__ */ new Set() :
|
|
216
|
+
const hidden = show ? /* @__PURE__ */ new Set() : closableLinks(
|
|
217
|
+
graph,
|
|
218
|
+
deletions.map((d) => d.edgeIndex)
|
|
219
|
+
);
|
|
200
220
|
drawing = {
|
|
201
221
|
shown: deletions.filter((d) => !hidden.has(d.edgeIndex)),
|
|
202
222
|
bypassed: new Map(deletions.map((d) => [d.edgeIndex, d.bypassed])),
|
|
@@ -211,7 +231,8 @@ export {
|
|
|
211
231
|
deletionKey,
|
|
212
232
|
edgeCurvesOf,
|
|
213
233
|
deletionEdges,
|
|
214
|
-
|
|
234
|
+
offReferenceLinks,
|
|
235
|
+
closableLinks,
|
|
215
236
|
dashedDeletions,
|
|
216
237
|
deletionDrawing
|
|
217
238
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REFERENCE_RAMP_ALT_CSS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y4ZWAC23.js";
|
|
4
4
|
import {
|
|
5
5
|
RAMP_GRADIENT_CSS,
|
|
6
6
|
RAMP_GRADIENT_STOPS,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
GAP_CAUSE_TEXT,
|
|
12
12
|
OUTSIDE_TEXT
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D7ZTAGDM.js";
|
|
14
14
|
import {
|
|
15
15
|
LABEL_CHAR_PX
|
|
16
16
|
} from "./chunk-S43IBA5Y.js";
|
|
@@ -86,7 +86,7 @@ function walkRowReadout(row, reference, unit, call) {
|
|
|
86
86
|
return `${kb(bp)}${units(bp, unit)}`;
|
|
87
87
|
}
|
|
88
88
|
if (row.deletionBp !== void 0) {
|
|
89
|
-
return `
|
|
89
|
+
return `no step on the reference across ${roughBp(row.deletionBp)}`;
|
|
90
90
|
}
|
|
91
91
|
const outside = gapsText(gapBp, row.runs, row.abridgedSteps);
|
|
92
92
|
const called = call ? ` \xB7 called ${kb(call.bp)}${call.spanningReads === 0 ? " \xB7 no spanning read" : ""}` : "";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
PATH_SATURATION,
|
|
19
19
|
nameHue,
|
|
20
20
|
pathHueAt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TAHZ6TZ6.js";
|
|
22
22
|
import {
|
|
23
23
|
REFERENCE_RAMP_LIGHTNESS,
|
|
24
24
|
REFERENCE_RAMP_SATURATION,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-GQZVR5DW.js";
|
|
27
27
|
import {
|
|
28
28
|
baseEdgeCurves
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RV5RJZKO.js";
|
|
30
30
|
import {
|
|
31
31
|
nodeWidthPx,
|
|
32
32
|
walkLaneWidthPx,
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
} from "./chunk-CO6RGQAD.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutModeByValue
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ULFBFEPG.js";
|
|
7
7
|
import {
|
|
8
8
|
parseRegion
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QPKSULKV.js";
|
|
10
10
|
import {
|
|
11
11
|
genePins
|
|
12
12
|
} from "./chunk-HEYIAMTC.js";
|
|
13
13
|
import {
|
|
14
14
|
version
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3A4XRB2C.js";
|
|
16
16
|
import {
|
|
17
17
|
axisScaleOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZGCRG46V.js";
|
|
19
19
|
import {
|
|
20
20
|
figureScene
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MHOE34QT.js";
|
|
22
22
|
import {
|
|
23
23
|
fadedKey
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5QAQV7DT.js";
|
|
25
25
|
import {
|
|
26
26
|
encodingStops
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WLOSINY4.js";
|
|
28
28
|
import {
|
|
29
29
|
laneSlideAt,
|
|
30
30
|
passesKey,
|
|
@@ -44,23 +44,23 @@ import {
|
|
|
44
44
|
} from "./chunk-XWH4LB56.js";
|
|
45
45
|
import {
|
|
46
46
|
FIGURE_DEFAULTS
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SPSYFAIP.js";
|
|
48
48
|
import {
|
|
49
49
|
engineSettingsOf,
|
|
50
50
|
fitTransform,
|
|
51
51
|
forceLayout,
|
|
52
52
|
loadGraph
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5ZWKBAAS.js";
|
|
54
54
|
import {
|
|
55
55
|
referencePositions
|
|
56
56
|
} from "./chunk-L4DBSRA2.js";
|
|
57
57
|
import {
|
|
58
58
|
dashedDeletions,
|
|
59
59
|
deletionKey
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-XDG2VSEC.js";
|
|
61
61
|
import {
|
|
62
62
|
referenceVisitStarts
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-QBI6SC74.js";
|
|
64
64
|
import {
|
|
65
65
|
isBackbone
|
|
66
66
|
} from "./chunk-RJWPJCIB.js";
|