@biolibs/bionet-tools 0.1.6 → 0.1.9
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/assembly-bench.d.ts +62 -0
- package/dist/assembly-bench.d.ts.map +1 -0
- package/dist/assembly-bench.js +114 -0
- package/dist/assembly-bench.js.map +1 -0
- package/dist/assembly-design.d.ts +119 -0
- package/dist/assembly-design.d.ts.map +1 -0
- package/dist/assembly-design.js +157 -0
- package/dist/assembly-design.js.map +1 -0
- package/dist/codon-bench.d.ts +51 -0
- package/dist/codon-bench.d.ts.map +1 -0
- package/dist/codon-bench.js +93 -0
- package/dist/codon-bench.js.map +1 -0
- package/dist/codons.d.ts +126 -0
- package/dist/codons.d.ts.map +1 -0
- package/dist/codons.js +287 -0
- package/dist/codons.js.map +1 -0
- package/dist/digest-bench.d.ts.map +1 -1
- package/dist/digest-bench.js +11 -2
- package/dist/digest-bench.js.map +1 -1
- package/dist/digest.d.ts +14 -0
- package/dist/digest.d.ts.map +1 -1
- package/dist/digest.js +18 -0
- package/dist/digest.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/ligate-bench.d.ts.map +1 -1
- package/dist/ligate-bench.js +10 -2
- package/dist/ligate-bench.js.map +1 -1
- package/dist/pcr-bench.d.ts.map +1 -1
- package/dist/pcr-bench.js +13 -2
- package/dist/pcr-bench.js.map +1 -1
- package/dist/pcr-tool.js +1 -1
- package/dist/pcr-tool.js.map +1 -1
- package/dist/plans.d.ts +66 -0
- package/dist/plans.d.ts.map +1 -0
- package/dist/plans.js +106 -0
- package/dist/plans.js.map +1 -0
- package/dist/primer-bench.js +1 -1
- package/dist/primer-bench.js.map +1 -1
- package/dist/protein.d.ts +106 -0
- package/dist/protein.d.ts.map +1 -0
- package/dist/protein.js +158 -0
- package/dist/protein.js.map +1 -0
- package/dist/run.d.ts +12 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +19 -4
- package/dist/run.js.map +1 -1
- package/dist/sequences-tool.js +1 -1
- package/dist/sequences-tool.js.map +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +7 -3
- package/dist/tools.js.map +1 -1
- package/dist/verify-bench.d.ts +48 -0
- package/dist/verify-bench.d.ts.map +1 -0
- package/dist/verify-bench.js +77 -0
- package/dist/verify-bench.js.map +1 -0
- package/dist/verify.d.ts +138 -0
- package/dist/verify.d.ts.map +1 -0
- package/dist/verify.js +263 -0
- package/dist/verify.js.map +1 -0
- package/package.json +5 -3
- package/src/assembly-bench.tsx +232 -0
- package/src/assembly-design.ts +219 -0
- package/src/codon-bench.tsx +189 -0
- package/src/codons.ts +339 -0
- package/src/digest-bench.tsx +10 -1
- package/src/digest.ts +19 -0
- package/src/index.ts +16 -0
- package/src/ligate-bench.tsx +9 -1
- package/src/pcr-bench.tsx +11 -1
- package/src/pcr-tool.tsx +1 -1
- package/src/plans.tsx +137 -0
- package/src/primer-bench.tsx +1 -1
- package/src/protein.ts +204 -0
- package/src/run.ts +20 -4
- package/src/sequences-tool.tsx +1 -1
- package/src/tools.tsx +7 -3
- package/src/verify-bench.tsx +161 -0
- package/src/verify.ts +310 -0
- package/tools.css +18 -0
package/dist/sequences-tool.js
CHANGED
|
@@ -56,6 +56,6 @@ export function SequencesTool({ part: first }) {
|
|
|
56
56
|
setSaid(lines);
|
|
57
57
|
setBusy(false);
|
|
58
58
|
};
|
|
59
|
-
return (_jsxs("div", { className: "pcr sequences", children: [_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Bring sequences in" }), _jsx("p", { className: "dim small", children: "Choose SnapGene (.dna), GenBank (.gb), EMBL or FASTA files. Each becomes a part in the freezer, with what the file marks on it. Add a tube of it on the Freezer tab when there is one." }), _jsx("input", { type: "file", multiple: true, disabled: busy, accept: ".dna,.gb,.gbk,.gbff,.genbank,.embl,.fa,.fasta,.fna", "aria-label": "Sequence files", onChange: (event) => { void bring(event.target.files); event.target.value = ""; } }), said.length > 0 && _jsx("ul", { className: "plainlist small", role: "status", children: said.map((line) => _jsx("li", { children: line }, line)) })] }), part === undefined ? _jsx("p", { className: "empty", children: "The lab has no parts yet." }) : (_jsxs("section", { className: "card", children: [_jsxs("div", { className: "toolhead", children: [_jsxs("label", { children: ["Part", _jsx("select", { value: part.checksum, onChange: (event) => setChosen(event.target.value), "aria-label": "Part", children: lab.parts.map((one) => _jsxs("option", { value: one.checksum, children: [one.name, " \u00B7 ", count(one.length), " bp", one.circular ? " · circular" : ""] }, one.checksum)) })] }), endsWords(part) !== null && _jsxs("span", { className: "small", children: ["ends ", _jsx("code", { children: endsWords(part) })] }), _jsx("span", { className: "dim small", children: tubes === 0 ? "no tubes of it" : `${tubes} ${tubes === 1 ? "tube" : "tubes"} of it` })] }), _jsxs("div", { className: "mapped", children: [_jsx(SequenceMap, { name: part.name, length: part.length, circular: part.circular, features: part.features, marks: shown.flatMap((one) => one.positions.map((at) => ({ at, label: one.name }))) }), _jsxs("div", { children: [_jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Feature" }), _jsx("th", { children: "Type" }), _jsx("th", { children: "Where" }), _jsx("th", { children: "Strand" })] }) }), _jsxs("tbody", { children: [part.features.map((feature, at) => (_jsxs("tr", { children: [_jsxs("td", { children: [_jsx("span", { className: `swatch tone-${featureTone(feature.type)}` }), feature.label] }), _jsx("td", { className: "dim", children: feature.type }), _jsx("td", { children: _jsx("code", { children: feature.parts.map((piece) => `${count(piece.start + 1)}..${count(piece.end)}`).join(", ") }) }), _jsx("td", { className: "dim", children: feature.strand === 1 ? "forward" : feature.strand === -1 ? "reverse" : "—" })] }, at))), part.features.length === 0 && _jsx("tr", { children: _jsx("td", { colSpan: 4, className: "dim", children: "Nothing is marked on this part. A part brought in from a SnapGene or GenBank file keeps what the file marks." }) })] })] }), _jsxs("p", { className: "small", children: [_jsx("strong", { children: "Cuts once:" }), " ", cuts.filter((one) => one.positions.length === 1).map((one) => one.name).join(", ") || "none of the usual enzymes", cuts.some((one) => one.positions.length === 2) && _jsxs(_Fragment, { children: [" \u00B7 ", _jsx("strong", { children: "twice:" }), " ", cuts.filter((one) => one.positions.length === 2).map((one) => one.name).join(", ")] })] }), _jsxs("label", { className: "check small", children: [_jsx("input", { type: "checkbox", checked: !once, onChange: (event) => setOnce(!event.target.checked) }), " Mark the ones that cut twice as well"] })] })] })] }))] }));
|
|
59
|
+
return (_jsxs("div", { className: "pcr sequences", children: [_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Bring sequences in" }), _jsx("p", { className: "dim small", children: "Choose SnapGene (.dna), GenBank (.gb), EMBL or FASTA files. Each becomes a part in the freezer, with what the file marks on it. Add a tube of it on the Freezer tab when there is one." }), _jsx("input", { type: "file", multiple: true, disabled: busy, accept: ".dna,.gb,.gbk,.gbff,.genbank,.embl,.fa,.fasta,.fna", "aria-label": "Sequence files", onChange: (event) => { void bring(event.target.files); event.target.value = ""; } }), said.length > 0 && _jsx("ul", { className: "plainlist small", role: "status", children: said.map((line) => _jsx("li", { children: line }, line)) })] }), part === undefined ? _jsx("p", { className: "empty", children: "The lab has no parts yet." }) : (_jsxs("section", { className: "card", children: [_jsxs("div", { className: "toolhead", children: [_jsxs("label", { children: ["Part", _jsx("select", { value: part.checksum, onChange: (event) => setChosen(event.target.value), "aria-label": "Part", children: lab.parts.map((one) => _jsxs("option", { value: one.checksum, children: [one.name, " \u00B7 ", count(one.length), " ", one.kind === "protein" ? "aa" : "bp", one.circular ? " · circular" : ""] }, one.checksum)) })] }), endsWords(part) !== null && _jsxs("span", { className: "small", children: ["ends ", _jsx("code", { children: endsWords(part) })] }), _jsx("span", { className: "dim small", children: tubes === 0 ? "no tubes of it" : `${tubes} ${tubes === 1 ? "tube" : "tubes"} of it` })] }), _jsxs("div", { className: "mapped", children: [_jsx(SequenceMap, { name: part.name, length: part.length, circular: part.circular, features: part.features, marks: shown.flatMap((one) => one.positions.map((at) => ({ at, label: one.name }))) }), _jsxs("div", { children: [_jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Feature" }), _jsx("th", { children: "Type" }), _jsx("th", { children: "Where" }), _jsx("th", { children: "Strand" })] }) }), _jsxs("tbody", { children: [part.features.map((feature, at) => (_jsxs("tr", { children: [_jsxs("td", { children: [_jsx("span", { className: `swatch tone-${featureTone(feature.type)}` }), feature.label] }), _jsx("td", { className: "dim", children: feature.type }), _jsx("td", { children: _jsx("code", { children: feature.parts.map((piece) => `${count(piece.start + 1)}..${count(piece.end)}`).join(", ") }) }), _jsx("td", { className: "dim", children: feature.strand === 1 ? "forward" : feature.strand === -1 ? "reverse" : "—" })] }, at))), part.features.length === 0 && _jsx("tr", { children: _jsx("td", { colSpan: 4, className: "dim", children: "Nothing is marked on this part. A part brought in from a SnapGene or GenBank file keeps what the file marks." }) })] })] }), _jsxs("p", { className: "small", children: [_jsx("strong", { children: "Cuts once:" }), " ", cuts.filter((one) => one.positions.length === 1).map((one) => one.name).join(", ") || "none of the usual enzymes", cuts.some((one) => one.positions.length === 2) && _jsxs(_Fragment, { children: [" \u00B7 ", _jsx("strong", { children: "twice:" }), " ", cuts.filter((one) => one.positions.length === 2).map((one) => one.name).join(", ")] })] }), _jsxs("label", { className: "check small", children: [_jsx("input", { type: "checkbox", checked: !once, onChange: (event) => setOnce(!event.target.checked) }), " Mark the ones that cut twice as well"] })] })] })] }))] }));
|
|
60
60
|
}
|
|
61
61
|
//# sourceMappingURL=sequences-tool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequences-tool.js","sourceRoot":"","sources":["../src/sequences-tool.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,uBAAuB,C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,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,0CAAK,sCAAuB,OAAE,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IACrK,EACJ,iBAAO,SAAS,EAAC,aAAa,aAAC,gBAAO,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAI,6CAA6C,IACtK,IACF,IACE,CACX,IACG,CACP,CAAC;AACJ,CAAC"}
|
package/dist/tools.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
3
|
import { type ToolName } from "./run.js";
|
|
4
4
|
/** The tools used at a desk and not at an instrument: the lab's sequences, and designing primers. */
|
|
5
|
-
export type DeskTool = "sequences" | "primers";
|
|
5
|
+
export type DeskTool = "sequences" | "primers" | "codons" | "assembly" | "verify";
|
|
6
6
|
/** What each tool is called. */
|
|
7
7
|
export declare const TOOL_NAMES: Readonly<Record<ToolName, string>>;
|
|
8
8
|
/**
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.tsx"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.tsx"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjD,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAQjE,qGAAqG;AACrG,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAElF,gCAAgC;AAChC,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAkE,CAAC;AAS7H;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,sCAiBvF;AAED;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,KAAa,EAAE,KAAU,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,KAAK,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAA;CAAE,sCAkB5M"}
|
package/dist/tools.js
CHANGED
|
@@ -7,6 +7,9 @@ import { DigestTool } from "./digest-tool.js";
|
|
|
7
7
|
import { PcrTool } from "./pcr-tool.js";
|
|
8
8
|
import { instrumentFor, toolFor } from "./run.js";
|
|
9
9
|
import { LigationTool } from "./ligate-bench.js";
|
|
10
|
+
import { AssemblyTool } from "./assembly-bench.js";
|
|
11
|
+
import { CodonTool } from "./codon-bench.js";
|
|
12
|
+
import { VerifyTool } from "./verify-bench.js";
|
|
10
13
|
import { PrimerTool } from "./primer-bench.js";
|
|
11
14
|
import { SequencesTool } from "./sequences-tool.js";
|
|
12
15
|
/** What each tool is called. */
|
|
@@ -48,8 +51,9 @@ export function Tools({ tool: first = "pcr", views = {} }) {
|
|
|
48
51
|
if (lab === null || lab === undefined)
|
|
49
52
|
return null;
|
|
50
53
|
const shown = views[tool];
|
|
51
|
-
const names = [["sequences", "Sequences"], ["primers", "Primers"], ...Object.keys(TOOL_NAMES).map((one) => [one, TOOL_NAMES[one]])];
|
|
52
|
-
return (_jsxs("div", { className: "tools", children: [_jsx("div", { className: "row tight pick", role: "tablist", "aria-label": "Tools", children: names.map(([one, name]) => (_jsx("button", { type: "button", role: "tab", "aria-selected": one === tool, className: one === tool ? "" : "quiet", onClick: () => setTool(one), children: name }, one))) }), (typeof shown === "function" ? shown(setTool) : shown) ?? (tool === "sequences" ? _jsx(SequencesTool, {}) : tool === "
|
|
53
|
-
: _jsx(
|
|
54
|
+
const names = [["sequences", "Sequences"], ["primers", "Primers"], ["codons", "Codons"], ["assembly", "Assembly"], ["verify", "Check"], ...Object.keys(TOOL_NAMES).map((one) => [one, TOOL_NAMES[one]])];
|
|
55
|
+
return (_jsxs("div", { className: "tools", children: [_jsx("div", { className: "row tight pick", role: "tablist", "aria-label": "Tools", children: names.map(([one, name]) => (_jsx("button", { type: "button", role: "tab", "aria-selected": one === tool, className: one === tool ? "" : "quiet", onClick: () => setTool(one), children: name }, one))) }), (typeof shown === "function" ? shown(setTool) : shown) ?? (tool === "sequences" ? _jsx(SequencesTool, {}) : tool === "assembly" ? _jsx(AssemblyTool, {}) : tool === "codons" ? _jsx(CodonTool, {}) : tool === "verify" ? _jsx(VerifyTool, {})
|
|
56
|
+
: tool === "primers" ? _jsx(PrimerTool, { onPcr: () => setTool("pcr") })
|
|
57
|
+
: _jsx(Tool, { tool: tool, instrument: instrumentFor(lab, tool) }, tool))] }));
|
|
54
58
|
}
|
|
55
59
|
//# sourceMappingURL=tools.js.map
|
package/dist/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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AO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,KAAC,aAAa,KAAG,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,KAAC,YAAY,KAAG,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,SAAS,KAAG,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,UAAU,KAAG;gBACpN,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI;oBAClE,CAAC,CAAC,KAAC,IAAI,IAAY,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,IAAtD,IAAI,CAAsD,CAAC,IACtE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checking a construct against the design, at a desk.
|
|
3
|
+
*
|
|
4
|
+
* Every other tool here proposes. This one confirms, and the thing it has to be careful about is
|
|
5
|
+
* the opposite of theirs: not to say more than it has checked. A read covers the stretch its primer
|
|
6
|
+
* reached and no more, so what it covers is said before what it found, and the rest is called
|
|
7
|
+
* unchecked rather than passed.
|
|
8
|
+
*/
|
|
9
|
+
import { type ReactNode } from "react";
|
|
10
|
+
/** What a host is handed to draw beside the panel. */
|
|
11
|
+
export interface VerifyDesk {
|
|
12
|
+
/** The tube of the design, to look at, if the lab has one that has been put somewhere. */
|
|
13
|
+
focus: {
|
|
14
|
+
place: string;
|
|
15
|
+
item: string;
|
|
16
|
+
} | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Checking a read against one of the lab's parts.
|
|
20
|
+
*
|
|
21
|
+
* @param options - `start` says what to open on, for a tour or a link.
|
|
22
|
+
* @returns `panel`, the tool itself, and `desk`, what a scene beside it should look at.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { useVerifyBench } from "@biolibs/bionet-tools";
|
|
27
|
+
*
|
|
28
|
+
* const bench = useVerifyBench();
|
|
29
|
+
* <LabView lab={lab} wide beside={bench.panel} />
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function useVerifyBench({ start }?: {
|
|
33
|
+
/** What to show: the design and the read. Followed whenever it changes. */
|
|
34
|
+
start?: {
|
|
35
|
+
design?: string;
|
|
36
|
+
read?: string;
|
|
37
|
+
};
|
|
38
|
+
}): {
|
|
39
|
+
panel: ReactNode;
|
|
40
|
+
desk: VerifyDesk;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* The checking tool on its own, for a lab that has not drawn its room.
|
|
44
|
+
*
|
|
45
|
+
* @param props - `start` says what to open on.
|
|
46
|
+
*/
|
|
47
|
+
export declare function VerifyTool(props: Parameters<typeof useVerifyBench>[0]): import("react").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=verify-bench.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify-bench.d.ts","sourceRoot":"","sources":["../src/verify-bench.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AASrE,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACzB,0FAA0F;IAC1F,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,GAAE;IACxC,2EAA2E;IAC3E,KAAK,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CA6G9C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,+BAErE"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Checking a construct against the design, at a desk.
|
|
5
|
+
*
|
|
6
|
+
* Every other tool here proposes. This one confirms, and the thing it has to be careful about is
|
|
7
|
+
* the opposite of theirs: not to say more than it has checked. A read covers the stretch its primer
|
|
8
|
+
* reached and no more, so what it covers is said before what it found, and the rest is called
|
|
9
|
+
* unchecked rather than passed.
|
|
10
|
+
*/
|
|
11
|
+
import { useEffect, useMemo, useState } from "react";
|
|
12
|
+
import { useAct, useLab } from "@biolibs/bionet-react";
|
|
13
|
+
import { Glossed } from "@biolibs/glossary-react";
|
|
14
|
+
import { SequenceMap } from "./map.js";
|
|
15
|
+
import { checkRead, saysDifference, verifyRun, verifyWorking } from "./verify.js";
|
|
16
|
+
import { ShowWorking } from "./working.js";
|
|
17
|
+
const count = (value) => value.toLocaleString("en-US");
|
|
18
|
+
/**
|
|
19
|
+
* Checking a read against one of the lab's parts.
|
|
20
|
+
*
|
|
21
|
+
* @param options - `start` says what to open on, for a tour or a link.
|
|
22
|
+
* @returns `panel`, the tool itself, and `desk`, what a scene beside it should look at.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { useVerifyBench } from "@biolibs/bionet-tools";
|
|
27
|
+
*
|
|
28
|
+
* const bench = useVerifyBench();
|
|
29
|
+
* <LabView lab={lab} wide beside={bench.panel} />
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export function useVerifyBench({ start } = {}) {
|
|
33
|
+
const lab = useLab()?.lab;
|
|
34
|
+
const act = useAct();
|
|
35
|
+
const [design, setDesign] = useState(start?.design ?? "");
|
|
36
|
+
const [read, setRead] = useState(start?.read ?? "");
|
|
37
|
+
const [primer, setPrimer] = useState("");
|
|
38
|
+
const [busy, setBusy] = useState(false);
|
|
39
|
+
const [said, setSaid] = useState(null);
|
|
40
|
+
const asked = JSON.stringify(start ?? null);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (start === undefined)
|
|
43
|
+
return;
|
|
44
|
+
if (start.design !== undefined)
|
|
45
|
+
setDesign(start.design);
|
|
46
|
+
if (start.read !== undefined)
|
|
47
|
+
setRead(start.read);
|
|
48
|
+
}, [asked]);
|
|
49
|
+
// A read is of DNA; a protein is not something to compare bases against.
|
|
50
|
+
const dna = useMemo(() => (lab?.parts ?? []).filter((one) => one.kind !== "protein"), [lab?.parts]);
|
|
51
|
+
const part = dna.find((one) => one.checksum === design);
|
|
52
|
+
const checked = useMemo(() => (part === undefined || read.trim() === "" ? null : checkRead(part, read)), [part, read]);
|
|
53
|
+
const working = useMemo(() => (checked === null || checked.problem !== null || part === undefined ? [] : verifyWorking(checked, part)), [checked, part]);
|
|
54
|
+
const tubes = useMemo(() => (lab?.items ?? []).filter((one) => one.part === design && !one.retired), [lab?.items, design]);
|
|
55
|
+
const held = tubes.find((one) => one.where !== null);
|
|
56
|
+
const desk = { focus: held?.where == null ? null : { place: held.where.place, item: held.item } };
|
|
57
|
+
const record = async () => {
|
|
58
|
+
const tube = tubes[0];
|
|
59
|
+
if (checked === null || checked.problem !== null || tube === undefined)
|
|
60
|
+
return;
|
|
61
|
+
setBusy(true);
|
|
62
|
+
const answer = await act("recordRun", verifyRun(checked, { tube: tube.item, primer }));
|
|
63
|
+
setBusy(false);
|
|
64
|
+
setSaid(answer.ok ? `Recorded: the check is in the lab's history, and ${checked.matches ? "it matched" : "it did not match"}.` : answer.error);
|
|
65
|
+
};
|
|
66
|
+
const panel = lab === null || lab === undefined ? null : (_jsxs("div", { className: "bionet verify", children: [_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Check a construct" }), _jsx("p", { className: "small", children: _jsx(Glossed, { text: "Sequencing reads the bases of a piece of DNA, one read covering a few hundred bases from where its primer sat." }) }), _jsx("p", { className: "dim small", children: "Paste what came back from the facility and it is compared with the design, base by base. Either strand will do. What the read does not reach is not checked, and is said so rather than passed." }), dna.length === 0 ? _jsx("p", { className: "empty", children: "The lab has no DNA to check against." }) : (_jsxs("fieldset", { disabled: busy, className: "stack", children: [_jsxs("label", { children: ["It was supposed to be", _jsxs("select", { value: design, onChange: (event) => { setDesign(event.target.value); setSaid(null); }, "aria-label": "The design", children: [_jsx("option", { value: "", children: "Choose a part\u2026" }), dna.map((one) => _jsxs("option", { value: one.checksum, children: [one.name, " \u00B7 ", count(one.length), " bp"] }, one.checksum))] })] }), _jsxs("label", { children: ["The read", _jsx("textarea", { value: read, onChange: (event) => { setRead(event.target.value); setSaid(null); }, rows: 5, spellCheck: false, placeholder: "Paste the bases that came back", "aria-label": "The read" })] }), _jsxs("label", { children: ["Read from which primer", _jsx("input", { value: primer, onChange: (event) => setPrimer(event.target.value), maxLength: 200, placeholder: "optional", "aria-label": "The primer it was read from" })] })] }))] }), checked !== null && checked.problem !== null && _jsx("p", { className: "trouble", role: "status", children: checked.problem }), checked !== null && checked.problem === null && part !== undefined && (_jsxs(_Fragment, { children: [_jsxs("section", { className: "card", children: [_jsx("h2", { children: checked.matches ? "It is the design" : "It is not the design" }), _jsx("p", { className: "voice", children: "What was read" }), checked.covers === null ? _jsx("p", { className: "trouble small", children: "The read does not line up against this part anywhere. It may be a read of something else." }) : (_jsxs(_Fragment, { children: [_jsxs("p", { className: "small", children: ["Bases ", count(checked.covers.from), "\u2013", count(checked.covers.to), " of ", count(part.length), ", which is ", Math.round(checked.covered * 100), "% of it.", checked.reversed && _jsx(_Fragment, { children: " The read was turned round to line up, which is only which primer it came off." })] }), _jsx(SequenceMap, { name: part.name, length: part.length, circular: part.circular, features: part.features, spans: [{ start: checked.covers.from - 1, end: checked.covers.to, label: "read", strand: 0 }], marks: checked.differences.slice(0, 40).map((one) => ({ at: one.at - 1, label: one.kind === "substitution" ? `${one.was}→${one.now}` : one.kind })) })] })), _jsx("p", { className: "voice", children: "What was found" }), checked.matches ? _jsx("p", { className: "small good", children: "Every base the read covers is the base the design has." }) : (_jsxs("p", { className: checked.changesProtein ? "small attention" : "small", children: [count(checked.differences.length), " ", checked.differences.length === 1 ? "difference" : "differences", checked.changesProtein ? ", and at least one changes a protein." : ", none of which changes a protein."] })), checked.differences.length > 0 && (_jsx("ul", { className: "checks", children: checked.differences.slice(0, 15).map((one) => (_jsx("li", { className: one.protein !== null && one.protein.kind !== "silent" ? "stop" : "look", children: saysDifference(one) }, `${one.at} ${one.kind}`))) })), checked.differences.length > 15 && _jsxs("p", { className: "dim small", children: ["and ", count(checked.differences.length - 15), " more."] }), checked.warnings.length > 0 && _jsx("ul", { className: "checks", children: checked.warnings.map((one) => _jsx("li", { className: "look", children: one }, one)) }), tubes.length > 0 && (_jsxs("fieldset", { disabled: busy, className: "row", children: [_jsx("button", { type: "button", onClick: () => void record(), children: "Record the check" }), _jsxs("span", { className: "dim small", children: ["A run against ", part.name, ", using a little of its tube."] })] })), said !== null && _jsx("p", { className: "small", role: "status", children: said })] }), _jsxs("section", { className: "card", children: [_jsx("h2", { children: "The working" }), working.map((one) => _jsx(ShowWorking, { working: one }, one.of))] })] }))] }));
|
|
67
|
+
return { panel, desk };
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The checking tool on its own, for a lab that has not drawn its room.
|
|
71
|
+
*
|
|
72
|
+
* @param props - `start` says what to open on.
|
|
73
|
+
*/
|
|
74
|
+
export function VerifyTool(props) {
|
|
75
|
+
return _jsx(_Fragment, { children: useVerifyBench(props).panel });
|
|
76
|
+
}
|
|
77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,CAAC,IACzD,IACT,CACJ,IACG,CACP,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAA2C;IACpE,OAAO,4BAAG,cAAc,CAAC,KAAK,CAAC,CAAC,KAAK,GAAI,CAAC;AAC5C,CAAC"}
|
package/dist/verify.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { PartFeature } from "@biolibs/bionet";
|
|
2
|
+
import type { Working } from "./pcr-working.js";
|
|
3
|
+
/** What kind of difference it is. */
|
|
4
|
+
export type DifferenceKind = "substitution" | "insertion" | "deletion";
|
|
5
|
+
/** What a difference does to a protein. */
|
|
6
|
+
export type ProteinEffect =
|
|
7
|
+
/** The amino acid is unchanged. */
|
|
8
|
+
{
|
|
9
|
+
kind: "silent";
|
|
10
|
+
codon: number;
|
|
11
|
+
aminoAcid: string;
|
|
12
|
+
}
|
|
13
|
+
/** One amino acid becomes another. */
|
|
14
|
+
| {
|
|
15
|
+
kind: "missense";
|
|
16
|
+
codon: number;
|
|
17
|
+
from: string;
|
|
18
|
+
to: string;
|
|
19
|
+
}
|
|
20
|
+
/** It makes a stop codon, so everything after it is lost. */
|
|
21
|
+
| {
|
|
22
|
+
kind: "nonsense";
|
|
23
|
+
codon: number;
|
|
24
|
+
from: string;
|
|
25
|
+
}
|
|
26
|
+
/** Bases are gained or lost in a multiple of three: amino acids come or go, the rest reads on. */
|
|
27
|
+
| {
|
|
28
|
+
kind: "in frame";
|
|
29
|
+
codon: number;
|
|
30
|
+
by: number;
|
|
31
|
+
}
|
|
32
|
+
/** Bases are gained or lost out of step, so everything after is read wrong. */
|
|
33
|
+
| {
|
|
34
|
+
kind: "frameshift";
|
|
35
|
+
codon: number;
|
|
36
|
+
by: number;
|
|
37
|
+
}
|
|
38
|
+
/** It falls in a coding sequence this does not work out, such as one in several pieces. */
|
|
39
|
+
| {
|
|
40
|
+
kind: "not worked out";
|
|
41
|
+
codon: number;
|
|
42
|
+
why: string;
|
|
43
|
+
};
|
|
44
|
+
/** One place the read differs from the design. */
|
|
45
|
+
export interface Difference {
|
|
46
|
+
/** Where on the design, counting from 1. For an insertion, the base it comes after. */
|
|
47
|
+
at: number;
|
|
48
|
+
kind: DifferenceKind;
|
|
49
|
+
/** What the design has there. Empty for an insertion. */
|
|
50
|
+
was: string;
|
|
51
|
+
/** What the read has there. Empty for a deletion. */
|
|
52
|
+
now: string;
|
|
53
|
+
/** What is marked on the design at that place. */
|
|
54
|
+
inside: {
|
|
55
|
+
label: string;
|
|
56
|
+
type: string;
|
|
57
|
+
}[];
|
|
58
|
+
/** What it does to the protein, for a difference in a coding sequence. */
|
|
59
|
+
protein: ProteinEffect | null;
|
|
60
|
+
}
|
|
61
|
+
/** What came of checking a read against a design. */
|
|
62
|
+
export interface Verification {
|
|
63
|
+
/** Whether the read had to be turned round to line up, which is not a fault. */
|
|
64
|
+
reversed: boolean;
|
|
65
|
+
/** The stretch of the design the read covers, counting from 1, or `null` if it lines up nowhere. */
|
|
66
|
+
covers: {
|
|
67
|
+
from: number;
|
|
68
|
+
to: number;
|
|
69
|
+
bases: number;
|
|
70
|
+
} | null;
|
|
71
|
+
/** How much of the design that stretch is, from 0 to 1. */
|
|
72
|
+
covered: number;
|
|
73
|
+
/** How much of the covered stretch matches, from 0 to 1. */
|
|
74
|
+
identity: number;
|
|
75
|
+
/** Every place they differ, in order along the design. */
|
|
76
|
+
differences: Difference[];
|
|
77
|
+
/** Whether the read is the design over everything it covers. */
|
|
78
|
+
matches: boolean;
|
|
79
|
+
/** Whether anything found would change a protein. */
|
|
80
|
+
changesProtein: boolean;
|
|
81
|
+
/** Anything a careful person would look at. */
|
|
82
|
+
warnings: string[];
|
|
83
|
+
/** Why it could not be checked, or `null`. */
|
|
84
|
+
problem: string | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check a sequencing read against the design it was supposed to be.
|
|
88
|
+
*
|
|
89
|
+
* @param design - The construct as designed: its bases and what is marked on it.
|
|
90
|
+
* @param read - The read, as bases. Either strand.
|
|
91
|
+
* @param options - `least` is how much of the read has to line up for the check to mean anything,
|
|
92
|
+
* as a fraction, 0.5 unless said.
|
|
93
|
+
* @returns What matched, what did not, and what each difference costs.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* import { checkRead } from "@biolibs/bionet-tools";
|
|
98
|
+
*
|
|
99
|
+
* const checked = checkRead({ sequence: designed, features }, fromTheFacility);
|
|
100
|
+
* checked.matches; // whether it is what was designed, over what the read covers
|
|
101
|
+
* checked.differences; // each one, where on the design, and what it does to the protein
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export declare function checkRead(design: {
|
|
105
|
+
sequence: string;
|
|
106
|
+
features?: readonly PartFeature[];
|
|
107
|
+
}, read: string, options?: {
|
|
108
|
+
least?: number;
|
|
109
|
+
}): Verification;
|
|
110
|
+
/** A difference, said in a line. */
|
|
111
|
+
export declare function saysDifference(one: Difference): string;
|
|
112
|
+
/**
|
|
113
|
+
* The working behind a check: what was compared, and what was found.
|
|
114
|
+
*
|
|
115
|
+
* @param checked - What came of checking.
|
|
116
|
+
* @param design - How long the design is, for saying how much was covered.
|
|
117
|
+
* @returns One working for the comparison and one for what it costs.
|
|
118
|
+
*/
|
|
119
|
+
export declare function verifyWorking(checked: Verification, design: {
|
|
120
|
+
sequence: string;
|
|
121
|
+
}): Working[];
|
|
122
|
+
/**
|
|
123
|
+
* A check as a run the lab would record.
|
|
124
|
+
*
|
|
125
|
+
* It uses up some of the tube that was sent and makes nothing. Whether it worked is whether the
|
|
126
|
+
* read is the design, which is what the check says, so the outcome is not a separate judgement.
|
|
127
|
+
*
|
|
128
|
+
* @param checked - What came of checking.
|
|
129
|
+
* @param choice - The tube that was sequenced, how much went, and what to say about it.
|
|
130
|
+
* @returns What to hand to the lab's `recordRun`, or `null` if there is nothing to record.
|
|
131
|
+
*/
|
|
132
|
+
export declare function verifyRun(checked: Verification, choice: {
|
|
133
|
+
tube: string;
|
|
134
|
+
used?: number;
|
|
135
|
+
primer?: string | null;
|
|
136
|
+
note?: string | null;
|
|
137
|
+
}): Record<string, unknown> | null;
|
|
138
|
+
//# sourceMappingURL=verify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/verify.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,CAAC;AAEvE,2CAA2C;AAC3C,MAAM,MAAM,aAAa;AACvB,mCAAmC;AACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE;AACtD,sCAAsC;GACpC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAC/D,6DAA6D;GAC3D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACnD,kGAAkG;GAChG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AACjD,+EAA+E;GAC7E;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AACnD,2FAA2F;GACzF;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;I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