@jbrowse/bandage-core 13.2.0 → 13.3.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-FXTEQYHT.js → chunk-4WZDEWAI.js} +1 -1
- package/dist/chunks/{chunk-BAUB7NLR.js → chunk-6C7KB7GY.js} +131 -84
- package/dist/chunks/{chunk-2DA4DX5W.js → chunk-7CGET6BU.js} +2 -2
- package/dist/chunks/{chunk-WN7JUMOK.js → chunk-7NPCAPU3.js} +1 -1
- package/dist/chunks/{chunk-TDA7YJ7Q.js → chunk-EV4DEMRT.js} +4 -3
- package/dist/chunks/{chunk-QXI4EEIM.js → chunk-G7UNOR76.js} +1 -1
- package/dist/chunks/{chunk-IDNMSP3V.js → chunk-IBQAXKS4.js} +1 -1
- package/dist/chunks/{chunk-QUH2EULL.js → chunk-KZBRIRU2.js} +1 -1
- package/dist/chunks/{chunk-5IGFO2GE.js → chunk-OKB7GGDV.js} +4 -4
- package/dist/chunks/{chunk-HCUURE7Z.js → chunk-QW33FFVC.js} +7 -7
- package/dist/chunks/{chunk-TMUBRBAZ.js → chunk-TWWHKS3M.js} +2 -2
- package/dist/chunks/{chunk-EDYOWLXK.js → chunk-UV6FRSVJ.js} +2 -2
- package/dist/chunks/{chunk-VJZXGDQF.js → chunk-WKOUVIVO.js} +1 -1
- package/dist/chunks/{chunk-VPEZMMB2.js → chunk-XRQ5OIJV.js} +3 -3
- package/dist/chunks/{chunk-MZ2M4GCQ.js → chunk-YA2KQ76R.js} +6 -1
- package/dist/chunks/{chunk-7HG3B4LW.js → chunk-ZC4CWI3C.js} +43 -16
- package/dist/cli/figure.js +13 -13
- package/dist/figure.js +10 -10
- package/dist/figureData.js +11 -11
- package/dist/figureScene.js +7 -7
- package/dist/index.js +15 -15
- package/dist/layout/tubeMapLayout.js +3 -3
- package/dist/layout/walkRowDraw.js +1 -1
- package/dist/layout/walkRowLayout.js +4 -4
- package/dist/layout/walkRowRuns.js +1 -1
- package/dist/layout/walkRows.js +2 -2
- package/dist/layout/walkStrip.js +5 -5
- package/dist/layoutModes.js +6 -6
- package/dist/tubeMap/bundle.js +4 -4
- package/dist/tubeMap/coarsen.js +4 -4
- package/dist/tubeMap/deviations.js +4 -4
- package/dist/tubeMap/draw.js +3 -3
- package/dist/types/layout/walkRowDraw.d.ts +1 -1
- package/dist/types/layout/walkRows.d.ts +5 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/walkHighlight.d.ts +2 -0
- package/dist/version.js +1 -1
- package/dist/walkHighlight.js +1 -1
- package/dist/walkKey.js +1 -1
- package/package.json +2 -2
|
@@ -40,6 +40,32 @@ var GAP_CAUSES = [
|
|
|
40
40
|
var CAUSE_SHIFT = 3;
|
|
41
41
|
var causeFlags = (cause) => GAP_CAUSES.indexOf(cause) << CAUSE_SHIFT;
|
|
42
42
|
var stretchKey = (name, start, end) => `${pathOrigin(name).name} ${start} ${end}`;
|
|
43
|
+
function stretchIndex(all) {
|
|
44
|
+
const between = /* @__PURE__ */ new Map();
|
|
45
|
+
const ends = /* @__PURE__ */ new Map();
|
|
46
|
+
const outside = /* @__PURE__ */ new Map();
|
|
47
|
+
for (const x of all) {
|
|
48
|
+
const name = pathOrigin(x.name).name;
|
|
49
|
+
if (x.edge === 0) {
|
|
50
|
+
between.set(stretchKey(name, x.start, x.end), x.segments);
|
|
51
|
+
} else if (x.edge === 3) {
|
|
52
|
+
const o = outside.get(name) ?? { count: 0, stepsBp: 0 };
|
|
53
|
+
o.count++;
|
|
54
|
+
o.stepsBp += x.segments.reduce(
|
|
55
|
+
(sum, y) => sum + (y.kind === "steps" ? y.bp : 0),
|
|
56
|
+
0
|
|
57
|
+
);
|
|
58
|
+
outside.set(name, o);
|
|
59
|
+
} else {
|
|
60
|
+
ends.set(`${name} ${x.edge}`, x);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
between: (name, start, end) => between.get(stretchKey(name, start, end)),
|
|
65
|
+
rowEnd: (name, edge) => ends.get(`${pathOrigin(name).name} ${edge}`),
|
|
66
|
+
outside: (name) => outside.get(pathOrigin(name).name)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
43
69
|
function referenceOf(names, referencePath, rankZero) {
|
|
44
70
|
return referencePath !== void 0 && names.includes(referencePath) ? referencePath : names.find((n) => rankZero.has(n)) ?? names[0];
|
|
45
71
|
}
|
|
@@ -93,18 +119,6 @@ function graphPieces(graph) {
|
|
|
93
119
|
}
|
|
94
120
|
to[p] = steps.length;
|
|
95
121
|
});
|
|
96
|
-
const between = /* @__PURE__ */ new Map();
|
|
97
|
-
for (const gap of graph.gaps ?? []) {
|
|
98
|
-
if (gap.edge === 0) {
|
|
99
|
-
between.set(
|
|
100
|
-
stretchKey(gap.name, gap.start, gap.end),
|
|
101
|
-
gap.segments.map((segment) => ({
|
|
102
|
-
...segment,
|
|
103
|
-
nodes: segment.nodes.map(indexOf)
|
|
104
|
-
}))
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
122
|
return {
|
|
109
123
|
heads,
|
|
110
124
|
from,
|
|
@@ -115,11 +129,19 @@ function graphPieces(graph) {
|
|
|
115
129
|
reference,
|
|
116
130
|
stableStart: (node) => stable.get(node) ?? Number.NaN,
|
|
117
131
|
departures: graph.departures,
|
|
118
|
-
|
|
132
|
+
stretches: stretchIndex(
|
|
133
|
+
(graph.gaps ?? []).map((gap) => ({
|
|
134
|
+
...gap,
|
|
135
|
+
segments: gap.segments.map((segment) => ({
|
|
136
|
+
...segment,
|
|
137
|
+
nodes: segment.nodes.map(indexOf)
|
|
138
|
+
}))
|
|
139
|
+
}))
|
|
140
|
+
)
|
|
119
141
|
};
|
|
120
142
|
}
|
|
121
143
|
function tablePieces(tables, referencePath, visits) {
|
|
122
|
-
const { nodes: n, walks: w } = tables;
|
|
144
|
+
const { nodes: n, walks: w, gaps } = tables;
|
|
123
145
|
const kept = [];
|
|
124
146
|
for (let p = 0; p < w.names.length; p++) {
|
|
125
147
|
if (w.offsets[p + 1] > w.offsets[p]) {
|
|
@@ -151,21 +173,17 @@ function tablePieces(tables, referencePath, visits) {
|
|
|
151
173
|
reference,
|
|
152
174
|
stableStart: (node) => node < n.lengths.length && n.ranks[node] === 0 && onReferenceContig(n.refNames[n.refs[node]]) ? n.starts[node] : Number.NaN,
|
|
153
175
|
departures: tables.departures,
|
|
154
|
-
|
|
176
|
+
stretches: stretchIndex(
|
|
177
|
+
gaps ? gaps.names.map((name, g) => ({
|
|
178
|
+
name,
|
|
179
|
+
edge: gaps.edges[g],
|
|
180
|
+
start: gaps.starts[g],
|
|
181
|
+
end: gaps.ends[g],
|
|
182
|
+
segments: stretchSegments(gaps, g, (i) => i)
|
|
183
|
+
})) : []
|
|
184
|
+
)
|
|
155
185
|
};
|
|
156
186
|
}
|
|
157
|
-
function tableGaps(t) {
|
|
158
|
-
const between = /* @__PURE__ */ new Map();
|
|
159
|
-
t?.names.forEach((name, g) => {
|
|
160
|
-
if (t.edges[g] === 0) {
|
|
161
|
-
between.set(
|
|
162
|
-
stretchKey(name, t.starts[g], t.ends[g]),
|
|
163
|
-
stretchSegments(t, g, (i) => i)
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
return (name, start, end) => between.get(stretchKey(name, start, end));
|
|
168
|
-
}
|
|
169
187
|
function sampleOf(path) {
|
|
170
188
|
return path.sample ?? panSNSample(path.name);
|
|
171
189
|
}
|
|
@@ -228,7 +246,7 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
228
246
|
reference,
|
|
229
247
|
stableStart,
|
|
230
248
|
departures,
|
|
231
|
-
|
|
249
|
+
stretches
|
|
232
250
|
} = "walks" in source ? tablePieces(source, o.referencePath, o.visits) : graphPieces(source);
|
|
233
251
|
const declared = lengths.length;
|
|
234
252
|
const lengthOf = (node) => node < declared ? lengths[node] : 0;
|
|
@@ -352,6 +370,62 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
352
370
|
let previous;
|
|
353
371
|
const partsAt = /* @__PURE__ */ new Map();
|
|
354
372
|
let owed = 0;
|
|
373
|
+
const drawnBp = (segments) => segments.reduce(
|
|
374
|
+
(sum, x) => sum + (x.kind === "steps" ? x.nodes.reduce((bp3, node) => bp3 + lengthOf(node), 0) : x.bp),
|
|
375
|
+
0
|
|
376
|
+
);
|
|
377
|
+
const emit = (segments, from2) => {
|
|
378
|
+
const need = segments.reduce((n, x) => n + x.nodes.length + 1, count);
|
|
379
|
+
if (length + need > steps.length) {
|
|
380
|
+
const grownSteps = new Int32Array((length + need) * 2);
|
|
381
|
+
const grownStarts = new Float64Array((length + need) * 2);
|
|
382
|
+
grownSteps.set(steps.subarray(0, length));
|
|
383
|
+
grownStarts.set(stepStart.subarray(0, length));
|
|
384
|
+
steps = grownSteps;
|
|
385
|
+
stepStart = grownStarts;
|
|
386
|
+
}
|
|
387
|
+
let at = from2;
|
|
388
|
+
let parts = [];
|
|
389
|
+
let partsBp = 0;
|
|
390
|
+
const flush = () => {
|
|
391
|
+
if (partsBp > 0) {
|
|
392
|
+
partsAt.set(length, parts);
|
|
393
|
+
steps[length] = -partsBp;
|
|
394
|
+
stepStart[length++] = at - partsBp;
|
|
395
|
+
}
|
|
396
|
+
parts = [];
|
|
397
|
+
partsBp = 0;
|
|
398
|
+
};
|
|
399
|
+
for (const x of segments) {
|
|
400
|
+
if (x.kind === "steps") {
|
|
401
|
+
flush();
|
|
402
|
+
for (const node of x.nodes) {
|
|
403
|
+
steps[length] = node;
|
|
404
|
+
stepStart[length++] = at;
|
|
405
|
+
at += lengthOf(node);
|
|
406
|
+
}
|
|
407
|
+
} else if (x.bp > 0) {
|
|
408
|
+
if (x.kind === "abridged") {
|
|
409
|
+
flush();
|
|
410
|
+
}
|
|
411
|
+
parts.push(segmentPart(x));
|
|
412
|
+
partsBp += x.bp;
|
|
413
|
+
at += x.bp;
|
|
414
|
+
if (x.kind === "abridged") {
|
|
415
|
+
flush();
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
flush();
|
|
420
|
+
};
|
|
421
|
+
const walkName = nameOf(ordered[0]);
|
|
422
|
+
const lead = stretches.rowEnd(walkName, 1);
|
|
423
|
+
const leads = lead !== void 0 && lead.end === startOf(ordered[0]) && drawnBp(lead.segments) === lead.end - lead.start;
|
|
424
|
+
if (leads) {
|
|
425
|
+
emit(lead.segments, lead.start);
|
|
426
|
+
end = lead.end;
|
|
427
|
+
}
|
|
428
|
+
const fragLo = length;
|
|
355
429
|
for (const piece of ordered) {
|
|
356
430
|
const start2 = startOf(piece);
|
|
357
431
|
const jump = start2 === void 0 || end === void 0 ? 0 : start2 - end;
|
|
@@ -364,54 +438,9 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
364
438
|
const covered = Math.min(owed, Math.max(jump, 0));
|
|
365
439
|
owed -= covered;
|
|
366
440
|
const gap = jump - covered;
|
|
367
|
-
const segments = gap
|
|
368
|
-
|
|
369
|
-
(
|
|
370
|
-
0
|
|
371
|
-
);
|
|
372
|
-
if (segments && segmentsBp === gap) {
|
|
373
|
-
const need = segments.reduce((n, x) => n + x.nodes.length + 1, count);
|
|
374
|
-
if (length + need > steps.length) {
|
|
375
|
-
const grownSteps = new Int32Array((length + need) * 2);
|
|
376
|
-
const grownStarts = new Float64Array((length + need) * 2);
|
|
377
|
-
grownSteps.set(steps.subarray(0, length));
|
|
378
|
-
grownStarts.set(stepStart.subarray(0, length));
|
|
379
|
-
steps = grownSteps;
|
|
380
|
-
stepStart = grownStarts;
|
|
381
|
-
}
|
|
382
|
-
let at = end;
|
|
383
|
-
let parts = [];
|
|
384
|
-
let partsBp = 0;
|
|
385
|
-
const flush = () => {
|
|
386
|
-
if (partsBp > 0) {
|
|
387
|
-
partsAt.set(length, parts);
|
|
388
|
-
steps[length] = -partsBp;
|
|
389
|
-
stepStart[length++] = at - partsBp;
|
|
390
|
-
}
|
|
391
|
-
parts = [];
|
|
392
|
-
partsBp = 0;
|
|
393
|
-
};
|
|
394
|
-
for (const x of segments) {
|
|
395
|
-
if (x.kind === "steps") {
|
|
396
|
-
flush();
|
|
397
|
-
for (const node of x.nodes) {
|
|
398
|
-
steps[length] = node;
|
|
399
|
-
stepStart[length++] = at;
|
|
400
|
-
at += lengthOf(node);
|
|
401
|
-
}
|
|
402
|
-
} else if (x.bp > 0) {
|
|
403
|
-
if (x.kind === "abridged") {
|
|
404
|
-
flush();
|
|
405
|
-
}
|
|
406
|
-
parts.push(segmentPart(x));
|
|
407
|
-
partsBp += x.bp;
|
|
408
|
-
at += x.bp;
|
|
409
|
-
if (x.kind === "abridged") {
|
|
410
|
-
flush();
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
flush();
|
|
441
|
+
const segments = gap >= 0 && covered === 0 && previous !== void 0 && start2 !== void 0 && end !== void 0 ? stretches.between(nameOf(previous), end, start2) : void 0;
|
|
442
|
+
if (segments && drawnBp(segments) === gap) {
|
|
443
|
+
emit(segments, end);
|
|
415
444
|
} else if (gap > 0) {
|
|
416
445
|
partsAt.set(
|
|
417
446
|
length,
|
|
@@ -449,13 +478,19 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
449
478
|
}
|
|
450
479
|
previous = piece;
|
|
451
480
|
}
|
|
481
|
+
const fragHi = length - 1;
|
|
482
|
+
const tail = stretches.rowEnd(walkName, 2);
|
|
483
|
+
const tails = tail !== void 0 && tail.start === end && drawnBp(tail.segments) === tail.end - tail.start;
|
|
484
|
+
if (tails) {
|
|
485
|
+
emit(tail.segments, tail.start);
|
|
486
|
+
}
|
|
452
487
|
const onReference = (i) => i >= 0 && i < length && steps[i] >= 0 && !Number.isNaN(spanStart[steps[i]]);
|
|
453
488
|
const stepEnd = (i) => {
|
|
454
489
|
const id = steps[i];
|
|
455
490
|
return stepStart[i] + (id < 0 ? -id : lengthOf(id));
|
|
456
491
|
};
|
|
457
492
|
const endOf = (after) => {
|
|
458
|
-
const last2 = after ?
|
|
493
|
+
const last2 = after ? fragHi : fragLo;
|
|
459
494
|
const edge = after ? stepEnd(last2) : stepStart[last2];
|
|
460
495
|
return {
|
|
461
496
|
last: last2,
|
|
@@ -470,9 +505,9 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
470
505
|
for (let d = 1; near2 < 0 && d < length; d++) {
|
|
471
506
|
near2 = [flank - d, flank + d].find(onReference) ?? -1;
|
|
472
507
|
}
|
|
473
|
-
const
|
|
474
|
-
const
|
|
475
|
-
return near2 >= 0 ? near2 > flank === spanStart[steps[near2]] > spanStart[steps[flank]] :
|
|
508
|
+
const tail2 = endOf(true);
|
|
509
|
+
const lead2 = endOf(false);
|
|
510
|
+
return near2 >= 0 ? near2 > flank === spanStart[steps[near2]] > spanStart[steps[flank]] : fragHi > fragLo ? void 0 : tail2.departure ? !tail2.departure.leaveReversed : lead2.departure ? !lead2.departure.rejoinReversed : (!tail2.trimmed || !!lead2.trimmed) === rightward;
|
|
476
511
|
};
|
|
477
512
|
const partialSide = (i0, i1, inside) => {
|
|
478
513
|
const flank = i0 >= 0 ? i0 : i1;
|
|
@@ -491,7 +526,8 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
491
526
|
...departure ? {
|
|
492
527
|
goesOn: {
|
|
493
528
|
departure,
|
|
494
|
-
near: after ? departure.rejoinPos : departure.leavePos
|
|
529
|
+
near: after ? departure.rejoinPos : departure.leavePos,
|
|
530
|
+
...(after ? tails : leads) ? { drawn: true } : {}
|
|
495
531
|
}
|
|
496
532
|
} : {}
|
|
497
533
|
};
|
|
@@ -505,8 +541,8 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
505
541
|
axisStart: forward ? after ? from2 : stepStart[0] : after ? stepEnd(length - 1) : from2
|
|
506
542
|
};
|
|
507
543
|
};
|
|
508
|
-
let lo =
|
|
509
|
-
let hi =
|
|
544
|
+
let lo = fragLo;
|
|
545
|
+
let hi = fragHi + 1;
|
|
510
546
|
let backward = false;
|
|
511
547
|
let complete = true;
|
|
512
548
|
let flankFrom = -1;
|
|
@@ -594,12 +630,18 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
594
630
|
stopsInside(i0, i1, true);
|
|
595
631
|
}
|
|
596
632
|
}
|
|
633
|
+
if (lead && leads && lo < fragLo) {
|
|
634
|
+
extents.push([lead.start, lead.end]);
|
|
635
|
+
}
|
|
636
|
+
if (tail && tails && hi > fragHi + 1) {
|
|
637
|
+
extents.push([tail.start, tail.end]);
|
|
638
|
+
}
|
|
597
639
|
const stepless = bar2 !== void 0 && lo >= hi && own.some((d) => {
|
|
598
640
|
const span = departureSpan(d);
|
|
599
641
|
return span.start < bar2.end && span.end > bar2.start;
|
|
600
642
|
});
|
|
601
643
|
const contig = head.contig ?? panSNContig(pathOrigin(head.name).name);
|
|
602
|
-
const axis2 = unplaced || length === 0 ? void 0 : axisStart !== void 0 ? { contig, start: axisStart, reversed: backward } : flankFrom < 0 ? { contig, start: stepStart[
|
|
644
|
+
const axis2 = unplaced || length === 0 ? void 0 : axisStart !== void 0 ? { contig, start: axisStart, reversed: backward } : flankFrom < 0 ? { contig, start: stepStart[lo], reversed: false } : flankFrom < flankTo ? {
|
|
603
645
|
contig,
|
|
604
646
|
start: stepEnd(flankFrom) + leftTrim,
|
|
605
647
|
reversed: false
|
|
@@ -712,9 +754,14 @@ function walkRowRuns(source, region, o = {}) {
|
|
|
712
754
|
...abridgedSteps > 0 ? { abridgedSteps } : {},
|
|
713
755
|
...leftTrim + rightTrim > 0 ? { estimated: true } : {},
|
|
714
756
|
...undrawn.length > 0 ? { departures: undrawn } : {},
|
|
757
|
+
...outsideOf(walkName),
|
|
715
758
|
...own.some(placementChoice) ? { placementChoice: true } : {}
|
|
716
759
|
};
|
|
717
760
|
};
|
|
761
|
+
const outsideOf = (name) => {
|
|
762
|
+
const outsideRow = stretches.outside(name);
|
|
763
|
+
return outsideRow ? { outsideRow } : {};
|
|
764
|
+
};
|
|
718
765
|
const steplessRowOf = (name, own, bar2) => {
|
|
719
766
|
const gapBp = departureRuns(own, bar2);
|
|
720
767
|
runs.endRow();
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
hasTubeMapPaths,
|
|
7
7
|
tubeMapLayout,
|
|
8
8
|
tubeMapReferenceLayout
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IBQAXKS4.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-TWWHKS3M.js";
|
|
19
19
|
import {
|
|
20
20
|
withoutStrayHandles
|
|
21
21
|
} from "./chunk-FGH4D6WT.js";
|
|
@@ -109,10 +109,11 @@ function walkRowReadout(row, reference, unit, call) {
|
|
|
109
109
|
if (!reference) {
|
|
110
110
|
return `${kb(bp)}${units(bp, unit)}`;
|
|
111
111
|
}
|
|
112
|
+
const beyond = row.outsideRow ? ` \xB7 ${row.outsideRow.count} departure${row.outsideRow.count > 1 ? "s" : ""} outside the row${row.outsideRow.stepsBp > 0 ? `, ${kb(row.outsideRow.stepsBp)} of its own in the graph` : ""}` : "";
|
|
112
113
|
if (row.stepless) {
|
|
113
|
-
return steplessText(row.departures ?? [], reference.sample)
|
|
114
|
+
return `${steplessText(row.departures ?? [], reference.sample)}${beyond}`;
|
|
114
115
|
}
|
|
115
|
-
const outside = `${gapsText(gapBp, row.runs, row.abridgedSteps ?? 0, reference.name)}${row.placementChoice ? ` \xB7 ${PLACEMENT_CHOICE_TEXT}` : ""}`;
|
|
116
|
+
const outside = `${gapsText(gapBp, row.runs, row.abridgedSteps ?? 0, reference.name)}${row.placementChoice ? ` \xB7 ${PLACEMENT_CHOICE_TEXT}` : ""}${beyond}`;
|
|
116
117
|
const called = call ? ` \xB7 called ${kb(call.bp)}${call.spanningReads === 0 ? " \xB7 no spanning read" : ""}` : "";
|
|
117
118
|
if (complete) {
|
|
118
119
|
const delta = bp - reference.bp;
|
|
@@ -125,7 +126,7 @@ function walkRowReadout(row, reference, unit, call) {
|
|
|
125
126
|
const where = stop.shortBp > 0 ? `${kb(stop.shortBp)} before` : "at";
|
|
126
127
|
return `contig ends ${where} the ${region}${called}`;
|
|
127
128
|
}
|
|
128
|
-
const why = !stop ? "partial walk" : stop.contigEnds ? `contig ends inside the ${region}` : stop.goesOn ? `goes on near ${near(reference.name, stop.goesOn.near)} \xB7 ${roughBp(stop.goesOn.departure.ownBp)} of its own` : "does not rejoin the reference within the extracted subgraph";
|
|
129
|
+
const why = !stop ? "partial walk" : stop.contigEnds ? `contig ends inside the ${region}` : stop.goesOn ? `goes on near ${near(reference.name, stop.goesOn.near)}${stop.goesOn.drawn ? "" : ` \xB7 ${roughBp(stop.goesOn.departure.ownBp)} of its own`}` : "does not rejoin the reference within the extracted subgraph";
|
|
129
130
|
const bound = bp === 0 ? "" : `\u2265 ${kb(bp)}${units(bp, unit)} \xB7 `;
|
|
130
131
|
return `${bound}${why}${outside}${called}`;
|
|
131
132
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-CO6RGQAD.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutModeByValue
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7CGET6BU.js";
|
|
7
7
|
import {
|
|
8
8
|
parseRegion
|
|
9
9
|
} from "./chunk-TTSA2ML4.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
} from "./chunk-HEYIAMTC.js";
|
|
13
13
|
import {
|
|
14
14
|
version
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KZBRIRU2.js";
|
|
16
16
|
import {
|
|
17
17
|
axisScaleOf
|
|
18
18
|
} from "./chunk-V52OO6JT.js";
|
|
19
19
|
import {
|
|
20
20
|
figureScene
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XRQ5OIJV.js";
|
|
22
22
|
import {
|
|
23
23
|
fadedKey
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZC4CWI3C.js";
|
|
25
25
|
import {
|
|
26
26
|
encodingStops
|
|
27
27
|
} from "./chunk-KAHJSU3Q.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
stripGeneGaps,
|
|
6
6
|
walkStripFrame,
|
|
7
7
|
walkStripLabelsTree
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UV6FRSVJ.js";
|
|
9
9
|
import {
|
|
10
10
|
Canvas2DRenderer
|
|
11
11
|
} from "./chunk-4DMSPNYV.js";
|
|
@@ -26,30 +26,30 @@ import {
|
|
|
26
26
|
} from "./chunk-HEYIAMTC.js";
|
|
27
27
|
import {
|
|
28
28
|
version
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KZBRIRU2.js";
|
|
30
30
|
import {
|
|
31
31
|
axisScaleOf
|
|
32
32
|
} from "./chunk-V52OO6JT.js";
|
|
33
33
|
import {
|
|
34
34
|
figureScene
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XRQ5OIJV.js";
|
|
36
36
|
import {
|
|
37
37
|
fadedKey
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZC4CWI3C.js";
|
|
39
39
|
import {
|
|
40
40
|
rangeText
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YA2KQ76R.js";
|
|
42
42
|
import {
|
|
43
43
|
encodingStops
|
|
44
44
|
} from "./chunk-KAHJSU3Q.js";
|
|
45
45
|
import {
|
|
46
46
|
walkRowLabels
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TWWHKS3M.js";
|
|
48
48
|
import {
|
|
49
49
|
walkRowsKey,
|
|
50
50
|
walkRowsKeyTree,
|
|
51
51
|
walkRowsTree
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EV4DEMRT.js";
|
|
53
53
|
import {
|
|
54
54
|
THREAD_PX,
|
|
55
55
|
passesKey,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
READOUT_ROOM,
|
|
3
3
|
longestBar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TWWHKS3M.js";
|
|
5
5
|
import {
|
|
6
6
|
alongRow,
|
|
7
7
|
barEnd,
|
|
8
8
|
boxesGenes,
|
|
9
9
|
rowPitch,
|
|
10
10
|
rowSpan
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EV4DEMRT.js";
|
|
12
12
|
import {
|
|
13
13
|
LABEL_CHAR_PX
|
|
14
14
|
} from "./chunk-S43IBA5Y.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
facetLifts,
|
|
6
6
|
walkLift
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZC4CWI3C.js";
|
|
8
8
|
import {
|
|
9
9
|
walkKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YA2KQ76R.js";
|
|
11
11
|
import {
|
|
12
12
|
walkRowsExtent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TWWHKS3M.js";
|
|
14
14
|
import {
|
|
15
15
|
buildGeometry,
|
|
16
16
|
computeReferenceRamp
|
|
@@ -18,10 +18,15 @@ function walkKey(walk, reference) {
|
|
|
18
18
|
const own = walk.range ? rangeText(walk.range.contig, walk.range.start, walk.range.end) : void 0;
|
|
19
19
|
const scale = field === "progress" ? own : field === "reference" && reference ? rangeText(reference.name, reference.start, reference.end) : void 0;
|
|
20
20
|
const spanned = walk.range ? walk.range.end - walk.range.start : walk.bp;
|
|
21
|
-
const
|
|
21
|
+
const unstated = spanned - walk.bp - walk.missingBp - walk.ownBp;
|
|
22
|
+
const outside = walk.readBp ?? unstated;
|
|
22
23
|
const gaps = [
|
|
23
24
|
[walk.missingBp, GAP_CAUSE_TEXT.missing],
|
|
24
25
|
[walk.ownBp, GAP_CAUSE_TEXT.own],
|
|
26
|
+
[
|
|
27
|
+
walk.readBp === void 0 ? 0 : unstated - walk.readBp,
|
|
28
|
+
GAP_CAUSE_TEXT.unread
|
|
29
|
+
],
|
|
25
30
|
[outside, OUTSIDE_TEXT]
|
|
26
31
|
];
|
|
27
32
|
return {
|
|
@@ -29,6 +29,16 @@ function fadedKey(graph, lift, walks) {
|
|
|
29
29
|
onPaths.add(id);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
const lifted = new Set([...lift.names].map((n) => pathOrigin(n).name));
|
|
33
|
+
for (const gap of graph.gaps ?? []) {
|
|
34
|
+
if (!lifted.has(pathOrigin(gap.name).name)) {
|
|
35
|
+
for (const segment of gap.segments) {
|
|
36
|
+
for (const id of segment.nodes) {
|
|
37
|
+
onPaths.add(id);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
32
42
|
return graph.nodes.every((n) => lift.nodeIds.has(n.id) || onPaths.has(n.id)) ? "only in other haplotypes" : `nodes and links not on ${walks}`;
|
|
33
43
|
}
|
|
34
44
|
var isReference = (graph, name) => !!graph.referencePath && pathOrigin(name).name === graph.referencePath;
|
|
@@ -50,14 +60,11 @@ function walkHighlight(graph, name) {
|
|
|
50
60
|
function highlightOf(graph, name, { byId, edgeAt }) {
|
|
51
61
|
const pieces = piecesOf(graph, name);
|
|
52
62
|
const first = pieces[0];
|
|
53
|
-
if (!first) {
|
|
54
|
-
return void 0;
|
|
55
|
-
}
|
|
56
63
|
const lengthOf = (id) => byId.get(id)?.length ?? 0;
|
|
57
64
|
const bpOf = (path) => path.nodeIds.reduce((sum, id) => sum + lengthOf(id), 0);
|
|
58
65
|
const origin = pathOrigin(name).name;
|
|
59
66
|
const stated = (graph.gaps ?? []).filter(
|
|
60
|
-
(g) =>
|
|
67
|
+
(g) => pathOrigin(g.name).name === origin
|
|
61
68
|
);
|
|
62
69
|
const stretches = new Map(stated.map((g) => [`${g.start} ${g.end}`, g]));
|
|
63
70
|
const endOf = (piece) => (piece.start ?? 0) + (piece.abridged?.bp ?? bpOf(piece));
|
|
@@ -80,21 +87,31 @@ function highlightOf(graph, name, { byId, edgeAt }) {
|
|
|
80
87
|
return (gap?.segments ?? []).flatMap((x) => {
|
|
81
88
|
const start = at;
|
|
82
89
|
at += x.bp;
|
|
83
|
-
return x.kind === "steps" && x.nodes.length > 0 ? [{ name
|
|
90
|
+
return x.kind === "steps" && x.nodes.length > 0 ? [{ name, nodeIds: x.nodes, start }] : [];
|
|
84
91
|
});
|
|
85
92
|
}
|
|
86
93
|
);
|
|
87
94
|
const walked = [...pieces, ...attached].sort(
|
|
88
|
-
(a, b) => (a.start ?? 0) - (b.start ?? 0)
|
|
95
|
+
(a, b) => (a.start ?? 0) - (b.start ?? 0) || endOf(a) - endOf(b)
|
|
89
96
|
);
|
|
90
97
|
const bp = walked.reduce((sum, piece) => sum + bpOf(piece), 0);
|
|
91
98
|
const extentOf = (ps) => {
|
|
92
99
|
const start = Math.min(...ps.map((p) => p.start ?? Infinity));
|
|
93
100
|
return Number.isFinite(start) ? { start, end: Math.max(...ps.map((p) => (p.start ?? 0) + bpOf(p))) } : void 0;
|
|
94
101
|
};
|
|
95
|
-
|
|
102
|
+
if (walked.length === 0) {
|
|
103
|
+
return void 0;
|
|
104
|
+
}
|
|
105
|
+
const counted = [...pieces.map((_, p) => between(p)), ...rowEnds].flatMap(
|
|
106
|
+
(gap) => gap ? [gap] : []
|
|
107
|
+
);
|
|
108
|
+
const walkedExtent = extentOf(walked);
|
|
109
|
+
const extent = walkedExtent && {
|
|
110
|
+
start: Math.min(walkedExtent.start, ...counted.map((g) => g.start)),
|
|
111
|
+
end: Math.max(walkedExtent.end, ...counted.map((g) => g.end))
|
|
112
|
+
};
|
|
96
113
|
const range = extent && {
|
|
97
|
-
contig: first
|
|
114
|
+
contig: first?.contig ?? panSNContig(pathOrigin(name).name),
|
|
98
115
|
...extent
|
|
99
116
|
};
|
|
100
117
|
const span = range ? range.end - range.start : bp;
|
|
@@ -105,17 +122,21 @@ function highlightOf(graph, name, { byId, edgeAt }) {
|
|
|
105
122
|
const passes = /* @__PURE__ */ new Map();
|
|
106
123
|
let mostPasses = 1;
|
|
107
124
|
let before = 0;
|
|
125
|
+
const steppedOn = new Set(attached);
|
|
126
|
+
let previous;
|
|
108
127
|
for (const piece of walked) {
|
|
109
128
|
if (range) {
|
|
110
129
|
before = Math.max(before, (piece.start ?? 0) - range.start);
|
|
111
130
|
}
|
|
131
|
+
const joins = previous !== void 0 && (steppedOn.has(previous) || steppedOn.has(piece)) && previous.start !== void 0 && endOf(previous) === piece.start;
|
|
132
|
+
const last = previous?.nodeIds.at(-1);
|
|
112
133
|
piece.nodeIds.forEach((id, i) => {
|
|
113
134
|
nodeIds.add(id);
|
|
114
135
|
const passed = (passes.get(id) ?? 0) + 1;
|
|
115
136
|
passes.set(id, passed);
|
|
116
137
|
mostPasses = Math.max(mostPasses, passed);
|
|
117
|
-
|
|
118
|
-
|
|
138
|
+
const a = i > 0 ? piece.nodeIds[i - 1] : joins ? last : void 0;
|
|
139
|
+
if (a !== void 0) {
|
|
119
140
|
const index = edgeAt.get(`${a}>${id}`) ?? edgeAt.get(`${id}>${a}`);
|
|
120
141
|
if (index !== void 0) {
|
|
121
142
|
edgeIndexes.add(index);
|
|
@@ -134,17 +155,20 @@ function highlightOf(graph, name, { byId, edgeAt }) {
|
|
|
134
155
|
}
|
|
135
156
|
before += length;
|
|
136
157
|
});
|
|
158
|
+
previous = piece;
|
|
137
159
|
}
|
|
138
160
|
const departures = departuresOf(graph, name);
|
|
139
161
|
let missingBp = 0;
|
|
140
162
|
let ownBp = 0;
|
|
163
|
+
let readBp = 0;
|
|
164
|
+
let unreadBp = 0;
|
|
141
165
|
const countOwn = (gap) => {
|
|
142
166
|
for (const x of gap.segments) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
167
|
+
const missing = x.kind === "own" ? Math.min(x.missingBp, x.bp) : 0;
|
|
168
|
+
missingBp += missing;
|
|
169
|
+
ownBp += x.kind === "own" ? x.bp - missing : 0;
|
|
170
|
+
readBp += x.kind === "read" ? x.bp : 0;
|
|
171
|
+
unreadBp += x.kind === "unread" ? x.bp : 0;
|
|
148
172
|
}
|
|
149
173
|
};
|
|
150
174
|
let end;
|
|
@@ -161,6 +185,8 @@ function highlightOf(graph, name, { byId, edgeAt }) {
|
|
|
161
185
|
)) {
|
|
162
186
|
missingBp += part.cause === "missing" ? part.bp : 0;
|
|
163
187
|
ownBp += part.cause === "own" ? part.bp : 0;
|
|
188
|
+
readBp += part.cause === void 0 ? part.bp : 0;
|
|
189
|
+
unreadBp += part.cause === "elsewhere" ? part.bp : 0;
|
|
164
190
|
}
|
|
165
191
|
}
|
|
166
192
|
end = piece.start === void 0 ? void 0 : piece.start + bpOf(piece);
|
|
@@ -190,7 +216,8 @@ function highlightOf(graph, name, { byId, edgeAt }) {
|
|
|
190
216
|
bp,
|
|
191
217
|
referenceBp: referenceSpan(),
|
|
192
218
|
missingBp,
|
|
193
|
-
ownBp
|
|
219
|
+
ownBp,
|
|
220
|
+
...stated.length > 0 ? { readBp, unreadBp } : {}
|
|
194
221
|
};
|
|
195
222
|
}
|
|
196
223
|
function departuresOf(graph, name) {
|
package/dist/cli/figure.js
CHANGED
|
@@ -9,16 +9,16 @@ import "../chunks/chunk-EQDQ7P4Y.js";
|
|
|
9
9
|
import {
|
|
10
10
|
laidOutGraph,
|
|
11
11
|
walkLayers
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-OKB7GGDV.js";
|
|
13
13
|
import {
|
|
14
14
|
LAYOUT_ENGINE_VALUES,
|
|
15
15
|
isLayoutEngineKind
|
|
16
16
|
} from "../chunks/chunk-CO6RGQAD.js";
|
|
17
17
|
import {
|
|
18
18
|
LAYOUT_MODES
|
|
19
|
-
} from "../chunks/chunk-
|
|
19
|
+
} from "../chunks/chunk-7CGET6BU.js";
|
|
20
20
|
import "../chunks/chunk-3JDGPLCL.js";
|
|
21
|
-
import "../chunks/chunk-
|
|
21
|
+
import "../chunks/chunk-IBQAXKS4.js";
|
|
22
22
|
import "../chunks/chunk-KKHXMJEE.js";
|
|
23
23
|
import "../chunks/chunk-CNWAVRLF.js";
|
|
24
24
|
import "../chunks/chunk-LLTISBAA.js";
|
|
@@ -36,9 +36,9 @@ import "../chunks/chunk-WZWJJR5A.js";
|
|
|
36
36
|
import "../chunks/chunk-HNWJ4B7S.js";
|
|
37
37
|
import {
|
|
38
38
|
figureSvg
|
|
39
|
-
} from "../chunks/chunk-
|
|
39
|
+
} from "../chunks/chunk-QW33FFVC.js";
|
|
40
40
|
import "../chunks/chunk-V4YML3GR.js";
|
|
41
|
-
import "../chunks/chunk-
|
|
41
|
+
import "../chunks/chunk-UV6FRSVJ.js";
|
|
42
42
|
import "../chunks/chunk-4DMSPNYV.js";
|
|
43
43
|
import "../chunks/chunk-RBCE2OQH.js";
|
|
44
44
|
import "../chunks/chunk-JSUCGZ6K.js";
|
|
@@ -48,23 +48,23 @@ import "../chunks/chunk-TLKWIPDZ.js";
|
|
|
48
48
|
import "../chunks/chunk-RDUAP62O.js";
|
|
49
49
|
import "../chunks/chunk-4OSLB6GA.js";
|
|
50
50
|
import "../chunks/chunk-HEYIAMTC.js";
|
|
51
|
-
import "../chunks/chunk-
|
|
51
|
+
import "../chunks/chunk-KZBRIRU2.js";
|
|
52
52
|
import "../chunks/chunk-V52OO6JT.js";
|
|
53
|
-
import "../chunks/chunk-
|
|
53
|
+
import "../chunks/chunk-XRQ5OIJV.js";
|
|
54
54
|
import "../chunks/chunk-LOCJN3BZ.js";
|
|
55
|
-
import "../chunks/chunk-
|
|
56
|
-
import "../chunks/chunk-
|
|
55
|
+
import "../chunks/chunk-ZC4CWI3C.js";
|
|
56
|
+
import "../chunks/chunk-YA2KQ76R.js";
|
|
57
57
|
import "../chunks/chunk-KAHJSU3Q.js";
|
|
58
|
-
import "../chunks/chunk-
|
|
58
|
+
import "../chunks/chunk-TWWHKS3M.js";
|
|
59
59
|
import {
|
|
60
60
|
filterSamples,
|
|
61
61
|
walkRows
|
|
62
|
-
} from "../chunks/chunk-
|
|
63
|
-
import "../chunks/chunk-
|
|
62
|
+
} from "../chunks/chunk-7NPCAPU3.js";
|
|
63
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
64
64
|
import {
|
|
65
65
|
genesOnRow,
|
|
66
66
|
placeRowGenes
|
|
67
|
-
} from "../chunks/chunk-
|
|
67
|
+
} from "../chunks/chunk-EV4DEMRT.js";
|
|
68
68
|
import "../chunks/chunk-BHJWSWJK.js";
|
|
69
69
|
import "../chunks/chunk-YUIKEUKY.js";
|
|
70
70
|
import "../chunks/chunk-G2FD7S3C.js";
|
package/dist/figure.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureSvg
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-QW33FFVC.js";
|
|
4
4
|
import "./chunks/chunk-V4YML3GR.js";
|
|
5
|
-
import "./chunks/chunk-
|
|
5
|
+
import "./chunks/chunk-UV6FRSVJ.js";
|
|
6
6
|
import "./chunks/chunk-4DMSPNYV.js";
|
|
7
7
|
import "./chunks/chunk-RBCE2OQH.js";
|
|
8
8
|
import "./chunks/chunk-JSUCGZ6K.js";
|
|
@@ -12,17 +12,17 @@ import "./chunks/chunk-TLKWIPDZ.js";
|
|
|
12
12
|
import "./chunks/chunk-RDUAP62O.js";
|
|
13
13
|
import "./chunks/chunk-4OSLB6GA.js";
|
|
14
14
|
import "./chunks/chunk-HEYIAMTC.js";
|
|
15
|
-
import "./chunks/chunk-
|
|
15
|
+
import "./chunks/chunk-KZBRIRU2.js";
|
|
16
16
|
import "./chunks/chunk-V52OO6JT.js";
|
|
17
|
-
import "./chunks/chunk-
|
|
17
|
+
import "./chunks/chunk-XRQ5OIJV.js";
|
|
18
18
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
19
|
-
import "./chunks/chunk-
|
|
20
|
-
import "./chunks/chunk-
|
|
19
|
+
import "./chunks/chunk-ZC4CWI3C.js";
|
|
20
|
+
import "./chunks/chunk-YA2KQ76R.js";
|
|
21
21
|
import "./chunks/chunk-KAHJSU3Q.js";
|
|
22
|
-
import "./chunks/chunk-
|
|
23
|
-
import "./chunks/chunk-
|
|
24
|
-
import "./chunks/chunk-
|
|
25
|
-
import "./chunks/chunk-
|
|
22
|
+
import "./chunks/chunk-TWWHKS3M.js";
|
|
23
|
+
import "./chunks/chunk-7NPCAPU3.js";
|
|
24
|
+
import "./chunks/chunk-6C7KB7GY.js";
|
|
25
|
+
import "./chunks/chunk-EV4DEMRT.js";
|
|
26
26
|
import "./chunks/chunk-BHJWSWJK.js";
|
|
27
27
|
import "./chunks/chunk-YUIKEUKY.js";
|
|
28
28
|
import "./chunks/chunk-G2FD7S3C.js";
|
package/dist/figureData.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
gfaFigureData,
|
|
4
4
|
laidOutGraph,
|
|
5
5
|
walkLayers
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-OKB7GGDV.js";
|
|
7
7
|
import "./chunks/chunk-CO6RGQAD.js";
|
|
8
|
-
import "./chunks/chunk-
|
|
8
|
+
import "./chunks/chunk-7CGET6BU.js";
|
|
9
9
|
import "./chunks/chunk-3JDGPLCL.js";
|
|
10
|
-
import "./chunks/chunk-
|
|
10
|
+
import "./chunks/chunk-IBQAXKS4.js";
|
|
11
11
|
import "./chunks/chunk-KKHXMJEE.js";
|
|
12
12
|
import "./chunks/chunk-CNWAVRLF.js";
|
|
13
13
|
import "./chunks/chunk-LLTISBAA.js";
|
|
@@ -18,17 +18,17 @@ import "./chunks/chunk-TTSA2ML4.js";
|
|
|
18
18
|
import "./chunks/chunk-WZWJJR5A.js";
|
|
19
19
|
import "./chunks/chunk-HNWJ4B7S.js";
|
|
20
20
|
import "./chunks/chunk-HEYIAMTC.js";
|
|
21
|
-
import "./chunks/chunk-
|
|
21
|
+
import "./chunks/chunk-KZBRIRU2.js";
|
|
22
22
|
import "./chunks/chunk-V52OO6JT.js";
|
|
23
|
-
import "./chunks/chunk-
|
|
23
|
+
import "./chunks/chunk-XRQ5OIJV.js";
|
|
24
24
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
25
|
-
import "./chunks/chunk-
|
|
26
|
-
import "./chunks/chunk-
|
|
25
|
+
import "./chunks/chunk-ZC4CWI3C.js";
|
|
26
|
+
import "./chunks/chunk-YA2KQ76R.js";
|
|
27
27
|
import "./chunks/chunk-KAHJSU3Q.js";
|
|
28
|
-
import "./chunks/chunk-
|
|
29
|
-
import "./chunks/chunk-
|
|
30
|
-
import "./chunks/chunk-
|
|
31
|
-
import "./chunks/chunk-
|
|
28
|
+
import "./chunks/chunk-TWWHKS3M.js";
|
|
29
|
+
import "./chunks/chunk-7NPCAPU3.js";
|
|
30
|
+
import "./chunks/chunk-6C7KB7GY.js";
|
|
31
|
+
import "./chunks/chunk-EV4DEMRT.js";
|
|
32
32
|
import "./chunks/chunk-BHJWSWJK.js";
|
|
33
33
|
import "./chunks/chunk-YUIKEUKY.js";
|
|
34
34
|
import "./chunks/chunk-G2FD7S3C.js";
|
package/dist/figureScene.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
figureScene
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-XRQ5OIJV.js";
|
|
4
4
|
import "./chunks/chunk-LOCJN3BZ.js";
|
|
5
|
-
import "./chunks/chunk-
|
|
6
|
-
import "./chunks/chunk-
|
|
5
|
+
import "./chunks/chunk-ZC4CWI3C.js";
|
|
6
|
+
import "./chunks/chunk-YA2KQ76R.js";
|
|
7
7
|
import "./chunks/chunk-KAHJSU3Q.js";
|
|
8
|
-
import "./chunks/chunk-
|
|
9
|
-
import "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
8
|
+
import "./chunks/chunk-TWWHKS3M.js";
|
|
9
|
+
import "./chunks/chunk-7NPCAPU3.js";
|
|
10
|
+
import "./chunks/chunk-6C7KB7GY.js";
|
|
11
|
+
import "./chunks/chunk-EV4DEMRT.js";
|
|
12
12
|
import "./chunks/chunk-BHJWSWJK.js";
|
|
13
13
|
import "./chunks/chunk-YUIKEUKY.js";
|
|
14
14
|
import "./chunks/chunk-G2FD7S3C.js";
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
tubeMapMismatchAt,
|
|
14
14
|
tubeMapPicture,
|
|
15
15
|
tubeMapTrackAt
|
|
16
|
-
} from "./chunks/chunk-
|
|
16
|
+
} from "./chunks/chunk-G7UNOR76.js";
|
|
17
17
|
import {
|
|
18
18
|
tubeMapFrame,
|
|
19
19
|
tubeMapNodeAt
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunks/chunk-JFRWYOIV.js";
|
|
39
39
|
import {
|
|
40
40
|
bundleRoutes
|
|
41
|
-
} from "./chunks/chunk-
|
|
41
|
+
} from "./chunks/chunk-4WZDEWAI.js";
|
|
42
42
|
import {
|
|
43
43
|
ribbonJoin,
|
|
44
44
|
sharedRowOrder,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
import {
|
|
98
98
|
figureData,
|
|
99
99
|
gfaFigureData
|
|
100
|
-
} from "./chunks/chunk-
|
|
100
|
+
} from "./chunks/chunk-OKB7GGDV.js";
|
|
101
101
|
import {
|
|
102
102
|
LAYOUT_ENGINES,
|
|
103
103
|
layoutEngine
|
|
@@ -107,9 +107,9 @@ import {
|
|
|
107
107
|
LAYOUT_MODES,
|
|
108
108
|
layoutModeByValue,
|
|
109
109
|
modeUsesLayoutEngine
|
|
110
|
-
} from "./chunks/chunk-
|
|
110
|
+
} from "./chunks/chunk-7CGET6BU.js";
|
|
111
111
|
import "./chunks/chunk-3JDGPLCL.js";
|
|
112
|
-
import "./chunks/chunk-
|
|
112
|
+
import "./chunks/chunk-IBQAXKS4.js";
|
|
113
113
|
import "./chunks/chunk-KKHXMJEE.js";
|
|
114
114
|
import "./chunks/chunk-CNWAVRLF.js";
|
|
115
115
|
import "./chunks/chunk-LLTISBAA.js";
|
|
@@ -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-QW33FFVC.js";
|
|
138
138
|
import {
|
|
139
139
|
svgCanvas
|
|
140
140
|
} from "./chunks/chunk-V4YML3GR.js";
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
walkStripApplies,
|
|
150
150
|
walkStripFrame,
|
|
151
151
|
walkStripLabelsTree
|
|
152
|
-
} from "./chunks/chunk-
|
|
152
|
+
} from "./chunks/chunk-UV6FRSVJ.js";
|
|
153
153
|
import {
|
|
154
154
|
Canvas2DRenderer
|
|
155
155
|
} from "./chunks/chunk-4DMSPNYV.js";
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
} from "./chunks/chunk-HEYIAMTC.js";
|
|
186
186
|
import {
|
|
187
187
|
version
|
|
188
|
-
} from "./chunks/chunk-
|
|
188
|
+
} from "./chunks/chunk-KZBRIRU2.js";
|
|
189
189
|
import {
|
|
190
190
|
axisScaleOf,
|
|
191
191
|
contains,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
viewportOf,
|
|
195
195
|
zoomAbout
|
|
196
196
|
} from "./chunks/chunk-V52OO6JT.js";
|
|
197
|
-
import "./chunks/chunk-
|
|
197
|
+
import "./chunks/chunk-XRQ5OIJV.js";
|
|
198
198
|
import {
|
|
199
199
|
layoutGeometryInputs
|
|
200
200
|
} from "./chunks/chunk-LOCJN3BZ.js";
|
|
@@ -203,12 +203,12 @@ import {
|
|
|
203
203
|
fadedKey,
|
|
204
204
|
walkHighlight,
|
|
205
205
|
walkLift
|
|
206
|
-
} from "./chunks/chunk-
|
|
206
|
+
} from "./chunks/chunk-ZC4CWI3C.js";
|
|
207
207
|
import {
|
|
208
208
|
rangeText,
|
|
209
209
|
walkKey,
|
|
210
210
|
walkPosition
|
|
211
|
-
} from "./chunks/chunk-
|
|
211
|
+
} from "./chunks/chunk-YA2KQ76R.js";
|
|
212
212
|
import {
|
|
213
213
|
WALK_FIELDS,
|
|
214
214
|
WALK_SCHEMES,
|
|
@@ -221,16 +221,16 @@ import {
|
|
|
221
221
|
walkRowLabels,
|
|
222
222
|
walkRowLayoutOf,
|
|
223
223
|
walkRowsExtent
|
|
224
|
-
} from "./chunks/chunk-
|
|
224
|
+
} from "./chunks/chunk-TWWHKS3M.js";
|
|
225
225
|
import {
|
|
226
226
|
filterSamples,
|
|
227
227
|
walkRows
|
|
228
|
-
} from "./chunks/chunk-
|
|
228
|
+
} from "./chunks/chunk-7NPCAPU3.js";
|
|
229
229
|
import {
|
|
230
230
|
runAt,
|
|
231
231
|
walkRowRuns,
|
|
232
232
|
walkRowsOf
|
|
233
|
-
} from "./chunks/chunk-
|
|
233
|
+
} from "./chunks/chunk-6C7KB7GY.js";
|
|
234
234
|
import {
|
|
235
235
|
BAR_PX,
|
|
236
236
|
CALL_TICK,
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
walkRowsKey,
|
|
260
260
|
walkRowsKeyTree,
|
|
261
261
|
walkRowsTree
|
|
262
|
-
} from "./chunks/chunk-
|
|
262
|
+
} from "./chunks/chunk-EV4DEMRT.js";
|
|
263
263
|
import {
|
|
264
264
|
buildGeometry,
|
|
265
265
|
computeReferenceRamp
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
tubeMapLayout,
|
|
6
6
|
tubeMapReferenceLayout,
|
|
7
7
|
tubeMapTracks
|
|
8
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-IBQAXKS4.js";
|
|
9
9
|
import "../chunks/chunk-KKHXMJEE.js";
|
|
10
10
|
import "../chunks/chunk-5OJZV6YT.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
12
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
13
13
|
import "../chunks/chunk-YYV5IWAA.js";
|
|
14
14
|
import "../chunks/chunk-A65QHIGX.js";
|
|
15
15
|
import "../chunks/chunk-IPNRPZBI.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
walkRowsKey,
|
|
32
32
|
walkRowsKeyTree,
|
|
33
33
|
walkRowsTree
|
|
34
|
-
} from "../chunks/chunk-
|
|
34
|
+
} from "../chunks/chunk-EV4DEMRT.js";
|
|
35
35
|
import "../chunks/chunk-BHJWSWJK.js";
|
|
36
36
|
import "../chunks/chunk-YUIKEUKY.js";
|
|
37
37
|
import "../chunks/chunk-G2FD7S3C.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
walkRowLayout,
|
|
6
6
|
walkRowLayoutOf,
|
|
7
7
|
walkRowsExtent
|
|
8
|
-
} from "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
10
|
-
import "../chunks/chunk-
|
|
11
|
-
import "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-TWWHKS3M.js";
|
|
9
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
10
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
11
|
+
import "../chunks/chunk-EV4DEMRT.js";
|
|
12
12
|
import "../chunks/chunk-BHJWSWJK.js";
|
|
13
13
|
import "../chunks/chunk-YUIKEUKY.js";
|
|
14
14
|
import "../chunks/chunk-G2FD7S3C.js";
|
package/dist/layout/walkRows.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filterSamples,
|
|
3
3
|
walkRows
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-7NPCAPU3.js";
|
|
5
5
|
import {
|
|
6
6
|
referenceWalkName
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-6C7KB7GY.js";
|
|
8
8
|
import "../chunks/chunk-A65QHIGX.js";
|
|
9
9
|
import "../chunks/chunk-IPNRPZBI.js";
|
|
10
10
|
import "../chunks/chunk-QBI6SC74.js";
|
package/dist/layout/walkStrip.js
CHANGED
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
walkStripApplies,
|
|
10
10
|
walkStripFrame,
|
|
11
11
|
walkStripLabelsTree
|
|
12
|
-
} from "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
14
|
-
import "../chunks/chunk-
|
|
15
|
-
import "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-UV6FRSVJ.js";
|
|
13
|
+
import "../chunks/chunk-TWWHKS3M.js";
|
|
14
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
15
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
16
16
|
import {
|
|
17
17
|
LABELLED_ROW_PX
|
|
18
|
-
} from "../chunks/chunk-
|
|
18
|
+
} from "../chunks/chunk-EV4DEMRT.js";
|
|
19
19
|
import "../chunks/chunk-BHJWSWJK.js";
|
|
20
20
|
import "../chunks/chunk-YUIKEUKY.js";
|
|
21
21
|
import "../chunks/chunk-G2FD7S3C.js";
|
package/dist/layoutModes.js
CHANGED
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
LAYOUT_MODE_VALUES,
|
|
5
5
|
layoutModeByValue,
|
|
6
6
|
modeUsesLayoutEngine
|
|
7
|
-
} from "./chunks/chunk-
|
|
7
|
+
} from "./chunks/chunk-7CGET6BU.js";
|
|
8
8
|
import "./chunks/chunk-3JDGPLCL.js";
|
|
9
|
-
import "./chunks/chunk-
|
|
9
|
+
import "./chunks/chunk-IBQAXKS4.js";
|
|
10
10
|
import "./chunks/chunk-KKHXMJEE.js";
|
|
11
11
|
import "./chunks/chunk-CNWAVRLF.js";
|
|
12
12
|
import "./chunks/chunk-LLTISBAA.js";
|
|
13
13
|
import "./chunks/chunk-5OJZV6YT.js";
|
|
14
14
|
import "./chunks/chunk-VYFNEF53.js";
|
|
15
15
|
import "./chunks/chunk-Q7OFBTBW.js";
|
|
16
|
-
import "./chunks/chunk-
|
|
17
|
-
import "./chunks/chunk-
|
|
18
|
-
import "./chunks/chunk-
|
|
19
|
-
import "./chunks/chunk-
|
|
16
|
+
import "./chunks/chunk-TWWHKS3M.js";
|
|
17
|
+
import "./chunks/chunk-7NPCAPU3.js";
|
|
18
|
+
import "./chunks/chunk-6C7KB7GY.js";
|
|
19
|
+
import "./chunks/chunk-EV4DEMRT.js";
|
|
20
20
|
import "./chunks/chunk-BHJWSWJK.js";
|
|
21
21
|
import "./chunks/chunk-YUIKEUKY.js";
|
|
22
22
|
import "./chunks/chunk-G2FD7S3C.js";
|
package/dist/tubeMap/bundle.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bundleRoutes
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-4WZDEWAI.js";
|
|
4
|
+
import "../chunks/chunk-IBQAXKS4.js";
|
|
5
5
|
import "../chunks/chunk-KKHXMJEE.js";
|
|
6
6
|
import "../chunks/chunk-5OJZV6YT.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
8
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
9
9
|
import "../chunks/chunk-YYV5IWAA.js";
|
|
10
10
|
import "../chunks/chunk-A65QHIGX.js";
|
|
11
11
|
import "../chunks/chunk-IPNRPZBI.js";
|
package/dist/tubeMap/coarsen.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
coarsenTubeMap,
|
|
3
3
|
lastAtMost
|
|
4
|
-
} from "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-WKOUVIVO.js";
|
|
5
|
+
import "../chunks/chunk-IBQAXKS4.js";
|
|
6
6
|
import "../chunks/chunk-KKHXMJEE.js";
|
|
7
7
|
import "../chunks/chunk-5OJZV6YT.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
9
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
9
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
10
10
|
import "../chunks/chunk-YYV5IWAA.js";
|
|
11
11
|
import "../chunks/chunk-A65QHIGX.js";
|
|
12
12
|
import "../chunks/chunk-IPNRPZBI.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lastAtMost
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-WKOUVIVO.js";
|
|
4
4
|
import {
|
|
5
5
|
boxX,
|
|
6
6
|
referenceBoxes
|
|
7
7
|
} from "../chunks/chunk-JFRWYOIV.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-IBQAXKS4.js";
|
|
9
9
|
import "../chunks/chunk-KKHXMJEE.js";
|
|
10
10
|
import "../chunks/chunk-5OJZV6YT.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
12
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
13
13
|
import "../chunks/chunk-YYV5IWAA.js";
|
|
14
14
|
import "../chunks/chunk-A65QHIGX.js";
|
|
15
15
|
import "../chunks/chunk-IPNRPZBI.js";
|
package/dist/tubeMap/draw.js
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
tubeMapMismatchAt,
|
|
9
9
|
tubeMapPicture,
|
|
10
10
|
tubeMapTrackAt
|
|
11
|
-
} from "../chunks/chunk-
|
|
11
|
+
} from "../chunks/chunk-G7UNOR76.js";
|
|
12
12
|
import "../chunks/chunk-MYDHU2UV.js";
|
|
13
13
|
import "../chunks/chunk-BX4AUMZE.js";
|
|
14
14
|
import "../chunks/chunk-KKHXMJEE.js";
|
|
15
15
|
import "../chunks/chunk-5OJZV6YT.js";
|
|
16
|
-
import "../chunks/chunk-
|
|
17
|
-
import "../chunks/chunk-
|
|
16
|
+
import "../chunks/chunk-7NPCAPU3.js";
|
|
17
|
+
import "../chunks/chunk-6C7KB7GY.js";
|
|
18
18
|
import "../chunks/chunk-A65QHIGX.js";
|
|
19
19
|
import "../chunks/chunk-IPNRPZBI.js";
|
|
20
20
|
import "../chunks/chunk-QBI6SC74.js";
|
|
@@ -18,7 +18,7 @@ export interface ReadoutCall {
|
|
|
18
18
|
spanningReads?: number;
|
|
19
19
|
agrees?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare function walkRowReadout(row: Pick<WalkRow, 'bp' | 'gapBp' | 'complete' | 'stop' | 'abridgedSteps' | 'estimated' | 'departures' | 'placementChoice' | 'stepless'> & {
|
|
21
|
+
export declare function walkRowReadout(row: Pick<WalkRow, 'bp' | 'gapBp' | 'complete' | 'stop' | 'abridgedSteps' | 'estimated' | 'departures' | 'placementChoice' | 'stepless' | 'outsideRow'> & {
|
|
22
22
|
runs?: WalkRun[];
|
|
23
23
|
}, reference: (Pick<WalkRow, 'bp'> & Partial<WalkRow>) | undefined, unit?: number, call?: ReadoutCall): string;
|
|
24
24
|
export declare function readoutPlacement(text: string, endX: number, width: number): {
|
|
@@ -23,6 +23,7 @@ export interface WalkStop {
|
|
|
23
23
|
goesOn?: {
|
|
24
24
|
departure: Departure;
|
|
25
25
|
near: number;
|
|
26
|
+
drawn?: true;
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
export interface WalkVisit {
|
|
@@ -46,6 +47,10 @@ export interface WalkRow {
|
|
|
46
47
|
departures?: Departure[];
|
|
47
48
|
placementChoice?: true;
|
|
48
49
|
stepless?: true;
|
|
50
|
+
outsideRow?: {
|
|
51
|
+
count: number;
|
|
52
|
+
stepsBp: number;
|
|
53
|
+
};
|
|
49
54
|
runs: WalkRun[];
|
|
50
55
|
visits?: WalkVisit[];
|
|
51
56
|
axis?: WalkAxis;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "13.
|
|
1
|
+
export declare const version = "13.3.0";
|
package/dist/version.js
CHANGED
package/dist/walkHighlight.js
CHANGED
package/dist/walkKey.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.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": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@eslint/js": "^10.0.1",
|
|
46
|
-
"@jbrowse/graph-walks": "^6.
|
|
46
|
+
"@jbrowse/graph-walks": "^6.2.0",
|
|
47
47
|
"@types/node": "^26.6.5",
|
|
48
48
|
"esbuild": "^0.28.2",
|
|
49
49
|
"eslint": "^10.11.0",
|