@biolibs/bionet-tools 0.1.9 → 0.1.11

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.
Files changed (51) hide show
  1. package/README.md +139 -2
  2. package/dist/digest-tool.d.ts +12 -3
  3. package/dist/digest-tool.d.ts.map +1 -1
  4. package/dist/digest-tool.js +10 -4
  5. package/dist/digest-tool.js.map +1 -1
  6. package/dist/index.d.ts +10 -0
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +10 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/induce-bench.d.ts +91 -0
  11. package/dist/induce-bench.d.ts.map +1 -0
  12. package/dist/induce-bench.js +201 -0
  13. package/dist/induce-bench.js.map +1 -0
  14. package/dist/induce.d.ts +280 -0
  15. package/dist/induce.d.ts.map +1 -0
  16. package/dist/induce.js +353 -0
  17. package/dist/induce.js.map +1 -0
  18. package/dist/modify.d.ts +197 -0
  19. package/dist/modify.d.ts.map +1 -0
  20. package/dist/modify.js +253 -0
  21. package/dist/modify.js.map +1 -0
  22. package/dist/ordering.d.ts +147 -0
  23. package/dist/ordering.d.ts.map +1 -0
  24. package/dist/ordering.js +203 -0
  25. package/dist/ordering.js.map +1 -0
  26. package/dist/protein.d.ts.map +1 -1
  27. package/dist/protein.js +3 -1
  28. package/dist/protein.js.map +1 -1
  29. package/dist/run.d.ts +1 -1
  30. package/dist/run.d.ts.map +1 -1
  31. package/dist/run.js +1 -1
  32. package/dist/run.js.map +1 -1
  33. package/dist/tools.d.ts.map +1 -1
  34. package/dist/tools.js +9 -4
  35. package/dist/tools.js.map +1 -1
  36. package/dist/work.d.ts +18 -0
  37. package/dist/work.d.ts.map +1 -0
  38. package/dist/work.js +145 -0
  39. package/dist/work.js.map +1 -0
  40. package/package.json +4 -4
  41. package/src/digest-tool.tsx +14 -5
  42. package/src/index.ts +10 -0
  43. package/src/induce-bench.tsx +406 -0
  44. package/src/induce.ts +448 -0
  45. package/src/modify.ts +350 -0
  46. package/src/ordering.ts +301 -0
  47. package/src/protein.ts +3 -1
  48. package/src/run.ts +2 -2
  49. package/src/tools.tsx +8 -3
  50. package/src/work.tsx +277 -0
  51. package/tools.css +11 -0
@@ -0,0 +1,201 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ /**
4
+ * An induction and its gel, at the shaking incubator.
5
+ *
6
+ * The incubator shows a temperature, a speed and a time. It shows nothing of what the cells are
7
+ * doing, and nothing in this file pretends it does: the first three views are what is there to be
8
+ * read off the machine, the fourth is the gene the operator has to picture being read, and the fifth
9
+ * is the gel, which is where the answer actually comes from.
10
+ *
11
+ * The one place this tool differs from the others is the last step. A PCR's product is arithmetic,
12
+ * so the bench can offer to keep it. A culture's product is not: the band is there or it is not, and
13
+ * only the person holding the gel knows which. So both buttons record the run, and only one of them
14
+ * goes on to put a protein in the freezer.
15
+ */
16
+ import { useEffect, useMemo, useState } from "react";
17
+ import { PROTEIN_GELS, PROTEIN_LADDERS } from "@biolibs/gel";
18
+ import { useAct, useLab } from "@biolibs/bionet-react";
19
+ import { Glossed } from "@biolibs/glossary-react";
20
+ import { Gel } from "./digest-tool.js";
21
+ import { INDUCTION, USUAL_PROTEIN_GEL, inductionChecks, inductionCultures, inductionGenes, inductionRun, inductionWorking, markerFor } from "./induce.js";
22
+ import { SequenceMap } from "./map.js";
23
+ import { Proposed, withPlan } from "./plans.js";
24
+ import { useRunning } from "./running.js";
25
+ import { moleculeOf } from "./sequence-file.js";
26
+ import { ShowWorking } from "./working.js";
27
+ const count = (value) => value.toLocaleString("en-US");
28
+ const whole = (text) => (/^\d+$/.test(text.trim()) ? Number(text) : undefined);
29
+ const kda = (value) => `${Math.round(value * 10) / 10} kDa`;
30
+ /**
31
+ * An induction and the gel that checks it, at the shaking incubator.
32
+ *
33
+ * @param options - `start` says what to open on, for a tour or a link; `instrument` is the incubator
34
+ * it is grown in, if the lab has one; `onDone` adds a way to leave.
35
+ * @returns `stage`, to spread onto `InstrumentStage` from `@biolibs/bionet-scene`, and `panel`, to
36
+ * put inside it.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * import { useInductionBench } from "@biolibs/bionet-tools";
41
+ *
42
+ * const bench = useInductionBench({ instrument });
43
+ * <InstrumentStage {...bench.stage}>{bench.panel}</InstrumentStage>
44
+ * ```
45
+ */
46
+ export function useInductionBench({ instrument = null, onDone, start } = {}) {
47
+ const lab = useLab()?.lab;
48
+ const act = useAct();
49
+ const [view, setView] = useState(start?.view ?? "machine");
50
+ const [culture, setCulture] = useState(start?.culture ?? "");
51
+ const [gene, setGene] = useState(start?.gene ?? "");
52
+ const [cds, setCds] = useState(start?.cds ?? "");
53
+ const [cutSignal, setCutSignal] = useState(false);
54
+ const [inducer, setInducer] = useState("IPTG");
55
+ const [concentration, setConcentration] = useState("0.5 mM");
56
+ const [celsius, setCelsius] = useState("30");
57
+ const [rpm, setRpm] = useState("220");
58
+ const [hours, setHours] = useState("4");
59
+ const [used, setUsed] = useState("1");
60
+ const [gel, setGel] = useState(USUAL_PROTEIN_GEL);
61
+ // Empty means "whichever suits the gel", which is what a person does until they want another.
62
+ const [ladder, setLadder] = useState("");
63
+ const [name, setName] = useState("");
64
+ const [amount, setAmount] = useState("1");
65
+ const [note, setNote] = useState("");
66
+ const [busy, setBusy] = useState(false);
67
+ const [said, setSaid] = useState(null);
68
+ // A host driving the bench — a tour, or a link — says what to show by changing `start`.
69
+ const asked = JSON.stringify(start ?? null);
70
+ useEffect(() => {
71
+ if (start === undefined)
72
+ return;
73
+ if (start.view !== undefined)
74
+ setView(start.view);
75
+ if (start.culture !== undefined)
76
+ setCulture(start.culture);
77
+ if (start.gene !== undefined)
78
+ setGene(start.gene);
79
+ if (start.cds !== undefined)
80
+ setCds(start.cds);
81
+ }, [asked]);
82
+ const cultures = useMemo(() => (lab === null || lab === undefined ? [] : inductionCultures(lab)), [lab]);
83
+ const genes = useMemo(() => (lab === null || lab === undefined || culture === "" ? [] : inductionGenes(lab, culture)), [lab, culture]);
84
+ const chosen = genes.find((one) => one.part.checksum === gene);
85
+ // Arriving at the gel finds it running, because that is what a gel does.
86
+ const [ran, setRan, running] = useRunning(view === "result" && culture !== "" && gene !== "", start?.ran ?? 0);
87
+ const run = useMemo(() => (lab === null || lab === undefined ? null : inductionRun(lab, {
88
+ culture, gene, gel, ladder, instrument: instrument?.id ?? null, note, inducer, concentration,
89
+ ...(cds === "" ? {} : { cds }), ...(cutSignal ? { cutSignal: true } : {}), ...(name === "" ? {} : { name }),
90
+ ...(whole(used) === undefined ? {} : { used: whole(used) }), ...(whole(amount) === undefined ? {} : { amount: whole(amount) }),
91
+ ...(whole(celsius) === undefined ? {} : { celsius: whole(celsius) }),
92
+ ...(whole(rpm) === undefined ? {} : { rpm: whole(rpm) }),
93
+ ...(whole(hours) === undefined ? {} : { hours: whole(hours) }),
94
+ })), [lab, culture, gene, cds, cutSignal, gel, ladder, instrument, note, inducer, concentration, celsius, rpm, hours, used, amount, name]);
95
+ const plan = run?.plan ?? null;
96
+ const good = plan !== null && plan.problem === null && plan.kilodaltons !== null ? plan : null;
97
+ const checks = plan === null || plan.problem !== null ? [] : inductionChecks(plan);
98
+ const working = useMemo(() => (good === null ? [] : inductionWorking(good)), [good]);
99
+ // A protein the lab already holds is not added again: it is the same molecule, by the same checksum.
100
+ const already = good?.checksum == null ? undefined : lab?.parts.find((one) => one.checksum === good.checksum);
101
+ const stage = {
102
+ model: "shaking-incubator", name: instrument?.name ?? "Shaking incubator", view, onView: setView,
103
+ screen: [{ text: `${whole(celsius) ?? "—"} °C ${whole(rpm) ?? "—"} rpm`, lit: true }, { text: `${whole(hours) ?? "—"}:00 h` }],
104
+ ...(culture === "" ? {} : { well: { row: 0, column: 1 } }),
105
+ ...(chosen === undefined || view !== "tube" ? {} : { molecule: (() => {
106
+ const drawn = moleculeOf(chosen.part);
107
+ // The stretch being read is drawn on the gene, since that is the part of it that matters here.
108
+ const marked = cds === "" ? undefined : chosen.part.features.find((one) => one.label === cds)?.parts[0];
109
+ return marked === undefined ? drawn : {
110
+ ...drawn,
111
+ features: [{ start: marked.start, end: marked.end, strand: 0, tone: "found", label: `read · ${cds}` }, ...drawn.features],
112
+ };
113
+ })() }),
114
+ ...(good === null ? {} : { gel: { ran: ran / 100, lanes: [
115
+ // Bands the gel does not separate pile up in the well as one, and are named as the range they
116
+ // are. Labels that still crowd are the scene's to thin out, which it does by rank.
117
+ { name: "marker", tone: "dim", bands: good.ladder.map((band) => ({
118
+ position: band.position, intensity: 0.6,
119
+ label: band.sizes.length > 1 ? `${band.sizes.at(-1)}–${band.sizes[0]}` : `${band.size}`
120
+ })) },
121
+ { name: "induced", tone: "held", bands: good.bands.map((band) => ({ position: band.position, intensity: band.intensity, label: kda(band.size) })) },
122
+ ] } }),
123
+ };
124
+ /** Set the bench up as a plan says: its culture, and the gene it names. */
125
+ const setUp = (plan) => {
126
+ setCulture(plan.inputs.find((one) => one.role === "culture")?.item ?? "");
127
+ setGene(typeof plan.settings["gene_part"] === "string" ? plan.settings["gene_part"] : "");
128
+ setCds(typeof plan.settings["cds"] === "string" ? plan.settings["cds"] : "");
129
+ setCutSignal(plan.settings["signal_cut"] === "yes");
130
+ if (typeof plan.settings["inducer"] === "string")
131
+ setInducer(plan.settings["inducer"]);
132
+ if (typeof plan.settings["at"] === "string")
133
+ setConcentration(plan.settings["at"]);
134
+ setSaid(null);
135
+ setView("result");
136
+ };
137
+ /**
138
+ * Record the run, and — if the band was there — keep the protein.
139
+ *
140
+ * The order is the order it happened in: the run, then the part, then the tube of it. Each is its
141
+ * own entry, so a device that cannot read one still reads the others; and if the part is one the
142
+ * lab already holds, only a tube is added, because two labs that made the same protein made the
143
+ * same protein.
144
+ */
145
+ const record = async (showed) => {
146
+ const what = showed ? run?.showed ?? null : run?.nothing ?? null;
147
+ const keep = run?.keep ?? null;
148
+ if (what === null)
149
+ return;
150
+ setBusy(true);
151
+ const answer = await act("recordRun", withPlan(lab, what));
152
+ if (!answer.ok) {
153
+ setBusy(false);
154
+ setSaid(answer.error);
155
+ return;
156
+ }
157
+ if (!showed || keep === null) {
158
+ setBusy(false);
159
+ setNote("");
160
+ setSaid("Recorded: it was grown and induced, and nothing was at that mass.");
161
+ return;
162
+ }
163
+ if (already === undefined) {
164
+ const added = await act("addPart", { name: keep.name, sequence: keep.sequence, kind: "protein" });
165
+ if (!added.ok) {
166
+ setBusy(false);
167
+ setSaid(added.error);
168
+ return;
169
+ }
170
+ }
171
+ const tube = await act("addItem", { part: keep.checksum, amount: keep.amount, unit: keep.unit });
172
+ setBusy(false);
173
+ setNote("");
174
+ setSaid(tube.ok
175
+ ? `Recorded: the band is there, and ${keep.name} is in the freezer — ${keep.amount} ${keep.unit ?? ""}`.trim() + "."
176
+ : tube.error);
177
+ };
178
+ const here = lab === null || lab === undefined ? [] : lab.runs.filter((one) => one.kind === INDUCTION && (instrument === null || one.instrument === instrument.id)).slice(-5).reverse();
179
+ const strainName = (item) => {
180
+ const held = lab?.items.find((one) => one.item === item);
181
+ return lab?.strains.find((one) => one.strain === held?.strain)?.name ?? "a culture";
182
+ };
183
+ const checked = checks.length === 0 ? _jsx("p", { className: "small good", children: "Nothing about this induction looks wrong for this gel." })
184
+ : _jsx("ul", { className: "checks", children: checks.map((check) => _jsxs("li", { className: check.weight, children: [check.says, " ", _jsx("code", { className: "because", children: check.because })] }, check.says)) });
185
+ const panel = lab === null || lab === undefined ? null : (_jsxs("div", { className: "bionet benchpanel", children: [_jsxs("section", { className: "card", children: [_jsxs("div", { className: "toolhead", children: [_jsx("h2", { children: "Induction and gel" }), onDone !== undefined && _jsx("button", { type: "button", className: "quiet", onClick: onDone, children: "Back to the lab" })] }), cultures.length === 0 ? _jsx("p", { className: "empty", children: "There are no cultures to grow. A culture is of a strain: add a strain and a culture of it on the Strains tab, once something has been put into a host." }) : (_jsxs("fieldset", { disabled: busy, className: "stack", children: [_jsxs("label", { children: ["Culture", _jsxs("select", { value: culture, onChange: (event) => { setCulture(event.target.value); setGene(""); setCds(""); setSaid(null); }, "aria-label": "Culture", children: [_jsx("option", { value: "", children: "Choose a culture\u2026" }), cultures.map((one) => _jsx("option", { value: one.item, children: one.label }, one.item))] })] }), culture !== "" && (_jsxs("label", { children: ["Express", _jsxs("select", { value: gene, onChange: (event) => { setGene(event.target.value); setCds(""); setSaid(null); }, "aria-label": "What to express", children: [_jsx("option", { value: "", children: "Choose what it carries\u2026" }), genes.map((one) => _jsxs("option", { value: one.part.checksum, children: [one.part.name, " \u00B7 ", count(one.part.length), " bp"] }, one.part.checksum))] })] })), chosen !== undefined && chosen.coding.length > 0 && (_jsxs("label", { children: ["Read which coding sequence", _jsxs("select", { value: cds, onChange: (event) => { setCds(event.target.value); setSaid(null); }, "aria-label": "The coding sequence", children: [_jsx("option", { value: "", children: "the whole part" }), chosen.coding.map((one) => _jsx("option", { value: one, children: one }, one))] })] })), chosen !== undefined && (_jsxs("label", { className: "check", children: [_jsx("input", { type: "checkbox", checked: cutSignal, onChange: (event) => { setCutSignal(event.target.checked); setSaid(null); } }), "Take off a signal peptide, if one is marked"] }))] })), plan !== null && plan.problem !== null && culture !== "" && _jsx("p", { className: "trouble", role: "status", children: plan.problem })] }), _jsx(Proposed, { kind: INDUCTION, now: run?.showed ?? null, onSetUp: setUp }), view === "machine" && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "At the incubator" }), _jsx("p", { className: "small", children: _jsx(Glossed, { text: "Induction turns a promoter on, so that the cells carrying a gene start making the protein it codes for. A few hours later the protein is run on a polyacrylamide gel, which sorts proteins by mass." }) }), _jsx("p", { className: "dim small", children: "An incubator shows a temperature, a speed and a time, and nothing of what the cells are doing. The first three views are what is there to see. The fourth is the gene you have to picture being read. The fifth is the gel, which is where the answer comes from." }), _jsx("p", { className: "dim small", children: "Nothing here predicts a yield. What the cells make depends on the host, the promoter, the temperature and the protein itself, and no sequence tells you it. What is worked out is the protein the gene codes for and the mass its band should run at; whether that band is there is yours to read." })] })), view === "block" && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "The flasks" }), _jsx("p", { className: "voice", children: "The machine" }), _jsxs("fieldset", { disabled: busy, className: "programme", children: [_jsxs("label", { children: ["Induce with", _jsx("input", { value: inducer, onChange: (event) => setInducer(event.target.value), maxLength: 200, "aria-label": "The inducer" })] }), _jsxs("label", { children: ["at", _jsx("input", { value: concentration, onChange: (event) => setConcentration(event.target.value), maxLength: 200, "aria-label": "How much of it" })] })] }), _jsx("p", { className: "small", children: _jsx(Glossed, { text: "A flask of medium clamped to a platform that shakes, so that air is mixed in and the cells stay suspended." }) }), _jsx("p", { className: "voice", children: "This run" }), _jsxs("p", { className: "small", children: [plan?.strain == null ? "Nothing is growing yet. Choose a culture above." : _jsxs(_Fragment, { children: ["A flask of ", plan.strain.name, " \u2014 ", plan.strain.host, " \u2014 is in the second clamp."] }), plan?.gene != null && _jsxs(_Fragment, { children: [" It carries ", plan.gene.name, cds === "" ? "" : `, and ${cds} is what is being read`, "."] })] }), _jsx("p", { className: "dim small", children: "What the inducer is and how much of it was used are kept with the run as they are written here. Nothing works out whether that concentration is right for this promoter: that is in the literature, and in what this lab has found before." })] })), view === "screen" && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "The display" }), _jsx("p", { className: "voice", children: "The machine" }), _jsxs("fieldset", { disabled: busy, className: "programme", children: [_jsxs("label", { children: ["Grow at", _jsx("input", { type: "number", min: 4, max: 60, step: 1, value: celsius, onChange: (event) => setCelsius(event.target.value) }), " \u00B0C"] }), _jsxs("label", { children: ["shaking at", _jsx("input", { type: "number", min: 0, max: 400, step: 10, value: rpm, onChange: (event) => setRpm(event.target.value) }), " rpm"] }), _jsxs("label", { children: ["for", _jsx("input", { type: "number", min: 1, max: 96, step: 1, value: hours, onChange: (event) => setHours(event.target.value) }), " h"] })] }), _jsx("p", { className: "voice", children: "What is going on" }), _jsx("p", { className: "small", children: "The inducer lets the polymerase onto the promoter, so the gene behind it is read into messenger RNA and that is translated into protein. The cells go on growing and dividing while they do it, which is why the temperature and the shaking matter as much as the inducer." }), _jsx("p", { className: "dim small", children: "Growing cooler and for longer often gives less protein that is better folded, and warmer and briefly gives more of it stuck together in inclusion bodies. Nothing here works out which this will be. What is set is kept with the run, so that the next person can set it up the same way or deliberately differently." })] })), view === "tube" && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "In the cells" }), chosen === undefined || plan === null ? _jsx("p", { className: "dim small", children: "Choose a culture and what it carries to see the gene being read." }) : (_jsxs(_Fragment, { children: [_jsx(SequenceMap, { name: chosen.part.name, length: chosen.part.length, circular: chosen.part.circular, features: chosen.part.features, ...(cds === "" ? {} : { spans: chosen.part.features.filter((one) => one.label === cds).flatMap((one) => one.parts.map((piece) => ({ start: piece.start, end: piece.end, label: "read", strand: 0 }))) }) }), plan.made === null ? _jsx("p", { className: "dim small", children: plan.problem ?? "There is nothing here that reads as a gene." }) : (_jsxs(_Fragment, { children: [_jsx("p", { className: "voice", children: "This run" }), _jsxs("p", { children: [_jsxs("strong", { children: [count(plan.made.length), " amino acids"] }), plan.kilodaltons !== null && _jsxs("span", { className: "dim", children: [" \u00B7 ", kda(plan.kilodaltons)] }), plan.made.signal !== null && _jsxs("span", { className: "dim", children: [" \u00B7 ", plan.made.signal.label, " cut off"] })] }), _jsx("p", { className: "small", children: _jsxs("code", { className: "seq", children: [plan.made.protein.slice(0, 120), plan.made.protein.length > 120 ? "…" : ""] }) }), plan.facts !== null && (_jsxs("p", { className: "small", children: ["It carries no net charge at pH ", plan.facts.isoelectric.toFixed(2), ", which is the pH it would come out of solution at.", plan.facts.extinction.reduced > 0
186
+ ? _jsxs(_Fragment, { children: [" It absorbs at 280 nm with ", count(plan.facts.extinction.reduced), " M\u207B\u00B9cm\u207B\u00B9, which is how its concentration is read off."] })
187
+ : _jsx(_Fragment, { children: " It has no tryptophan, tyrosine or cystine, so it does not absorb at 280 nm at all and its concentration cannot be read there: use a dye-based assay instead." })] })), _jsx("p", { className: "small", children: _jsx(Glossed, { text: "A signal peptide is the first stretch of a protein the cell means to let out, and is cut off on the way: what is collected from the medium is what is left." }) }), _jsx("p", { className: "voice", children: "Checks" }), checked] }))] }))] })), view === "result" && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "The gel" }), good === null ? _jsx("p", { className: "dim small", children: plan?.problem ?? "Choose a culture and a gene that codes for a protein to see the gel it should give." }) : (_jsxs(_Fragment, { children: [_jsx("p", { className: "voice", children: "The machine" }), _jsxs("fieldset", { disabled: busy, className: "programme", children: [_jsxs("label", { children: ["Gel", _jsx("select", { value: gel, onChange: (event) => setGel(event.target.value), children: PROTEIN_GELS.map((one) => _jsxs("option", { value: one.id, children: [one.percent, "% acrylamide"] }, one.id)) })] }), _jsxs("label", { children: ["Marker", _jsxs("select", { value: ladder, onChange: (event) => setLadder(event.target.value), children: [_jsxs("option", { value: "", children: [markerFor(good.gel).name, " \u00B7 the one for this gel"] }), PROTEIN_LADDERS.map((one) => _jsx("option", { value: one.id, children: one.name }, one.id))] })] })] }), _jsx("p", { className: "voice", children: "This run" }), _jsx(Gel, { ladder: good.ladder, bands: good.bands, name: "induced", unit: "kilodaltons", marker: "marker", says: `A protein gel: a broad-range marker beside the induced culture, with one band to look for at ${kda(good.kilodaltons)}` }), _jsxs("p", { className: "small", children: ["The band to look for is at ", _jsx("strong", { children: kda(good.kilodaltons) }), ", between the marker\u2019s ", good.ladder.filter((one) => one.size >= good.kilodaltons).at(-1)?.size ?? good.gel.largest, " and ", good.ladder.filter((one) => one.size <= good.kilodaltons)[0]?.size ?? good.gel.smallest, " kDa bands. This gel separates ", good.gel.largest, " down to ", good.gel.smallest, " kDa."] }), _jsxs("label", { className: "small", children: ["How far it has run", running ? " · running" : "", _jsx("input", { type: "range", min: 0, max: 100, step: 1, value: Math.round(ran), onChange: (event) => setRan(Number(event.target.value)), "aria-label": "How far the gel has run" })] }), _jsx("p", { className: "dim small", children: "A lane of the same culture before it was induced, beside this one, is what makes a band mean anything: the protein is the band that is in one and not the other." }), _jsx("p", { className: "voice", children: "Checks" }), checked, _jsx("p", { className: "voice", children: "The working" }), working.map((one) => _jsx(ShowWorking, { working: one }, one.of)), _jsxs("fieldset", { disabled: busy, className: "stack", children: [_jsxs("label", { children: ["Call the protein", _jsx("input", { value: name, onChange: (event) => setName(event.target.value), maxLength: 200, placeholder: run?.keep?.name ?? "a name for it", "aria-label": "What to call the protein" })] }), _jsxs("label", { children: ["Used, from the culture", _jsx("input", { type: "number", min: 0, step: 1, value: used, onChange: (event) => setUsed(event.target.value), "aria-label": "Amount used" })] }), _jsxs("label", { children: ["How much came out, in mL", _jsx("input", { type: "number", min: 0, step: 1, value: amount, onChange: (event) => setAmount(event.target.value), "aria-label": "How much protein came out" })] }), _jsxs("label", { children: ["Note", _jsx("input", { value: note, onChange: (event) => setNote(event.target.value), placeholder: "Anything worth remembering about this induction", maxLength: 2000 })] }), already !== undefined && _jsxs("p", { className: "small", children: ["The lab already holds this protein, as ", already.name, ". Only a tube of it will be added: it is the same molecule."] }), _jsxs("div", { className: "row", children: [_jsx("button", { type: "button", onClick: () => void record(true), children: "The band is there" }), _jsx("button", { type: "button", className: "quiet", onClick: () => void record(false), children: "Nothing at that mass" })] }), _jsx("p", { className: "dim small", children: "Either way the run is recorded and the culture is used. Only the first puts a protein in the freezer, and it is named in the run\u2019s settings by the checksum it will have, so the two can be put back together afterwards." })] }), said !== null && _jsx("p", { className: "small", role: "status", children: said })] }))] })), here.length > 0 && view === "result" && (_jsxs("section", { className: "card", children: [_jsxs("h2", { children: ["Recent inductions", instrument === null ? "" : " here"] }), _jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Culture" }), _jsx("th", { children: "Gene" }), _jsx("th", { children: "Induced with" }), _jsx("th", { children: "Expected" }), _jsx("th", { children: "Gel" })] }) }), _jsx("tbody", { children: here.map((one) => (_jsxs("tr", { children: [_jsx("td", { children: strainName(one.inputs[0]?.item) }), _jsx("td", { children: String(one.settings["gene"] ?? "—") }), _jsx("td", { className: "dim", children: [one.settings["inducer"], one.settings["at"]].filter((each) => each !== undefined).join(" ") || "—" }), _jsx("td", { className: "dim", children: one.settings["expected_kda"] === undefined ? "—" : `${String(one.settings["expected_kda"])} kDa` }), _jsx("td", { children: one.outcome === "worked" ? "band there" : _jsx("span", { className: "badge", children: "nothing" }) })] }, one.run))) })] })] }))] }));
188
+ return { stage, panel };
189
+ }
190
+ /**
191
+ * The induction tool on its own, for a lab that has not drawn its room.
192
+ *
193
+ * @param props - `instrument` is the incubator it is grown in, if the lab has one; `start` says what
194
+ * to open on; `onDone` adds a way to leave.
195
+ */
196
+ export function InductionTool(props) {
197
+ const bench = useInductionBench(props);
198
+ const names = [["machine", "The incubator"], ["block", "The flasks"], ["screen", "The display"], ["tube", "In the cells"], ["result", "The gel"]];
199
+ return (_jsxs("div", { className: "pcr", children: [_jsx("div", { className: "row tight pick", role: "tablist", "aria-label": `Views of ${bench.stage.name}`, children: names.map(([one, said]) => (_jsx("button", { type: "button", role: "tab", "aria-selected": one === bench.stage.view, className: one === bench.stage.view ? "" : "quiet", onClick: () => bench.stage.onView(one), children: said }, one))) }), bench.panel] }));
200
+ }
201
+ //# sourceMappingURL=induce-bench.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"induce-bench.js","sourceRoot":"","sources":["../src/induce-bench.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,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AC,YAAG,IAAI,IADxC,GAAG,CAC+C,CAChE,CAAC,GACE,EACL,KAAK,CAAC,KAAK,IACR,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,280 @@
1
+ /**
2
+ * Growing a strain and making it express what was put into it, and the gel that shows whether it did.
3
+ *
4
+ * This is the step the rest of the lab's tools lead up to. A gene is found, copied, cut, joined into
5
+ * a construct, checked and put into a host, and all of that is still only DNA: a promise about a
6
+ * protein that nobody has yet seen. An induction is where the promise is kept or is not. The flask
7
+ * is fed something that turns the promoter on, it shakes for a few hours, and then a lane of a
8
+ * polyacrylamide gel either has a band at the right mass or it does not.
9
+ *
10
+ * Two things about this are worth being plain about, because they are what makes an induction
11
+ * different from every other tool here.
12
+ *
13
+ * - **Nothing that comes out is worked out from what went in.** A PCR's product is the stretch
14
+ * between the primers, and arithmetic gives it. A culture's product is whatever the cells chose to
15
+ * make, and no sequence predicts the yield, the solubility, or whether the thing folded. So what
16
+ * is computed here is only the protein the gene *codes for* and the mass its band *should* run at.
17
+ * Whether that band is there is read off a gel by a person, and is the one thing recorded.
18
+ * - **The protein is not an output of the run.** A run's outputs are DNA, every device that reads
19
+ * the log agrees on that, and an entry that said otherwise would be refused by the ones that are
20
+ * older. So an induction is recorded as a run with no outputs that used some of a culture — the
21
+ * same shape a transformation has — and the protein is added afterwards as a part in its own
22
+ * right. The run says in its settings which protein it was expected to make, by the checksum that
23
+ * protein will have, which is how the two are tied together without a new kind of entry.
24
+ */
25
+ import { type PartState, type StrainState } from "@biolibs/bionet";
26
+ import { type Band, type ProteinGel, type ProteinLadder } from "@biolibs/gel";
27
+ import { type ProteinFacts, type Translated } from "./protein.js";
28
+ import type { Working } from "./pcr-working.js";
29
+ import type { ToolLab } from "./run.js";
30
+ /** What a run that grew a culture and made it express something is called, for the lab's record. */
31
+ export declare const INDUCTION = "induction";
32
+ /** The gel an induction is checked on unless somebody says otherwise: 12% acrylamide. */
33
+ export declare const USUAL_PROTEIN_GEL = "12";
34
+ /** The marker run beside it unless the operator picks one: `markerFor` chooses to suit the gel. */
35
+ export declare const USUAL_PROTEIN_LADDER = "";
36
+ /** A dalton is a gram per mole; a gel is read in thousands of them. */
37
+ export declare const DA_PER_KDA = 1000;
38
+ /**
39
+ * The marker to run beside a gel, unless somebody says otherwise: the one with most of its bands
40
+ * inside what that gel separates.
41
+ *
42
+ * A marker is chosen to suit the gel, the way a person does it. A broad-range marker on a 12% gel
43
+ * puts its 250, 150 and 100 kDa bands all in the well, where they are one smudge and no use for
44
+ * reading anything off.
45
+ *
46
+ * @param gel - The gel.
47
+ * @returns The marker.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * import { markerFor, proteinGelById } from "@biolibs/bionet-tools";
52
+ *
53
+ * markerFor(proteinGelById("12")).id; // "low" — a broad-range marker's top three sit in the well
54
+ * ```
55
+ */
56
+ export declare function markerFor(gel: ProteinGel): ProteinLadder;
57
+ /** As much of a lab as an induction reads: an induction needs the strains, which no other tool does. */
58
+ export interface InductionLab extends ToolLab {
59
+ strains: readonly StrainState[];
60
+ }
61
+ /** One culture that could be grown and induced. */
62
+ export interface CultureChoice {
63
+ /** The culture's tube. */
64
+ item: string;
65
+ /** The strain it is a culture of. */
66
+ strain: StrainState;
67
+ /** How to say it in a list: what it is, how much there is, where it is. */
68
+ label: string;
69
+ }
70
+ /** One thing a strain carries that codes for a protein, and could be expressed. */
71
+ export interface GeneChoice {
72
+ /** The part. */
73
+ part: PartState;
74
+ /** The coding sequences marked on it, by label, longest first. An empty list means the whole part is the only choice. */
75
+ coding: string[];
76
+ }
77
+ /** What somebody has chosen for an induction. */
78
+ export interface InductionChoice {
79
+ /** The culture to grow, by its tube ID. */
80
+ culture: string;
81
+ /** The gene to express, by its part's checksum. One of the ones the strain carries. */
82
+ gene: string;
83
+ /** The label of a coding sequence marked on it, to read in place of the whole part. */
84
+ cds?: string;
85
+ /** Whether to take off a signal peptide marked at the start of it: for a secreted protein, that is what is collected. */
86
+ cutSignal?: boolean;
87
+ /** What the promoter was turned on with, and how much, as the operator writes it: `IPTG`, `0.5 mM`. */
88
+ inducer?: string;
89
+ concentration?: string;
90
+ /** What the incubator was set to: degrees, revolutions a minute, and how long it ran. Whole numbers. */
91
+ celsius?: number;
92
+ rpm?: number;
93
+ hours?: number;
94
+ /** How much of the culture was used, in its own unit. A whole number. */
95
+ used?: number;
96
+ /** The acrylamide gel and the marker beside it, by their IDs in `@biolibs/gel`. */
97
+ gel?: string;
98
+ ladder?: string;
99
+ /** The shaking incubator it was grown in, if the lab has one. */
100
+ instrument?: string | null;
101
+ /** What to call the protein, how much of it there is, and in what unit. */
102
+ name?: string;
103
+ amount?: number;
104
+ unit?: string | null;
105
+ /** Anything worth saying about it. */
106
+ note?: string | null;
107
+ }
108
+ /** What an induction would be expected to give. */
109
+ export interface InductionPlan {
110
+ /** The strain being grown, and the gene being expressed. */
111
+ strain: StrainState | null;
112
+ gene: PartState | null;
113
+ /** The protein the gene codes for, or `null` if it could not be read as one. */
114
+ made: Translated | null;
115
+ /** What is known of that protein from its sequence alone. */
116
+ facts: ProteinFacts | null;
117
+ /** The checksum the protein will have in the lab, which is its identity. `null` if there is none to have. */
118
+ checksum: string | null;
119
+ /** What it weighs, in kilodaltons, as a gel is read: `null` unless the weight could be worked out. */
120
+ kilodaltons: number | null;
121
+ /** The band it should show, and the marker's bands beside it. */
122
+ bands: Band[];
123
+ ladder: Band[];
124
+ /** The gel and marker it was worked out for. */
125
+ gel: ProteinGel;
126
+ ladderName: string;
127
+ /** Why there is nothing to expect, said for a person, or `null` if there is. */
128
+ problem: string | null;
129
+ }
130
+ /** An induction as chosen: what it would give, what to record, and the protein to keep if it worked. */
131
+ export interface InductionRun {
132
+ /** What it would be expected to give. */
133
+ plan: InductionPlan;
134
+ /** The protein to add as a part, and the tube of it to add, if the band is there. `null` while there is no protein to expect. */
135
+ keep: {
136
+ name: string;
137
+ sequence: string;
138
+ kind: "protein";
139
+ amount: number;
140
+ unit: string | null;
141
+ checksum: string;
142
+ } | null;
143
+ /** What to hand to the lab's `recordRun` if the band was there. `null` likewise. */
144
+ showed: Record<string, unknown> | null;
145
+ /** What to hand to it if it was grown and nothing was at that mass. `null` if the culture is missing. */
146
+ nothing: Record<string, unknown> | null;
147
+ }
148
+ /**
149
+ * The cultures a lab could grow and induce: every culture with something in it.
150
+ *
151
+ * A tube of DNA is not offered, however much of it there is. Expression is something cells do.
152
+ *
153
+ * @param lab - The lab.
154
+ * @returns The cultures to offer, the ones of a strain that carries something first, since those
155
+ * are the ones there is anything to express in.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * import { inductionCultures } from "@biolibs/bionet-tools";
160
+ *
161
+ * const cultures = inductionCultures(lab);
162
+ * ```
163
+ */
164
+ export declare function inductionCultures(lab: InductionLab): CultureChoice[];
165
+ /**
166
+ * What a culture's strain carries that there is any point inducing.
167
+ *
168
+ * A strain carries parts, and a part is DNA; a protein the lab happens to hold is not something to
169
+ * express. What is marked on each is read for coding sequences, since a construct usually carries
170
+ * more than a gene — a promoter, a marker, an origin — and it is the gene that is being asked for.
171
+ *
172
+ * @param lab - The lab.
173
+ * @param culture - The culture's tube ID.
174
+ * @returns What could be expressed, and the coding sequences marked on each.
175
+ */
176
+ export declare function inductionGenes(lab: InductionLab, culture: string): GeneChoice[];
177
+ /**
178
+ * What an induction would be expected to give: the protein, and where its band should run.
179
+ *
180
+ * @param lab - The lab.
181
+ * @param choice - The culture, the gene, and the gel to read it on.
182
+ * @returns The protein, its mass, and the gel it should show.
183
+ *
184
+ * @example
185
+ * ```ts
186
+ * import { planInduction } from "@biolibs/bionet-tools";
187
+ *
188
+ * const plan = planInduction(lab, { culture, gene, cds: "casein", cutSignal: true });
189
+ * plan.kilodaltons; // what the band should run at
190
+ * ```
191
+ */
192
+ export declare function planInduction(lab: InductionLab, choice: InductionChoice): InductionPlan;
193
+ /**
194
+ * Work a choice out into an induction: what to record, and the protein to keep.
195
+ *
196
+ * What is recorded is a run that used some of a culture and made no molecule, because a run's
197
+ * outputs are DNA and what this makes is not. The protein it was expected to make is named in the
198
+ * run's settings by the checksum it will have, so that the run and the part can be put back together
199
+ * afterwards by anybody reading the log, including a device that was not here.
200
+ *
201
+ * @param lab - The lab.
202
+ * @param choice - The culture, the gene, how it was set up, and what to call what comes out.
203
+ * @returns What it would give, what to record either way, and the protein to add if it worked.
204
+ */
205
+ export declare function inductionRun(lab: InductionLab, choice: InductionChoice): InductionRun;
206
+ /** Something a careful operator would stop and ask about an induction before setting it up. */
207
+ export interface InductionCheck {
208
+ /** `stop` if the gel is unlikely to show what is hoped, `look` if it is only worth a second glance. */
209
+ weight: "stop" | "look";
210
+ /** What to say. */
211
+ says: string;
212
+ /** The short reason, to put beside it. */
213
+ because: string;
214
+ }
215
+ /**
216
+ * What a careful operator would ask of an induction before running it.
217
+ *
218
+ * None of this is about the protein being wrong. It is about the gel being unable to answer the
219
+ * question: a band smaller than the gel separates runs off the front, one larger stays in the well,
220
+ * and one that lands on a marker band cannot be told from it. A protein that the sequence says is
221
+ * unstable is worth knowing about before a day is spent on it.
222
+ *
223
+ * @param plan - The induction as worked out.
224
+ * @returns What to say, the ones worth stopping for first.
225
+ *
226
+ * @example
227
+ * ```ts
228
+ * import { inductionChecks, planInduction } from "@biolibs/bionet-tools";
229
+ *
230
+ * inductionChecks(planInduction(lab, choice)).filter((one) => one.weight === "stop");
231
+ * ```
232
+ */
233
+ export declare function inductionChecks(plan: InductionPlan): InductionCheck[];
234
+ /**
235
+ * The working behind an induction: the protein, and where its band should run.
236
+ *
237
+ * The first of these is the translation and what the sequence says about the protein, which is
238
+ * `proteinWorking`'s. The last is the one thing added here, and it is the one that has to be read
239
+ * carefully: a position on a gel is an estimate from a straight-line rule, and a mass is read
240
+ * against the marker beside it and never off a distance.
241
+ *
242
+ * @param plan - The induction as worked out.
243
+ * @returns The workings, in the order to read them. Empty if there is nothing to expect.
244
+ */
245
+ export declare function inductionWorking(plan: InductionPlan): Working[];
246
+ /**
247
+ * Which of a lab's parts came out of an induction, as the runs themselves say.
248
+ *
249
+ * A protein part is added apart from the run that made it, so the tie between them is the checksum
250
+ * the run recorded in its settings. Reading it back this way means a device that was not there when
251
+ * it happened arrives at the same answer from the log alone.
252
+ *
253
+ * @param lab - The lab, with its runs.
254
+ * @param checksum - The protein's checksum.
255
+ * @returns The IDs of the runs that said they would make it, in the order they were recorded.
256
+ *
257
+ * @example
258
+ * ```ts
259
+ * import { inducedBy } from "@biolibs/bionet-tools";
260
+ *
261
+ * inducedBy(lab, protein.checksum); // ["…"], or [] for a protein nobody grew here
262
+ * ```
263
+ */
264
+ export declare function inducedBy(lab: {
265
+ runs: readonly {
266
+ run: string;
267
+ kind: string;
268
+ outcome: string;
269
+ settings: Readonly<Record<string, string | number>>;
270
+ }[];
271
+ }, checksum: string): string[];
272
+ /**
273
+ * Whether a part looks like one an induction made: a protein, with a run that says it made it.
274
+ *
275
+ * @param lab - The lab, with its runs.
276
+ * @param part - The part.
277
+ * @returns Whether some induction in the lab's record was expected to make it.
278
+ */
279
+ export declare const wasInduced: (lab: Parameters<typeof inducedBy>[0], part: Pick<PartState, "checksum" | "kind">) => boolean;
280
+ //# sourceMappingURL=induce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"induce.d.ts","sourceRoot":"","sources":["../src/induce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAgB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAoE,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAChJ,OAAO,EAA+C,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,oGAAoG;AACpG,eAAO,MAAM,SAAS,cAA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