@biolibs/bionet-tools 0.1.10 → 0.1.12
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 +211 -0
- package/dist/codons.d.ts +35 -0
- package/dist/codons.d.ts.map +1 -1
- package/dist/codons.js +55 -0
- package/dist/codons.js.map +1 -1
- package/dist/fusion-bench.d.ts +62 -0
- package/dist/fusion-bench.d.ts.map +1 -0
- package/dist/fusion-bench.js +114 -0
- package/dist/fusion-bench.js.map +1 -0
- package/dist/fusion.d.ts +120 -0
- package/dist/fusion.d.ts.map +1 -0
- package/dist/fusion.js +176 -0
- package/dist/fusion.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/modify.js +4 -4
- package/dist/modify.js.map +1 -1
- package/dist/ordering.d.ts +147 -0
- package/dist/ordering.d.ts.map +1 -0
- package/dist/ordering.js +203 -0
- package/dist/ordering.js.map +1 -0
- package/dist/protocol.d.ts +91 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +278 -0
- package/dist/protocol.js.map +1 -0
- package/dist/remedy.d.ts +137 -0
- package/dist/remedy.d.ts.map +1 -0
- package/dist/remedy.js +234 -0
- package/dist/remedy.js.map +1 -0
- 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/work.d.ts +18 -0
- package/dist/work.d.ts.map +1 -0
- package/dist/work.js +155 -0
- package/dist/work.js.map +1 -0
- package/package.json +2 -2
- package/src/codons.ts +53 -0
- package/src/fusion-bench.tsx +209 -0
- package/src/fusion.ts +270 -0
- package/src/index.ts +12 -0
- package/src/modify.ts +4 -4
- package/src/ordering.ts +301 -0
- package/src/protocol.ts +332 -0
- package/src/remedy.ts +277 -0
- package/src/tools.tsx +8 -4
- package/src/work.tsx +319 -0
- package/tools.css +18 -0
package/dist/remedy.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What to do about a host that will not phosphorylate what you asked it to make.
|
|
3
|
+
*
|
|
4
|
+
* `modify.ts` answers the question. This one is about what follows from the answer, and it is a
|
|
5
|
+
* different kind of thing to be careful about. Diagnosing is cheap to be honest about: either the
|
|
6
|
+
* motif is there or it is not, either the host is held to have the enzyme or it is not. Proposing a
|
|
7
|
+
* way round is where a tool can do real damage, because the ways round are not equivalent, the most
|
|
8
|
+
* computable of them is the least likely to work, and a lab that spends a month on the wrong one
|
|
9
|
+
* has spent a month.
|
|
10
|
+
*
|
|
11
|
+
* So two things are kept apart here, and neither pretends to be the other.
|
|
12
|
+
*
|
|
13
|
+
* **The routes** are laid out with what each costs and how firmly it is held, and none of them is
|
|
14
|
+
* recommended. Which one a lab takes depends on what it has — a tissue culture room, a second
|
|
15
|
+
* selection marker, a purified kinase, patience — and nothing here knows that.
|
|
16
|
+
*
|
|
17
|
+
* **The one that can be computed** is the phosphomimetic: replacing each phosphoserine with a
|
|
18
|
+
* glutamate or an aspartate, which carries a negative charge without needing any enzyme at all.
|
|
19
|
+
* That is arithmetic and {@link phosphomimetic} does it exactly. What it is not is a substitute for
|
|
20
|
+
* phosphorylation, and the honest framing is the whole value of the tool: a phosphoserine carries
|
|
21
|
+
* about two negative charges at neutral pH and a glutamate carries one, in a smaller group of a
|
|
22
|
+
* different shape, and for casein the clusters that bind calcium do so in a way that depends on
|
|
23
|
+
* that shape. It is a way of asking whether charge alone is enough. It is not a way of making
|
|
24
|
+
* phosphorylated casein, and a tool that let somebody believe otherwise would be worse than none.
|
|
25
|
+
*/
|
|
26
|
+
import { ProteinAnalysis } from "@biolibs/seqtools";
|
|
27
|
+
import { CODON } from "./codons.js";
|
|
28
|
+
import { DA_PER_KDA } from "./induce.js";
|
|
29
|
+
/**
|
|
30
|
+
* The ways round a host that will not phosphorylate what it makes, in no order of preference.
|
|
31
|
+
*
|
|
32
|
+
* None is recommended, because which one suits depends on what a lab has — a tissue culture room, a
|
|
33
|
+
* second selection marker, a purified kinase, time — and nothing here knows that. What is said of
|
|
34
|
+
* each is what it costs and how firmly it is held.
|
|
35
|
+
*/
|
|
36
|
+
export const REMEDIES = [
|
|
37
|
+
{
|
|
38
|
+
name: "co-express the kinase",
|
|
39
|
+
what: "Put a kinase into the host alongside the protein, so that the cell does the phosphorylating itself. For a secreted protein the kinase has to reach the same compartment the protein passes through, which is the part that usually decides whether it works.",
|
|
40
|
+
costs: "A second construct, a second selection marker, and a second thing that can go wrong. The kinase's own expression has to be got right before anything can be said about the protein's.",
|
|
41
|
+
standing: "reported", computable: false,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "a host that already has it",
|
|
45
|
+
what: "Express it in something that phosphorylates secreted proteins as a matter of course — a mammalian cell line does, which is what makes milk in the first place.",
|
|
46
|
+
costs: "Slow, expensive, and a different set of skills and equipment. It is why almost nobody makes a food protein this way.",
|
|
47
|
+
standing: "well established", computable: false,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "phosphorylate it afterwards",
|
|
51
|
+
what: "Make the protein unphosphorylated, purify it, and treat it with a purified kinase and ATP in a tube.",
|
|
52
|
+
costs: "The kinase has to be bought or made, and the reaction has to be driven to something like completion on a purified protein, which is not the same as a cell doing it as the protein is made.",
|
|
53
|
+
standing: "reported", computable: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "a phosphomimetic",
|
|
57
|
+
what: "Change each serine that would have been phosphorylated to a glutamate or an aspartate, which carries a negative charge with no enzyme needed. The gene is rewritten; nothing is added to the cell.",
|
|
58
|
+
costs: "It is not the same molecule. A phosphoserine carries about two negative charges at neutral pH and a glutamate carries one, in a smaller group of a different shape. It asks whether charge alone is enough; it does not make phosphorylated protein.",
|
|
59
|
+
standing: "worth trying", computable: true,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "measure what you actually get",
|
|
63
|
+
what: "Express it, run the gel, and test the thing you care about — whether micelles form, whether calcium is bound — rather than assuming the answer from whether the host has an enzyme.",
|
|
64
|
+
costs: "Nothing beyond the experiment, and it is the only one of these that tells you where you really are rather than where the literature says you probably are.",
|
|
65
|
+
standing: "well established", computable: false,
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
/** What may stand in for a phosphoserine, and how far it gets. */
|
|
69
|
+
const INSTEAD = {
|
|
70
|
+
E: { charge: 1, says: "glutamate: one negative charge, and the longer of the two side chains" },
|
|
71
|
+
D: { charge: 1, says: "aspartate: one negative charge, and the shorter side chain" },
|
|
72
|
+
};
|
|
73
|
+
/** Which residues are phosphorylated at all. */
|
|
74
|
+
const PHOSPHORYLATED = new Set(["S", "T", "Y"]);
|
|
75
|
+
/**
|
|
76
|
+
* Swap each named residue for something that carries a negative charge.
|
|
77
|
+
*
|
|
78
|
+
* @param protein - The amino acids.
|
|
79
|
+
* @param sites - Where the phosphosites are, counting from 1 on that sequence.
|
|
80
|
+
* @param options - `instead` is what to put there, `E` unless said.
|
|
81
|
+
* @returns The changed protein, what it changed, and what it does and does not reproduce.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* import { phosphomimetic } from "@biolibs/bionet-tools";
|
|
86
|
+
*
|
|
87
|
+
* const asked = phosphomimetic(casein, [15, 17, 18, 19, 35]);
|
|
88
|
+
* asked.isoelectric; // what the change really does: the charge, not the shape
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
export function phosphomimetic(protein, sites, options = {}) {
|
|
92
|
+
const chain = protein.replace(/\s+/g, "").toUpperCase();
|
|
93
|
+
const nothing = (problem) => ({ protein: chain, swapped: [], notSwapped: [], weight: null, kilodaltons: null, isoelectric: null, warnings: [], problem });
|
|
94
|
+
if (chain === "")
|
|
95
|
+
return nothing("There is no protein here to change.");
|
|
96
|
+
if (!/^[ACDEFGHIKLMNPQRSTVWY]+$/.test(chain))
|
|
97
|
+
return nothing("That is written in letters that are not the twenty standard amino acids.");
|
|
98
|
+
const instead = options.instead ?? "E";
|
|
99
|
+
if (!Object.hasOwn(INSTEAD, instead))
|
|
100
|
+
return nothing("A phosphomimetic is a glutamate or an aspartate.");
|
|
101
|
+
if (sites.length === 0)
|
|
102
|
+
return nothing("No sites were given, so there is nothing to change.");
|
|
103
|
+
const letters = [...chain];
|
|
104
|
+
const swapped = [];
|
|
105
|
+
const notSwapped = [];
|
|
106
|
+
for (const at of [...new Set(sites)].sort((a, b) => a - b)) {
|
|
107
|
+
const was = letters[at - 1];
|
|
108
|
+
if (was === undefined) {
|
|
109
|
+
notSwapped.push({ at, was: "", why: `This protein has ${chain.length} residues, so there is nothing at ${at}.` });
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
if (!PHOSPHORYLATED.has(was)) {
|
|
113
|
+
notSwapped.push({ at, was, why: `${was}${at} is not a serine, a threonine or a tyrosine, so it was never phosphorylated.` });
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
letters[at - 1] = instead;
|
|
117
|
+
swapped.push({ at, was, now: instead });
|
|
118
|
+
}
|
|
119
|
+
const changed = letters.join("");
|
|
120
|
+
const figures = (one) => {
|
|
121
|
+
try {
|
|
122
|
+
const analysis = new ProteinAnalysis(one);
|
|
123
|
+
return { weight: analysis.molecularWeight(), isoelectric: analysis.isoelectricPoint() };
|
|
124
|
+
}
|
|
125
|
+
catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const before = figures(chain);
|
|
130
|
+
const after = figures(changed);
|
|
131
|
+
const warnings = [];
|
|
132
|
+
if (swapped.length > 0) {
|
|
133
|
+
warnings.push(`A phosphoserine carries about two negative charges at the pH of a cell; ${INSTEAD[instead].says}. So this reproduces something like half the charge, and none of the shape.`);
|
|
134
|
+
warnings.push("Where phosphoserines sit in a cluster and bind calcium between them — which is what makes casein build a micelle — the geometry matters as much as the charge, and a glutamate does not have it.");
|
|
135
|
+
warnings.push("Treat this as a way of asking whether charge alone is enough, and as something to compare against the real thing rather than to stand in for it.");
|
|
136
|
+
}
|
|
137
|
+
if (swapped.length > 0 && notSwapped.length > 0)
|
|
138
|
+
warnings.push(`${notSwapped.length} of the sites given could not be changed; they are listed.`);
|
|
139
|
+
return {
|
|
140
|
+
protein: changed, swapped, notSwapped,
|
|
141
|
+
weight: before === null || after === null ? null : { before: before.weight, after: after.weight },
|
|
142
|
+
kilodaltons: before === null || after === null ? null : { before: before.weight / DA_PER_KDA, after: after.weight / DA_PER_KDA },
|
|
143
|
+
isoelectric: before === null || after === null ? null : { before: before.isoelectric, after: after.isoelectric },
|
|
144
|
+
warnings,
|
|
145
|
+
problem: swapped.length === 0 && notSwapped.length > 0 ? "None of the sites given is a residue that is phosphorylated." : null,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Rewrite a coding sequence so that it encodes a phosphomimetic.
|
|
150
|
+
*
|
|
151
|
+
* The protein is what matters; this is how you get a lab something it can order. Each named codon is
|
|
152
|
+
* replaced with one for the substitute, and which codon that is can be the host's commonest, so that
|
|
153
|
+
* what comes out is as readable to the host as what went in.
|
|
154
|
+
*
|
|
155
|
+
* @param cds - The coding sequence, a whole number of codons.
|
|
156
|
+
* @param sites - Where the phosphosites are, counting amino acids from 1.
|
|
157
|
+
* @param options - `instead` is what to encode, `E` unless said; `codon` picks the codon to use for
|
|
158
|
+
* it, which `optimiseCodons` can choose from a host's own usage.
|
|
159
|
+
* @returns The gene, and what changed.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* import { mimeticGene } from "@biolibs/bionet-tools";
|
|
164
|
+
*
|
|
165
|
+
* mimeticGene(casein, [15, 17, 18, 19, 35], { codon: "GAA" }).sequence;
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
export function mimeticGene(cds, sites, options = {}) {
|
|
169
|
+
const bases = cds.replace(/\s+/g, "").toUpperCase();
|
|
170
|
+
if (!/^[ACGT]+$/.test(bases))
|
|
171
|
+
return { sequence: bases, changed: [], problem: "A gene to rewrite is written in A, C, G and T, with no uncertain bases." };
|
|
172
|
+
if (bases.length % CODON !== 0)
|
|
173
|
+
return { sequence: bases, changed: [], problem: `That is ${bases.length} bases, which is not a whole number of codons.` };
|
|
174
|
+
const instead = options.instead ?? "E";
|
|
175
|
+
// The commonest codon for each, where the caller does not pick one from a host's own usage.
|
|
176
|
+
const usual = { E: "GAA", D: "GAT" };
|
|
177
|
+
const codon = (options.codon ?? usual[instead] ?? "GAA").toUpperCase();
|
|
178
|
+
if (!/^[ACGT]{3}$/.test(codon))
|
|
179
|
+
return { sequence: bases, changed: [], problem: "A codon is three bases of A, C, G and T." };
|
|
180
|
+
const codons = bases.match(/.{3}/g) ?? [];
|
|
181
|
+
const changed = [];
|
|
182
|
+
for (const at of [...new Set(sites)].sort((a, b) => a - b)) {
|
|
183
|
+
const was = codons[at - 1];
|
|
184
|
+
if (was === undefined || was === codon)
|
|
185
|
+
continue;
|
|
186
|
+
codons[at - 1] = codon;
|
|
187
|
+
changed.push({ codon: at, was, now: codon, aminoAcid: instead });
|
|
188
|
+
}
|
|
189
|
+
return { sequence: codons.join(""), changed, problem: null };
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* The routes open to a lab whose host will not do it, with what each costs.
|
|
193
|
+
*
|
|
194
|
+
* @param host - What is held about the host, from `hostPhosphorylation`, or `null` if it is not known.
|
|
195
|
+
* @returns The routes, and a line about where they came from.
|
|
196
|
+
*/
|
|
197
|
+
export function remediesFor(host) {
|
|
198
|
+
const says = [];
|
|
199
|
+
if (host === null) {
|
|
200
|
+
says.push("Nothing here says what this host does, which is not the same as its doing nothing. Find out before choosing a way round something that may not be a problem.");
|
|
201
|
+
}
|
|
202
|
+
else if (host.secretoryKinase === "yes") {
|
|
203
|
+
says.push(`${host.host} is held to have the kinase, so there may be nothing to work round. Measure what you get before changing anything.`);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
says.push(`${host.host}: ${host.says}`);
|
|
207
|
+
says.push("None of these is recommended over another. Which suits depends on what the lab has, which nothing here knows.");
|
|
208
|
+
}
|
|
209
|
+
return { routes: [...REMEDIES], says };
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The working behind a phosphomimetic: what changed, and what it does and does not reproduce.
|
|
213
|
+
*
|
|
214
|
+
* @param made - What `phosphomimetic` gave.
|
|
215
|
+
* @returns The workings. Empty if nothing could be changed.
|
|
216
|
+
*/
|
|
217
|
+
export function phosphomimeticWorking(made) {
|
|
218
|
+
if (made.problem !== null || made.swapped.length === 0)
|
|
219
|
+
return [];
|
|
220
|
+
const round = (value) => value.toLocaleString("en-US", { maximumFractionDigits: 2 });
|
|
221
|
+
const out = [{
|
|
222
|
+
of: "what the swap changes",
|
|
223
|
+
comes: made.isoelectric === null ? `${made.swapped.length} residues` : `pH ${made.isoelectric.before.toFixed(2)} → ${made.isoelectric.after.toFixed(2)}`,
|
|
224
|
+
kind: "exact",
|
|
225
|
+
steps: [
|
|
226
|
+
`${made.swapped.length} ${made.swapped.length === 1 ? "residue" : "residues"} changed: ${made.swapped.map((one) => `${one.was}${one.at}${one.now}`).join(", ")}.`,
|
|
227
|
+
...(made.weight === null ? [] : [`The weight goes from ${round(made.weight.before)} to ${round(made.weight.after)} Da, which is ${round(Math.abs(made.weight.after - made.weight.before))} Da and not something a gel will show.`]),
|
|
228
|
+
...(made.isoelectric === null ? [] : [`The pH it carries no net charge at goes from ${made.isoelectric.before.toFixed(2)} to ${made.isoelectric.after.toFixed(2)}. That is the figure this really changes, and it is why a mimetic is worth trying at all.`]),
|
|
229
|
+
],
|
|
230
|
+
rests: "What is computed here is the sequence and what the sequence comes to. Whether a glutamate does the job a phosphoserine did is not a question a sequence can answer: it carries about half the charge, in a smaller group of a different shape, and where a cluster of phosphoserines binds calcium the shape is part of the work. This is a way of asking whether charge alone is enough.",
|
|
231
|
+
}];
|
|
232
|
+
return out;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AG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,wCAAwC,CAAC,CAAC;gBACnO,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,gDAAgD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,2FAA2F,CAAC,CAAC;aAC9P;YACD,KAAK,EAAE,2XAA2X;SACnY,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,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" | "codons" | "assembly" | "verify";
|
|
5
|
+
export type DeskTool = "sequences" | "primers" | "codons" | "construct" | "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,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.tsx"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK5D,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AASjE,qGAAqG;AACrG,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEhG,gCAAgC;AAChC,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAA0F,CAAC;AAUrJ;;;;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,sCAqB5M"}
|
package/dist/tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
/** Getting to a tool: from the instrument it is used at, or from a list of them all. */
|
|
4
|
-
import { useState } from "react";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
5
|
import { useLab } from "@biolibs/bionet-react";
|
|
6
6
|
import { DigestTool } from "./digest-tool.js";
|
|
7
7
|
import { InductionTool } from "./induce-bench.js";
|
|
@@ -9,6 +9,7 @@ import { PcrTool } from "./pcr-tool.js";
|
|
|
9
9
|
import { instrumentFor, toolFor } from "./run.js";
|
|
10
10
|
import { LigationTool } from "./ligate-bench.js";
|
|
11
11
|
import { AssemblyTool } from "./assembly-bench.js";
|
|
12
|
+
import { FusionTool } from "./fusion-bench.js";
|
|
12
13
|
import { CodonTool } from "./codon-bench.js";
|
|
13
14
|
import { VerifyTool } from "./verify-bench.js";
|
|
14
15
|
import { PrimerTool } from "./primer-bench.js";
|
|
@@ -50,11 +51,14 @@ export function InstrumentTool({ place, onDone }) {
|
|
|
50
51
|
export function Tools({ tool: first = "pcr", views = {} }) {
|
|
51
52
|
const lab = useLab()?.lab;
|
|
52
53
|
const [tool, setTool] = useState(first);
|
|
54
|
+
// Followed rather than read once, so that something elsewhere in the window — a list of the work
|
|
55
|
+
// to be done, say — can send somebody to the tool that would carry a step out.
|
|
56
|
+
useEffect(() => { setTool(first); }, [first]);
|
|
53
57
|
if (lab === null || lab === undefined)
|
|
54
58
|
return null;
|
|
55
59
|
const shown = views[tool];
|
|
56
|
-
const names = [["sequences", "Sequences"], ["primers", "Primers"], ["codons", "Codons"], ["assembly", "Assembly"], ["verify", "Check"], ...Object.keys(TOOL_NAMES).map((one) => [one, TOOL_NAMES[one]])];
|
|
57
|
-
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, {})
|
|
60
|
+
const names = [["sequences", "Sequences"], ["primers", "Primers"], ["codons", "Codons"], ["construct", "Construct"], ["assembly", "Assembly"], ["verify", "Check"], ...Object.keys(TOOL_NAMES).map((one) => [one, TOOL_NAMES[one]])];
|
|
61
|
+
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 === "construct" ? _jsx(FusionTool, {}) : tool === "assembly" ? _jsx(AssemblyTool, {}) : tool === "codons" ? _jsx(CodonTool, {}) : tool === "verify" ? _jsx(VerifyTool, {})
|
|
58
62
|
: tool === "primers" ? _jsx(PrimerTool, { onPcr: () => setTool("pcr") })
|
|
59
63
|
: _jsx(Tool, { tool: tool, instrument: instrumentFor(lab, tool) }, tool))] }));
|
|
60
64
|
}
|
package/dist/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,wFAAwF;AACxF,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,wFAAwF;AACxF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAiB,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C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AC,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"}
|
package/dist/work.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Step } from "./ordering.js";
|
|
2
|
+
/**
|
|
3
|
+
* The lab's open proposals as one piece of work: in order, in chains, with what can start now.
|
|
4
|
+
*
|
|
5
|
+
* @param props - `onOpen`, if given, offers a way to go to the tool that would carry a step out,
|
|
6
|
+
* and is handed the proposal.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { WorkToDo } from "@biolibs/bionet-tools";
|
|
11
|
+
*
|
|
12
|
+
* <WorkToDo onOpen={(plan) => goToTool(plan.kind)} />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function WorkToDo({ onOpen }?: {
|
|
16
|
+
onOpen?: (plan: Step["plan"]) => void;
|
|
17
|
+
}): import("react").JSX.Element | null;
|
|
18
|
+
//# sourceMappingURL=work.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work.d.ts","sourceRoot":"","sources":["../src/work.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAA4D,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AASpG;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAE;IAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;CAAO,sCAwRlF"}
|
package/dist/work.js
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Every open proposal, read as one piece of work rather than as a pile of cards.
|
|
5
|
+
*
|
|
6
|
+
* The tools each show the proposals for their own machine, which is right when somebody is standing
|
|
7
|
+
* at that machine. It is no use at all for seeing where a build has got to: eleven proposals spread
|
|
8
|
+
* over four tabs, in the order they happened to be made, with nothing saying which comes first or
|
|
9
|
+
* what is waiting on what. This is the other view — the whole of it, in order, in chains.
|
|
10
|
+
*
|
|
11
|
+
* It asserts nothing. Everything here comes from `planOfWork`, which works the order out from what
|
|
12
|
+
* each proposal makes and what each one needs, so what is drawn cannot drift from what is true.
|
|
13
|
+
*/
|
|
14
|
+
import { useState } from "react";
|
|
15
|
+
import { useAct, useLab } from "@biolibs/bionet-react";
|
|
16
|
+
import { Glossed } from "@biolibs/glossary-react";
|
|
17
|
+
import { FILED_UNDER, UNFILED, planOfWork, saysWork } from "./ordering.js";
|
|
18
|
+
import { protocolText, protocolsFor } from "./protocol.js";
|
|
19
|
+
/** What a step is called, by what kind of run it is. */
|
|
20
|
+
const CALLED = {
|
|
21
|
+
pcr: "Copy it", digest: "Cut it", ligation: "Join it", assembly: "Build the ring",
|
|
22
|
+
transformation: "Put it into a host", induction: "Grow it and look for the protein",
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The lab's open proposals as one piece of work: in order, in chains, with what can start now.
|
|
26
|
+
*
|
|
27
|
+
* @param props - `onOpen`, if given, offers a way to go to the tool that would carry a step out,
|
|
28
|
+
* and is handed the proposal.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* import { WorkToDo } from "@biolibs/bionet-tools";
|
|
33
|
+
*
|
|
34
|
+
* <WorkToDo onOpen={(plan) => goToTool(plan.kind)} />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export function WorkToDo({ onOpen } = {}) {
|
|
38
|
+
const lab = useLab()?.lab;
|
|
39
|
+
const act = useAct();
|
|
40
|
+
// Which project is being looked at, or null for all of them at once.
|
|
41
|
+
const [only, setOnly] = useState(null);
|
|
42
|
+
const [filing, setFiling] = useState(null);
|
|
43
|
+
const [into, setInto] = useState("");
|
|
44
|
+
// Writing the method out, and taking one somebody else wrote.
|
|
45
|
+
const [method, setMethod] = useState(null);
|
|
46
|
+
// The sheet to carry to a bench, which is a different thing from the method: one is for another
|
|
47
|
+
// lab's software to read, the other for a person standing up with gloves on.
|
|
48
|
+
const [sheet, setSheet] = useState(null);
|
|
49
|
+
const [taking, setTaking] = useState("");
|
|
50
|
+
const [told, setTold] = useState(null);
|
|
51
|
+
if (lab === null || lab === undefined)
|
|
52
|
+
return null;
|
|
53
|
+
const whole = planOfWork(lab);
|
|
54
|
+
const shown = only === null ? undefined : whole.projects.find((one) => one.name === only);
|
|
55
|
+
// Looking at one project shows its chains and its steps, and nothing of anybody else's.
|
|
56
|
+
const work = shown === undefined ? whole : (() => {
|
|
57
|
+
const mine = new Set(shown.order.map((one) => one.plan.plan));
|
|
58
|
+
return {
|
|
59
|
+
...whole, threads: shown.threads, order: shown.order, ready: shown.ready,
|
|
60
|
+
held: shown.order.filter((one) => one.held !== null),
|
|
61
|
+
// What to get first is this project's, not the lab's: showing another project's missing part
|
|
62
|
+
// here would have somebody ordering something their own work does not need.
|
|
63
|
+
toGet: whole.toGet.flatMap((one) => {
|
|
64
|
+
const forSteps = one.forSteps.filter((each) => mine.has(each));
|
|
65
|
+
return forSteps.length === 0 ? [] : [{ ...one, forSteps }];
|
|
66
|
+
}),
|
|
67
|
+
tangled: whole.tangled.filter((one) => mine.has(one)),
|
|
68
|
+
};
|
|
69
|
+
})();
|
|
70
|
+
const said = saysWork(whole);
|
|
71
|
+
const projects = whole.projects;
|
|
72
|
+
const filedAs = (plan) => {
|
|
73
|
+
const says = plan.fields[FILED_UNDER];
|
|
74
|
+
return typeof says === "string" && says.trim() !== "" ? says.trim() : UNFILED;
|
|
75
|
+
};
|
|
76
|
+
const asASheet = () => {
|
|
77
|
+
const sheets = protocolsFor(lab, { ...(only === null || only === UNFILED ? {} : { project: only }) });
|
|
78
|
+
setSheet(sheets.length === 0 ? null : sheets.map(protocolText).join("\n\n---\n\n"));
|
|
79
|
+
};
|
|
80
|
+
const writeOut = async () => {
|
|
81
|
+
const answer = await act("publishMethod", { ...(only === null ? {} : { project: only }) });
|
|
82
|
+
setTold(answer.ok ? null : answer.error);
|
|
83
|
+
setMethod(answer.ok ? JSON.stringify(answer.result, null, 2) : null);
|
|
84
|
+
};
|
|
85
|
+
const take = async () => {
|
|
86
|
+
const answer = await act("takeMethod", { method: taking, ...(only === null || only === UNFILED ? {} : { project: only }) });
|
|
87
|
+
if (!answer.ok) {
|
|
88
|
+
setTold(answer.error);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const got = answer.result;
|
|
92
|
+
setTaking("");
|
|
93
|
+
setTold(`${got.proposed.length} ${got.proposed.length === 1 ? "step is" : "steps are"} proposed here.`
|
|
94
|
+
+ (got.missing.length === 0 ? "" : ` ${got.missing.map((one) => one.name).join(" and ")} has to be got first.`)
|
|
95
|
+
+ (got.alive.length === 0 ? "" : ` ${got.alive.map((one) => one.name).join(" and ")} is alive and cannot be sent: make your own.`));
|
|
96
|
+
};
|
|
97
|
+
const file = async (plan, name) => {
|
|
98
|
+
await act("setField", { on: "plan", id: plan, field: FILED_UNDER, value: name.trim() === "" ? null : name.trim() });
|
|
99
|
+
setFiling(null);
|
|
100
|
+
setInto("");
|
|
101
|
+
};
|
|
102
|
+
const person = (key) => lab.roster.find((one) => one.key === key)?.person ?? "a device";
|
|
103
|
+
const partName = (checksum) => lab.parts.find((one) => one.checksum === checksum)?.name ?? "a part";
|
|
104
|
+
const tubeName = (item) => {
|
|
105
|
+
const held = lab.items.find((one) => one.item === item);
|
|
106
|
+
if (held === undefined)
|
|
107
|
+
return "a tube";
|
|
108
|
+
return held.part === null ? lab.strains.find((one) => one.strain === held.strain)?.name ?? "a culture" : partName(held.part);
|
|
109
|
+
};
|
|
110
|
+
const stepName = (plan) => CALLED[plan.kind] ?? plan.kind;
|
|
111
|
+
/**
|
|
112
|
+
* Where a step sits in its own piece of work.
|
|
113
|
+
*
|
|
114
|
+
* Counted inside the chain and not across the whole lot, which is safe because a chain is every
|
|
115
|
+
* step joined to every other by what they make and need: a step can only ever wait on one in the
|
|
116
|
+
* same chain. Numbering across all of them would make the numbers in one card jump wherever
|
|
117
|
+
* another chain's steps fell between, for no gain.
|
|
118
|
+
*/
|
|
119
|
+
const at = (id) => {
|
|
120
|
+
const thread = work.threads.find((one) => one.steps.some((step) => step.plan.plan === id));
|
|
121
|
+
return (thread?.steps.findIndex((step) => step.plan.plan === id) ?? 0) + 1;
|
|
122
|
+
};
|
|
123
|
+
const why = (step) => {
|
|
124
|
+
if (step.held === null)
|
|
125
|
+
return _jsx("span", { className: "good", children: "could be done now" });
|
|
126
|
+
if (step.held.why === "a step before it") {
|
|
127
|
+
return _jsxs(_Fragment, { children: ["waiting on ", step.held.steps.map((one) => `step ${at(one)}`).join(" and ")] });
|
|
128
|
+
}
|
|
129
|
+
if (step.held.why === "something nobody is making") {
|
|
130
|
+
return _jsxs("span", { className: "attention", children: [step.held.parts.map((one) => partName(one)).join(" and "), " has to be ordered or made first"] });
|
|
131
|
+
}
|
|
132
|
+
return _jsxs("span", { className: "attention", children: [step.held.tubes.map(tubeName).join(" and "), " has been retired or run short"] });
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Giving the work to somebody else, and taking somebody's.
|
|
136
|
+
*
|
|
137
|
+
* Shown whether or not this lab has any work of its own, because a lab taking a method for the
|
|
138
|
+
* first time has none — which is exactly the lab that needs this, and the one that would have
|
|
139
|
+
* found nothing here if it were only drawn beside work that already existed.
|
|
140
|
+
*/
|
|
141
|
+
const crossing = (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Giving it to somebody else" }), _jsx("p", { className: "small", children: _jsx(Glossed, { text: "A method is this plan written so another lab can carry it out: every tube replaced by the checksum of what is in it, which is the one name two labs that have never spoken already agree on." }) }), _jsx("p", { className: "dim small", children: "Two things cannot be sent, and it says so rather than pretending. Anything alive: a strain is this lab\u2019s own, so whoever follows it makes their own. And a starting molecule\u2019s sequence, if a keeper chose not to publish it \u2014 then it says which molecules are needed and not what they are." }), work.order.length > 0 && (_jsxs("div", { className: "row tight", children: [_jsxs("button", { type: "button", onClick: () => void writeOut(), children: ["Write ", only === null ? "it all" : only, " out"] }), method !== null && _jsx("button", { type: "button", className: "quiet", onClick: () => setMethod(null), children: "Hide it" })] })), method !== null && _jsx("textarea", { className: "method", value: method, readOnly: true, rows: 12, "aria-label": "The method, to give to somebody", onFocus: (event) => event.currentTarget.select() }), _jsx("p", { className: "voice", children: "Taking one" }), _jsxs("form", { className: "stack", onSubmit: (event) => { event.preventDefault(); void take(); }, children: [_jsxs("label", { children: ["A method somebody published", _jsx("textarea", { value: taking, onChange: (event) => setTaking(event.target.value), rows: 4, spellCheck: false, placeholder: "Paste it here", "aria-label": "A method to take" })] }), _jsx("div", { className: "row", children: _jsx("button", { type: "submit", disabled: taking.trim() === "", children: "Propose its steps here" }) })] }), _jsx("p", { className: "dim small", children: "Nothing is used and nothing is recorded as done: what lands is proposals, as if somebody here had made them. A molecule it needs that this lab has never heard of is said rather than guessed at." }), told !== null && _jsx("p", { className: "small", role: "status", children: told })] }));
|
|
142
|
+
if (work.order.length === 0 && work.tangled.length === 0) {
|
|
143
|
+
return (_jsxs("div", { className: "bionet work", children: [_jsxs("section", { className: "card", children: [_jsx("h2", { children: "The work" }), _jsx("p", { className: "empty", children: "Nothing is proposed here. A proposal is a run somebody could carry out, and a lab member or its adviser makes one at the tool that would do it. Several together are read as one piece of work." })] }), work.order.length > 0 && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Taking it to the bench" }), _jsx("p", { className: "small", children: "The same work as a sheet to print or carry: what to fetch, what to set a machine to, what to do, and what to record afterwards." }), _jsx("p", { className: "dim small", children: "Every number on it \u2014 a volume, a temperature, a time \u2014 is one somebody set or one the lab\u2019s own tools worked out. Nothing is filled in to make it look finished: what a plan does not say is listed under each step instead, so the hole is found standing at a bench and not halfway through." }), _jsxs("div", { className: "row tight", children: [_jsxs("button", { type: "button", onClick: asASheet, children: ["Write ", only === null ? "it all" : only, " as a protocol"] }), sheet !== null && _jsx("button", { type: "button", className: "quiet", onClick: () => setSheet(null), children: "Hide it" })] }), sheet !== null && _jsx("textarea", { className: "method sheet", value: sheet, readOnly: true, rows: 18, "aria-label": "The protocol, to print or carry", onFocus: (event) => event.currentTarget.select() })] })), crossing] }));
|
|
144
|
+
}
|
|
145
|
+
return (_jsxs("div", { className: "bionet work", children: [_jsxs("section", { className: "card", children: [_jsx("h2", { children: "The work" }), _jsx("p", { className: "small", children: _jsx(Glossed, { text: "Each step is a proposed run: nothing has been used and nothing is recorded as done until somebody carries it out and says so." }) }), said.map((one) => _jsx("p", { className: "small", children: one }, one)), projects.length > 1 && (_jsxs("div", { className: "row tight pick", role: "tablist", "aria-label": "Projects", children: [_jsx("button", { type: "button", role: "tab", "aria-selected": only === null, className: only === null ? "" : "quiet", onClick: () => setOnly(null), children: "Everything" }), projects.map((one) => (_jsxs("button", { type: "button", role: "tab", "aria-selected": only === one.name, className: only === one.name ? "" : "quiet", onClick: () => setOnly(one.name), children: [one.name, one.ready.length > 0 ? ` · ${one.ready.length} ready` : ""] }, one.name)))] })), _jsx("p", { className: "dim small", children: "Nothing here was declared. A proposal says what it expects to make and what it needs, and where one expects what another needs, the first has to happen first. The chain stops at a transformation: what that makes is alive and has no checksum to point at, so what follows is proposed afresh once there is something growing." })] }), work.order.length > 0 && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Taking it to the bench" }), _jsx("p", { className: "small", children: "The same work as a sheet to print or carry: what to fetch, what to set a machine to, what to do, and what to record afterwards." }), _jsx("p", { className: "dim small", children: "Every number on it \u2014 a volume, a temperature, a time \u2014 is one somebody set or one the lab\u2019s own tools worked out. Nothing is filled in to make it look finished: what a plan does not say is listed under each step instead, so the hole is found standing at a bench and not halfway through." }), _jsxs("div", { className: "row tight", children: [_jsxs("button", { type: "button", onClick: asASheet, children: ["Write ", only === null ? "it all" : only, " as a protocol"] }), sheet !== null && _jsx("button", { type: "button", className: "quiet", onClick: () => setSheet(null), children: "Hide it" })] }), sheet !== null && _jsx("textarea", { className: "method sheet", value: sheet, readOnly: true, rows: 18, "aria-label": "The protocol, to print or carry", onFocus: (event) => event.currentTarget.select() })] })), crossing, work.toGet.length > 0 && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "To get first" }), _jsxs("p", { className: "small", children: ["Nothing proposed makes ", work.toGet.length === 1 ? "this" : "these", ", and the lab has no tube of ", work.toGet.length === 1 ? "it" : "them", ". Until ", work.toGet.length === 1 ? "it arrives" : "they arrive", " the steps that need ", work.toGet.length === 1 ? "it" : "them", " cannot start."] }), _jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "What" }), _jsx("th", { children: "For" })] }) }), _jsx("tbody", { children: work.toGet.map((one) => (_jsxs("tr", { children: [_jsxs("td", { children: [partName(one.checksum) === "a part" ? one.name : partName(one.checksum), " ", _jsx("code", { children: one.checksum.slice(0, 12) })] }), _jsx("td", { className: "dim", children: [...new Set(one.forSteps.map((each) => {
|
|
146
|
+
const thread = work.threads.find((who) => who.steps.some((step) => step.plan.plan === each));
|
|
147
|
+
return `step ${at(each)} of ${thread?.name ?? "the work"}`;
|
|
148
|
+
}))].join(", ") })] }, one.checksum))) })] })] })), work.threads.map((thread) => (_jsxs("section", { className: "card", children: [_jsxs("div", { className: "toolhead", children: [_jsx("h2", { children: thread.name }), _jsxs("span", { className: "dim small", children: [[...new Set(thread.steps.map((one) => filedAs(one.plan)))].join(", "), " \u00B7 ", thread.steps.length, " ", thread.steps.length === 1 ? "step" : "steps"] })] }), !thread.clear && _jsx("p", { className: "small attention", children: "Something in this one has to be dealt with before it can be finished." }), _jsx("ol", { className: "steps", children: thread.steps.map((step) => (_jsxs("li", { className: step.held === null ? "ready" : "held", children: [_jsxs("p", { className: "small", children: [_jsxs("strong", { children: [at(step.plan.plan), ". ", stepName(step.plan)] }), _jsxs("span", { className: "dim", children: [" \u00B7 ", step.plan.kind] }), " — ", why(step)] }), _jsxs("p", { className: "dim small", children: ["Uses ", step.plan.inputs.map((one) => `${one.item === undefined ? partName(one.part) : tubeName(one.item)} as ${one.role}`).join(", ") || "nothing the lab holds", step.plan.expects.length > 0 && _jsxs(_Fragment, { children: [", making ", step.plan.expects.map((one) => `${one.name} (${one.length.toLocaleString("en-US")} bp${one.circular ? ", circular" : ""})`).join(" and ")] }), step.plan.expects.length === 0 && (step.plan.kind === "transformation"
|
|
149
|
+
? _jsx(_Fragment, { children: ", making nothing the lab can name: what comes of it is alive" })
|
|
150
|
+
: _jsx(_Fragment, { children: ", making nothing it has declared" })), ". Proposed by ", person(step.plan.by), "."] }), step.plan.note !== null && _jsx("p", { className: "small why", children: step.plan.note }), _jsxs("div", { className: "row tight", children: [onOpen !== undefined && step.held === null && _jsx("button", { type: "button", onClick: () => onOpen(step.plan), children: "Set it up" }), _jsx("button", { type: "button", className: "quiet", onClick: () => { setFiling(filing === step.plan.plan ? null : step.plan.plan); setInto(filedAs(step.plan) === UNFILED ? "" : filedAs(step.plan)); }, children: filedAs(step.plan) === UNFILED ? "File it under…" : "Move it…" }), _jsx("button", { type: "button", className: "quiet", onClick: () => void act("settlePlan", { plan: step.plan.plan }), children: "Set it aside" })] }), filing === step.plan.plan && (_jsxs("form", { className: "row tight", onSubmit: (event) => { event.preventDefault(); void file(step.plan.plan, into); }, children: [_jsx("input", { value: into, onChange: (event) => setInto(event.target.value), maxLength: 200, list: "bionet-projects", placeholder: "Which project", "aria-label": "Which project to file it under" }), _jsx("datalist", { id: "bionet-projects", children: projects.filter((one) => one.filed).map((one) => _jsx("option", { value: one.name }, one.name)) }), _jsx("button", { type: "submit", children: into.trim() === "" ? "Take it out" : "File it" })] }))] }, step.plan.plan))) }), thread.ends.length > 0 && (_jsxs("p", { className: "dim small", children: ["It ends with ", thread.ends.map((one) => partName(one.checksum) === "a part" ? one.name : partName(one.checksum)).join(" and "), "."] }))] }, thread.name + thread.steps[0].plan.plan))), work.tangled.length > 0 && (_jsxs("section", { className: "card", children: [_jsx("h2", { children: "Cannot be ordered" }), _jsxs("p", { className: "small trouble", children: [work.tangled.length, " ", work.tangled.length === 1 ? "proposal depends" : "proposals depend", " on each other in a circle, so there is no order to carry them out in. Set one aside and propose it again."] }), _jsx("ul", { className: "checks", children: work.tangled.map((one) => {
|
|
151
|
+
const plan = lab.plans.find((each) => each.plan === one);
|
|
152
|
+
return _jsxs("li", { className: "stop", children: [stepName(plan), " \u00B7 ", plan.kind, " \u00B7 proposed by ", person(plan.by)] }, one);
|
|
153
|
+
}) })] }))] }));
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=work.js.map
|
package/dist/work.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work.js","sourceRoot":"","sources":["../src/work.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAA2B,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE3D,wDAAwD;AACxD,MAAM,MAAM,GAAqC;IAC/C,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB;IACjF,cAAc,EAAE,oBAAoB,EAAE,SAAS,EAAE,kCAAk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AAC,IAAI,KAAK,GAAG,CAAE,CAAC;4BAC1D,OAAO,cAAc,SAAS,EAAC,MAAM,aAAE,QAAQ,CAAC,IAAI,CAAC,cAAK,IAAI,CAAC,IAAI,0BAAiB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,KAAnF,GAAG,CAAsF,CAAC;wBAC5G,CAAC,CAAC,GACC,IACG,CACX,IACG,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@biolibs/align": "^1.0.0",
|
|
7
7
|
"@biolibs/assembly2": "^1.0.0",
|
|
8
|
-
"@biolibs/bionet": "^1.8.
|
|
8
|
+
"@biolibs/bionet": "^1.8.3",
|
|
9
9
|
"@biolibs/bionet-panels": "^0.3.3",
|
|
10
10
|
"@biolibs/bionet-react": "^0.2.0",
|
|
11
11
|
"@biolibs/cloning": "^1.0.1",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
],
|
|
66
66
|
"type": "module",
|
|
67
67
|
"types": "dist/index.d.ts",
|
|
68
|
-
"version": "0.1.
|
|
68
|
+
"version": "0.1.12"
|
|
69
69
|
}
|