chromosomix 0.19.0 → 0.20.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/README.md +11 -5
- package/dist/THIRD-PARTY-NOTICES.txt +2 -2
- package/dist/assets/{ConnectCard-Cs0rIBEC.js → ConnectCard-DMVXG5RV.js} +1 -1
- package/dist/assets/{Tour-B3qRVNiU.js → Tour-B2TqlBZJ.js} +1 -1
- package/dist/assets/analysis.worker-CCrEqZ1d.js +8 -0
- package/dist/assets/{annotations.worker-Dkfm4-Th.js → annotations.worker-DPRPwDSy.js} +26 -26
- package/dist/assets/index-Cy5f_JUV.css +1 -0
- package/dist/assets/index-Cys9FWNc.js +579 -0
- package/dist/assets/{reader.worker-BqZlpJND.js → reader.worker-D44DC4HP.js} +5 -5
- package/dist/assets/{three-Cfa_LIWm.js → three-8dUtnT3a.js} +1 -1
- package/dist/assets/{tutorial-DNkh-qGr.js → tutorial-C8UBY5wh.js} +1 -1
- package/dist/assets/workspace-DtuBV6aE.js +12 -0
- package/dist/index.html +2 -2
- package/dist-cli/THIRD-PARTY-NOTICES.txt +2 -2
- package/dist-cli/chromosomix.mjs +79 -23
- package/package.json +8 -2
- package/dist/assets/analysis.worker-CC07Gv-8.js +0 -8
- package/dist/assets/index-CPxipgOR.js +0 -579
- package/dist/assets/index-D34Q3Ivo.css +0 -1
- package/dist/assets/workspace-8e1ZWdoH.js +0 -12
package/dist/index.html
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
<!-- The manifest, touch-icon and theme-color tags are stripped for this build. -->
|
|
28
28
|
<!-- Written by `npm run icons:app` (scripts/make-app-icons.py) — do not edit by hand. -->
|
|
29
29
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cdefs%3E%3ClinearGradient id='p' x2='0' y2='1'%3E%3Cstop stop-color='%232c231e'/%3E%3Cstop offset='1' stop-color='%230f0b09'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x2='0' y2='1'%3E%3Cstop stop-color='%23ffffff' stop-opacity='.333'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='.125'/%3E%3C/linearGradient%3E%3Crect id='c' x='.085' y='.085' width='.83' height='.83' rx='.141'/%3E%3C/defs%3E%3Crect width='1024' height='1024' rx='229.069' fill='url(%23p)'/%3E%3Cg fill='%23ce5c30' transform='translate(110.263 48.457) scale(123.611)'%3E%3Cuse href='%23c' x='0' y='0'/%3E%3Cuse href='%23c' x='1' y='0' opacity='.555'/%3E%3Cuse href='%23c' x='2' y='0' opacity='.308'/%3E%3Cuse href='%23c' x='6' y='0' opacity='.6'/%3E%3Cuse href='%23c' x='0' y='1' opacity='.555'/%3E%3Cuse href='%23c' x='1' y='1'/%3E%3Cuse href='%23c' x='2' y='1' opacity='.555'/%3E%3Cuse href='%23c' x='3' y='1' opacity='.065'/%3E%3Cuse href='%23c' x='4' y='1' opacity='.34'/%3E%3Cuse href='%23c' x='0' y='2' opacity='.308'/%3E%3Cuse href='%23c' x='1' y='2' opacity='.555'/%3E%3Cuse href='%23c' x='2' y='2'/%3E%3Cuse href='%23c' x='3' y='2' opacity='.099'/%3E%3Cuse href='%23c' x='4' y='2' opacity='.065'/%3E%3Cuse href='%23c' x='1' y='3' opacity='.065'/%3E%3Cuse href='%23c' x='2' y='3' opacity='.099'/%3E%3Cuse href='%23c' x='3' y='3'/%3E%3Cuse href='%23c' x='4' y='3' opacity='.555'/%3E%3Cuse href='%23c' x='5' y='3' opacity='.065'/%3E%3Cuse href='%23c' x='1' y='4' opacity='.34'/%3E%3Cuse href='%23c' x='2' y='4' opacity='.065'/%3E%3Cuse href='%23c' x='3' y='4' opacity='.555'/%3E%3Cuse href='%23c' x='4' y='4'/%3E%3Cuse href='%23c' x='5' y='4' opacity='.099'/%3E%3Cuse href='%23c' x='6' y='4' opacity='.065'/%3E%3Cuse href='%23c' x='3' y='5' opacity='.065'/%3E%3Cuse href='%23c' x='4' y='5' opacity='.099'/%3E%3Cuse href='%23c' x='5' y='5'/%3E%3Cuse href='%23c' x='6' y='5' opacity='.555'/%3E%3Cuse href='%23c' x='0' y='6' opacity='.6'/%3E%3Cuse href='%23c' x='4' y='6' opacity='.065'/%3E%3Cuse href='%23c' x='5' y='6' opacity='.555'/%3E%3Cuse href='%23c' x='6' y='6'/%3E%3C/g%3E%3Cg fill='%235eb1e0'%3E%3Crect x='48.457' y='58.964' width='37.083' height='102.597' rx='12.608'/%3E%3Crect x='48.457' y='182.576' width='37.083' height='102.597' rx='12.608' opacity='.52'/%3E%3Crect x='48.457' y='306.187' width='37.083' height='102.597' rx='12.608' opacity='.3'/%3E%3Crect x='48.457' y='429.798' width='37.083' height='102.597' rx='12.608' opacity='.86'/%3E%3Crect x='48.457' y='553.41' width='37.083' height='102.597' rx='12.608' opacity='.44'/%3E%3Crect x='48.457' y='677.021' width='37.083' height='102.597' rx='12.608' opacity='.74'/%3E%3Crect x='48.457' y='800.633' width='37.083' height='102.597' rx='12.608' opacity='.36'/%3E%3C/g%3E%3Cg fill='%236b8899'%3E%3Crect x='120.77' y='938.459' width='102.597' height='37.083' rx='12.608' opacity='.82'/%3E%3Crect x='244.381' y='938.459' width='102.597' height='37.083' rx='12.608' opacity='.38'/%3E%3Crect x='367.993' y='938.459' width='102.597' height='37.083' rx='12.608' opacity='.55'/%3E%3Crect x='491.604' y='938.459' width='102.597' height='37.083' rx='12.608'/%3E%3Crect x='615.216' y='938.459' width='102.597' height='37.083' rx='12.608' opacity='.34'/%3E%3Crect x='738.827' y='938.459' width='102.597' height='37.083' rx='12.608' opacity='.68'/%3E%3Crect x='862.438' y='938.459' width='102.597' height='37.083' rx='12.608' opacity='.46'/%3E%3C/g%3E%3Crect x='14.336' y='14.336' width='995.328' height='995.328' rx='214.733' fill='none' stroke='url(%23r)' stroke-width='28.672'/%3E%3C/svg%3E" />
|
|
30
|
-
<script type="module" crossorigin src="./assets/index-
|
|
31
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
30
|
+
<script type="module" crossorigin src="./assets/index-Cys9FWNc.js"></script>
|
|
31
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Cy5f_JUV.css">
|
|
32
32
|
</head>
|
|
33
33
|
<body>
|
|
34
34
|
<!-- What a reader without JavaScript sees, and all that a crawler which runs none reads of the page:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Third-party notices for chromosomix 0.
|
|
1
|
+
Third-party notices for chromosomix 0.20.0
|
|
2
2
|
|
|
3
3
|
chromosomix itself is released under the GNU General Public License, version 3 or (at your option) any later version, reproduced below and in its repository, https://github.com/js2264/chromosomix.
|
|
4
4
|
The complete source of this build, and of every release, is at https://github.com/js2264/chromosomix.
|
|
@@ -19,7 +19,7 @@ Copied or ported into the source:
|
|
|
19
19
|
yapc 0.1 — GPL-3.0
|
|
20
20
|
|
|
21
21
|
========================================================================
|
|
22
|
-
chromosomix 0.
|
|
22
|
+
chromosomix 0.20.0 — GPL-3.0-or-later
|
|
23
23
|
https://github.com/js2264/chromosomix
|
|
24
24
|
========================================================================
|
|
25
25
|
|
package/dist-cli/chromosomix.mjs
CHANGED
|
@@ -12747,11 +12747,13 @@ const APA_TASK = {
|
|
|
12747
12747
|
version: 3,
|
|
12748
12748
|
// **Not** `requires: ['expected']`, though §18.8 describes the O/E path as
|
|
12749
12749
|
// needing it. `requires` is static and the runner resolves it before every
|
|
12750
|
-
// run, so declaring it would compute a whole-file P(s) on every APA —
|
|
12751
|
-
//
|
|
12752
|
-
//
|
|
12753
|
-
//
|
|
12754
|
-
//
|
|
12750
|
+
// run, so declaring it would compute a whole-file P(s) on every APA — the
|
|
12751
|
+
// chromosight, distance-matched and raw (`none`) runs included, which never
|
|
12752
|
+
// look at it — for a number that O/E, the default, does not need whole
|
|
12753
|
+
// either. The expected an APA needs is a narrower question than the task's:
|
|
12754
|
+
// the diagonals its own windows reach, on the sequences its own anchors sit
|
|
12755
|
+
// on, which the runner reads as one band per sequence and never deeper than
|
|
12756
|
+
// the farthest window.
|
|
12755
12757
|
// It is *not* the windows' own cells, which is what it once was: an expected
|
|
12756
12758
|
// taken from squares about a loop set is the mean of the places the set
|
|
12757
12759
|
// picked, enriched by construction, and not the sequence's.
|
|
@@ -15517,11 +15519,18 @@ function matrixToTsv(output) {
|
|
|
15517
15519
|
lines.push(`# ${cell$2(stat2.label)}: ${fixed(stat2.value, stat2.digits ?? 4)}`);
|
|
15518
15520
|
}
|
|
15519
15521
|
const perCell = (ticks, count) => ticks.length === count && count > 0;
|
|
15522
|
+
const placed = output.xTickAt;
|
|
15520
15523
|
for (const [axis, ticks, count] of [
|
|
15521
15524
|
["x", output.xTicks, output.ncols],
|
|
15522
15525
|
["y", output.yTicks, output.nrows]
|
|
15523
15526
|
]) {
|
|
15524
|
-
if (ticks.length === 0
|
|
15527
|
+
if (ticks.length === 0) continue;
|
|
15528
|
+
if (axis === "x" && placed !== void 0 && placed.length === ticks.length) {
|
|
15529
|
+
const where = ticks.map((tick2, index) => ({ tick: tick2, column: placed[index] * count })).sort((a, b) => a.column - b.column).map((one2) => `${cell$2(one2.tick)} at ${fixed(one2.column, 4)}`);
|
|
15530
|
+
lines.push(`# ${axis} ticks, at a column edge (0 to ${count}): ${where.join(", ")}`);
|
|
15531
|
+
continue;
|
|
15532
|
+
}
|
|
15533
|
+
if (perCell(ticks, count)) continue;
|
|
15525
15534
|
lines.push(`# ${axis} ticks, evenly spaced across the axis: ${ticks.map(cell$2).join(", ")}`);
|
|
15526
15535
|
}
|
|
15527
15536
|
const label = (ticks, index, count) => perCell(ticks, count) ? cell$2(ticks[index]) : String(index);
|
|
@@ -19588,7 +19597,7 @@ function estimate$3(context, params) {
|
|
|
19588
19597
|
refusal: "Tick at least one sequence."
|
|
19589
19598
|
};
|
|
19590
19599
|
}
|
|
19591
|
-
const long = chosen2.filter((entry) => entry.bins > window2);
|
|
19600
|
+
const long = chosen2.filter((entry) => entry.bins > window2 * 2);
|
|
19592
19601
|
if (long.length === 0) {
|
|
19593
19602
|
const one2 = chosen2.length === 1 ? chosen2[0] : null;
|
|
19594
19603
|
return {
|
|
@@ -19596,7 +19605,7 @@ function estimate$3(context, params) {
|
|
|
19596
19605
|
requests: 0,
|
|
19597
19606
|
bytes: 0,
|
|
19598
19607
|
note: "Nothing to read.",
|
|
19599
|
-
refusal: one2 !== null ? `${one2.name} is ${one2.bins.toLocaleString()} bins and the window is ${window2.toLocaleString()}, so no bin on it has a whole window either side. Use a narrower window, or a longer sequence.` : `No ticked sequence is longer than a ${window2.toLocaleString()}-bin window, so no bin on any of them has a whole window either side. Use a narrower window, or tick a longer sequence.`
|
|
19608
|
+
refusal: one2 !== null ? `${one2.name} is ${one2.bins.toLocaleString()} bins and the window is ${window2.toLocaleString()}, so no bin on it has a whole window either side: it needs more than ${(window2 * 2).toLocaleString()}. Use a narrower window, or a longer sequence.` : `No ticked sequence is longer than twice a ${window2.toLocaleString()}-bin window, so no bin on any of them has a whole window either side. Use a narrower window, or tick a longer sequence.`
|
|
19600
19609
|
};
|
|
19601
19610
|
}
|
|
19602
19611
|
const extent2 = extentOf(long);
|
|
@@ -20613,8 +20622,8 @@ function quote(value) {
|
|
|
20613
20622
|
if (/^[A-Za-z0-9_@%+=:,./-]+$/.test(value)) return value;
|
|
20614
20623
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
20615
20624
|
}
|
|
20616
|
-
const VERSION = "0.
|
|
20617
|
-
const COMMIT = "
|
|
20625
|
+
const VERSION = "0.20.0";
|
|
20626
|
+
const COMMIT = "40ec1ec";
|
|
20618
20627
|
function chosenEntries(spec, params) {
|
|
20619
20628
|
if (spec.multiple === true) {
|
|
20620
20629
|
return listParam(params, spec.key).map((id2) => [`${spec.key}:${id2}`, id2]);
|
|
@@ -31941,6 +31950,17 @@ function offsetTicks(cells, binsize) {
|
|
|
31941
31950
|
const half = (cells - 1) / 2 * binsize;
|
|
31942
31951
|
return [0, 0.25, 0.5, 0.75, 1].map((fraction) => formatOffset(-half + fraction * 2 * half));
|
|
31943
31952
|
}
|
|
31953
|
+
function scaledLabel(axis, x) {
|
|
31954
|
+
if (!Number.isFinite(x)) return "";
|
|
31955
|
+
const near = 1e-9 * Math.max(1, Math.abs(axis.to - axis.from));
|
|
31956
|
+
if (Math.abs(x - axis.start) <= near) return "Start";
|
|
31957
|
+
if (Math.abs(x - axis.end) <= near) return "End";
|
|
31958
|
+
if (x < axis.start) return formatOffset((x - axis.start) * axis.flankStep);
|
|
31959
|
+
if (x > axis.end) return formatOffset((x - axis.end) * axis.flankStep);
|
|
31960
|
+
const share = (x - axis.start) / (axis.end - axis.start);
|
|
31961
|
+
const per = share * 100;
|
|
31962
|
+
return fmt$1.pct(share, Math.abs(per - Math.round(per)) < 1e-6 ? 0 : 1);
|
|
31963
|
+
}
|
|
31944
31964
|
function apaPreset(job) {
|
|
31945
31965
|
const name = strParam(job.params, "csPattern", "loops");
|
|
31946
31966
|
return CHROMOSIGHT_PRESETS.find((preset) => preset.name === name) ?? CHROMOSIGHT_PRESETS[0];
|
|
@@ -46361,9 +46381,17 @@ function axisFor(layout) {
|
|
|
46361
46381
|
for (let slot = 0; slot < layout.slots; slot++) {
|
|
46362
46382
|
out[slot] = scaled ? slot : (slot - layout.bodyFrom + 0.5) * layout.flankStep;
|
|
46363
46383
|
}
|
|
46384
|
+
if (!scaled) return { x: out, label: "Distance from the anchor (bp)" };
|
|
46364
46385
|
return {
|
|
46365
46386
|
x: out,
|
|
46366
|
-
label:
|
|
46387
|
+
label: "Position (upstream · body · downstream)",
|
|
46388
|
+
scaled: {
|
|
46389
|
+
from: -0.5,
|
|
46390
|
+
start: layout.bodyFrom - 0.5,
|
|
46391
|
+
end: layout.bodyTo - 0.5,
|
|
46392
|
+
to: layout.slots - 0.5,
|
|
46393
|
+
flankStep: layout.flankStep
|
|
46394
|
+
}
|
|
46367
46395
|
};
|
|
46368
46396
|
}
|
|
46369
46397
|
function featuresOf(set, rankBy, stranded) {
|
|
@@ -46524,6 +46552,8 @@ const runMetaplot = async (job) => {
|
|
|
46524
46552
|
label: "Metaplot",
|
|
46525
46553
|
series,
|
|
46526
46554
|
xLabel: axis.label,
|
|
46555
|
+
// A scaled region's column, spelled by where it is along the feature.
|
|
46556
|
+
...axis.scaled === void 0 ? {} : { xScaled: axis.scaled },
|
|
46527
46557
|
// A y axis still reading *Mean signal* over standardised rows would name a
|
|
46528
46558
|
// unit the numbers are no longer in — the one lie a relabelled axis is for.
|
|
46529
46559
|
yLabel: zscore ? "Signal (z-score, per track)" : "Mean signal",
|
|
@@ -46605,18 +46635,29 @@ function clipOf(values) {
|
|
|
46605
46635
|
return top > lo ? [lo, top] : null;
|
|
46606
46636
|
}
|
|
46607
46637
|
function heatmapTicks(layout) {
|
|
46608
|
-
const { x } = axisFor(layout);
|
|
46609
|
-
if (x.length === 0) return [];
|
|
46610
|
-
|
|
46611
|
-
|
|
46638
|
+
const { x, scaled } = axisFor(layout);
|
|
46639
|
+
if (x.length === 0) return { labels: [] };
|
|
46640
|
+
if (scaled !== void 0) {
|
|
46641
|
+
const marks = [scaled.start, scaled.end];
|
|
46642
|
+
if (scaled.start > scaled.from) marks.push(scaled.from);
|
|
46643
|
+
if (scaled.to > scaled.end) marks.push(scaled.to);
|
|
46644
|
+
marks.push((scaled.start + scaled.end) / 2);
|
|
46645
|
+
const span2 = scaled.to - scaled.from;
|
|
46646
|
+
return {
|
|
46647
|
+
labels: marks.map((mark) => scaledLabel(scaled, mark)),
|
|
46648
|
+
at: marks.map((mark) => (mark - scaled.from) / span2)
|
|
46649
|
+
};
|
|
46650
|
+
}
|
|
46612
46651
|
const step = layout.flankStep > 0 ? layout.flankStep : 1;
|
|
46613
46652
|
const lo = x[0] - step / 2;
|
|
46614
46653
|
const hi = x[x.length - 1] + step / 2;
|
|
46615
|
-
return
|
|
46616
|
-
|
|
46617
|
-
|
|
46618
|
-
|
|
46619
|
-
|
|
46654
|
+
return {
|
|
46655
|
+
labels: [0, 0.25, 0.5, 0.75, 1].map((fraction) => {
|
|
46656
|
+
const value = lo + fraction * (hi - lo);
|
|
46657
|
+
const kb = Math.abs(value) >= 1e4;
|
|
46658
|
+
return kb ? `${Number((value / 1e3).toFixed(1))} kb` : String(Math.round(value));
|
|
46659
|
+
})
|
|
46660
|
+
};
|
|
46620
46661
|
}
|
|
46621
46662
|
function addStrength(into, rows, count, slots) {
|
|
46622
46663
|
for (let row2 = 0; row2 < count; row2++) {
|
|
@@ -46651,6 +46692,7 @@ function heatmapOf(held2, order, index, layout, xLabel, run) {
|
|
|
46651
46692
|
values.set(rows.subarray(order[row2] * layout.slots, (order[row2] + 1) * layout.slots), row2 * layout.slots);
|
|
46652
46693
|
}
|
|
46653
46694
|
const clip = clipOf(values);
|
|
46695
|
+
const ticks = heatmapTicks(layout);
|
|
46654
46696
|
return {
|
|
46655
46697
|
kind: "matrix",
|
|
46656
46698
|
id: index === 0 ? "metaplot-heatmap" : `metaplot-heatmap-${index + 1}`,
|
|
@@ -46663,7 +46705,8 @@ function heatmapOf(held2, order, index, layout, xLabel, run) {
|
|
|
46663
46705
|
values,
|
|
46664
46706
|
xLabel,
|
|
46665
46707
|
yLabel: run.tracks === 1 ? `Features, strongest first (${count.toLocaleString()})` : `Features, strongest first across ${run.tracks} tracks (${count.toLocaleString()})`,
|
|
46666
|
-
xTicks:
|
|
46708
|
+
xTicks: ticks.labels,
|
|
46709
|
+
...ticks.at === void 0 ? {} : { xTickAt: ticks.at },
|
|
46667
46710
|
yTicks: [],
|
|
46668
46711
|
colormap: "viridis",
|
|
46669
46712
|
...clip === null ? {} : { range: clip },
|
|
@@ -50968,7 +51011,7 @@ class RemoteRangeSource {
|
|
|
50968
51011
|
if (head2 && !head2.ok) {
|
|
50969
51012
|
throw new ViewerError(
|
|
50970
51013
|
"bad-uri",
|
|
50971
|
-
options.credential === void 0 ? `${host} answered ${head2.status} ${head2.statusText} to a HEAD of ${url}; the viewer needs a publicly readable object, or a bucket
|
|
51014
|
+
options.credential === void 0 ? `${host} answered ${head2.status} ${head2.statusText} to a HEAD of ${url}; the viewer needs a publicly readable object, or a bucket connected with a key for it (connect a bucket…, on the landing page or in the Files column).` : `${host} answered ${head2.status} ${head2.statusText} to a signed HEAD of ${url}. The key reached the bucket and was rejected: check that the region on the bucket entry matches the bucket, that the key is allowed \`s3:GetObject\` on this prefix, and — for a temporary credential — that the session token has not expired.`,
|
|
50972
51015
|
{ url, host, status: head2.status, signed: options.credential !== void 0 }
|
|
50973
51016
|
);
|
|
50974
51017
|
}
|
|
@@ -51011,7 +51054,13 @@ class RemoteRangeSource {
|
|
|
51011
51054
|
// viewer reads in slices and where to host the file, twice, an inch
|
|
51012
51055
|
// apart. What the advice cannot know is which host, which URL and what
|
|
51013
51056
|
// came back instead of a 206, so that is what stays here.
|
|
51014
|
-
|
|
51057
|
+
//
|
|
51058
|
+
// An error status is not a host that ignores `Range`: it is the
|
|
51059
|
+
// address's own answer — no file, or not for this page — and the page
|
|
51060
|
+
// heads it as a refusal (`ErrorView`, `REFUSED_GUIDANCE`). It is where
|
|
51061
|
+
// a presigned link arrives once it has expired, since it skips the
|
|
51062
|
+
// `HEAD` above, so a signed address says so.
|
|
51063
|
+
probe.status >= 400 ? `${host} answered ${probe.status} ${probe.statusText} to a request for the first byte of ${url}` + (isSignedUrl(url) ? ": this is a presigned link, and a host refuses one once it has expired." : ".") : `${host} does not serve HTTP range requests: a “Range: bytes=0-0” request for ${url} returned ${probe.status}, not 206 Partial Content.`,
|
|
51015
51064
|
{ url, host, status: probe.status }
|
|
51016
51065
|
);
|
|
51017
51066
|
}
|
|
@@ -55734,6 +55783,9 @@ function refusalMessage(refusal, label) {
|
|
|
55734
55783
|
}
|
|
55735
55784
|
if (refusal.reason === "newer") {
|
|
55736
55785
|
const from = refusal.producer === void 0 ? "" : ` — ${refusal.producer}`;
|
|
55786
|
+
if (refusal.format === "store") {
|
|
55787
|
+
return `${label} is a store written for a newer version of the viewer${from}, in store format ${refusal.version}. This build reads store format ${refusal.reads ?? 1}. Update the viewer, or ask whoever publishes the store for a copy in that format.`;
|
|
55788
|
+
}
|
|
55737
55789
|
return `${label} was saved by a newer version of the viewer${from}, in workspace format ${refusal.version}. This build reads format ${CONFIG_VERSION}. Update the viewer, or ask for the session to be saved again from this one.`;
|
|
55738
55790
|
}
|
|
55739
55791
|
if (refusal.reason === "not-a-store") {
|
|
@@ -55917,6 +55969,7 @@ function parseWorkspaceFile(text) {
|
|
|
55917
55969
|
tabs
|
|
55918
55970
|
};
|
|
55919
55971
|
}
|
|
55972
|
+
const DOCS_URL = "https://doc.chromosomix.app/";
|
|
55920
55973
|
const APP = `${VERSION} cli`;
|
|
55921
55974
|
class UsageError extends Error {
|
|
55922
55975
|
}
|
|
@@ -57118,6 +57171,9 @@ and an indexed FASTA are read by range, as the app reads them, and nothing of
|
|
|
57118
57171
|
them is written to disk. What is read whole — a feature file, a HiC-Pro
|
|
57119
57172
|
matrix, a workspace, or any file whose host serves no range — is fetched into
|
|
57120
57173
|
$TMPDIR, with its progress on stderr, and removed when the command ends.
|
|
57174
|
+
|
|
57175
|
+
Every task, what it reads and writes, and how to read a result:
|
|
57176
|
+
${DOCS_URL}
|
|
57121
57177
|
`;
|
|
57122
57178
|
function versionText() {
|
|
57123
57179
|
const lines = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chromosomix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Genome browser for Hi-C and Micro-C contact maps, genome tracks and 3D models, and the command line that runs its analyses: insulation, compartments, loops, APA, P(s) and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"typecheck": "tsc --noEmit && tsc -p tsconfig.electron.json --noEmit",
|
|
54
54
|
"test": "vitest run",
|
|
55
55
|
"test:nofixtures": "vitest run --exclude '**/node_modules/**' --exclude 'test/budgets/requests.test.ts' --exclude 'test/unit/{cool,range,transpose,open,aggregate,detect,decode,matrix,pooling,bins-guard,intattr,genome-runs}.test.ts'",
|
|
56
|
+
"test:coverage": "sh -c 'vitest run --coverage \"$@\" && node scripts/coverage-summary.mjs' --",
|
|
56
57
|
"test:watch": "vitest",
|
|
57
58
|
"fixtures": "${METACOOLER_PYTHON:-python3} scripts/make_fixtures.py && ${METACOOLER_PYTHON:-python3} scripts/make_golden.py && ${METACOOLER_PYTHON:-python3} scripts/make_scool_fixtures.py && ${METACOOLER_PYTHON:-python3} scripts/make_hicpro_fixtures.py",
|
|
58
59
|
"fixtures:scool": "${METACOOLER_PYTHON:-python3} scripts/make_scool_fixtures.py",
|
|
@@ -78,6 +79,9 @@
|
|
|
78
79
|
"preversion": "npm run typecheck && npm run test:nofixtures",
|
|
79
80
|
"version": "node scripts/changelog-check.mjs",
|
|
80
81
|
"build:cli": "npm run typecheck && vite build --config vite.cli.config.ts",
|
|
82
|
+
"docs:data": "node scripts/docs-data.mjs",
|
|
83
|
+
"docs:dev": "npm --prefix documentation run dev",
|
|
84
|
+
"docs:build": "npm --prefix documentation run build",
|
|
81
85
|
"cli": "node dist-cli/chromosomix.mjs",
|
|
82
86
|
"build:standalone": "npm run typecheck && vite build --config vite.standalone.config.ts && node scripts/check-standalone-build.mjs",
|
|
83
87
|
"build:package": "npm run build:cli && vite build --config vite.package.config.ts && node scripts/check-package-build.mjs",
|
|
@@ -93,6 +97,7 @@
|
|
|
93
97
|
"@gmod/bam": "^9.0.1",
|
|
94
98
|
"@types/node": "^24.0.0",
|
|
95
99
|
"@types/three": "0.186.0",
|
|
100
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
96
101
|
"echarts": "^6.1.0",
|
|
97
102
|
"electron": "43.7.9",
|
|
98
103
|
"electron-builder": "26.15.3",
|
|
@@ -104,7 +109,7 @@
|
|
|
104
109
|
"three": "0.186.0",
|
|
105
110
|
"typescript": "^5.7.0",
|
|
106
111
|
"vite": "^6.0.0",
|
|
107
|
-
"vitest": "^3.
|
|
112
|
+
"vitest": "^3.2.7"
|
|
108
113
|
},
|
|
109
114
|
"allowScripts": {
|
|
110
115
|
"esbuild@0.25.12": true
|
|
@@ -115,6 +120,7 @@
|
|
|
115
120
|
"@types/three": "The types for the pin above, at the same version, and for no other reason.",
|
|
116
121
|
"g3djs": "A devDependency, and the oracle `test/unit/g3d-binary-oracle.test.ts` reads the fixtures with — never a runtime dependency, on `hic-straw`'s argument exactly: every read in this app goes through a source that counts its requests, caches its chunks and signs them where a bucket needs it, and a parser that fetches for itself sits outside all three. The binary `.g3d` reader is written here (`src/annotations/g3dBinary.ts`); what a second implementation buys is the one thing a round trip against our own writer cannot, which is a reading of the container that this repository did not make. Installed with `--ignore-scripts`, because a transitive dependency of it still calls `node-waf`, which has not existed for a decade; nothing that runs in the oracle needs the script.",
|
|
117
122
|
"test:nofixtures": "Everything that does not need test/fixtures/, which are generated by `npm run fixtures` and need a Python interpreter with metacooler installed. This is what a fresh clone and a CI runner without metacooler can verify; `npm test` is the full suite and is what to run before a release. Of the request budgets (SPECS §12) only `requests.test.ts` is left out, because it opens the metacool fixtures: `alignments.test.ts` builds its BAM in memory and `analysis.test.ts` reads committed demo data, and excluding the whole directory once hid a red budget from CI for weeks.",
|
|
123
|
+
"test:coverage": "The full suite with V8 coverage over the whole app — every file under `src/` and `electron/`, a file no test loads counting at zero — then `scripts/coverage-summary.mjs`, which prints it one row per area of the source. The reports land in `coverage/`, which is not committed: `coverage/index.html` is the file-by-file view. Arguments go to vitest, so `npm run test:coverage -- test/unit/cool.test.ts` measures one suite, and `COVERAGE_DIR` moves the reports — for a checkout in a folder a sync client watches, which renames V8's temporary files out from under it (vitest.config.ts). Needs the fixtures `npm test` does; `npm run test:nofixtures -- --coverage` is the half a fresh clone can measure, and is what the check job of .github/workflows/test.yml reports on every push, beside the full suite's figure from the goldens job where that runs.",
|
|
118
124
|
"overrides": "This host runs glibc 2.28 (RHEL 8); rollup's native binding requires GLIBC_2.29 and fails to dlopen. @rollup/wasm-node is rollup's own drop-in for unsupported platforms. Slower to build, identical output. Remove this override on a host with glibc >= 2.29.",
|
|
119
125
|
"version": "The version this bundle reports. `npm version <patch|minor|major>` is the whole release: it runs the checks, refuses a version CHANGELOG.md does not mention, commits, and tags. Pushing the tag is what publishes, since GitHub Pages builds every push to main.",
|
|
120
126
|
"files": "What a tarball contains, and the whole of what stands between a publish and 250 MB of yeast Hi-C. `demo/` is data, `test/fixtures/` is generated, `src/` is the thing `dist/` is built from — and npm's default is *everything not gitignored*, so the failure this prevents is one command with no flag on it. Two directories go: `dist/`, the viewer, built by `build:package` for a relative base so it runs from whatever path it is unpacked into; and `dist-cli/`, so the `bin` below resolves to a file that is actually in the package rather than to a broken symlink on somebody's PATH. This replaces `private: true`, whose comment argued that an application is not a library and that there is nothing here a registry would want. The first half is still true and the second was about the wrong thing: what a registry is wanted for here is not dependency resolution, it is *hosting nobody has to trust* — an immutable, checksummed, mirrored copy of one version of the viewer that a page can frame or a site can vendor without depending on this project's own domain staying up. A distribution channel beside GitHub Pages, rather than a library.",
|