@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.
- package/README.md +139 -2
- package/dist/digest-tool.d.ts +12 -3
- package/dist/digest-tool.d.ts.map +1 -1
- package/dist/digest-tool.js +10 -4
- package/dist/digest-tool.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/induce-bench.d.ts +91 -0
- package/dist/induce-bench.d.ts.map +1 -0
- package/dist/induce-bench.js +201 -0
- package/dist/induce-bench.js.map +1 -0
- package/dist/induce.d.ts +280 -0
- package/dist/induce.d.ts.map +1 -0
- package/dist/induce.js +353 -0
- package/dist/induce.js.map +1 -0
- package/dist/modify.d.ts +197 -0
- package/dist/modify.d.ts.map +1 -0
- package/dist/modify.js +253 -0
- package/dist/modify.js.map +1 -0
- 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/protein.d.ts.map +1 -1
- package/dist/protein.js +3 -1
- package/dist/protein.js.map +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +1 -1
- package/dist/run.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +9 -4
- 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 +145 -0
- package/dist/work.js.map +1 -0
- package/package.json +4 -4
- package/src/digest-tool.tsx +14 -5
- package/src/index.ts +10 -0
- package/src/induce-bench.tsx +406 -0
- package/src/induce.ts +448 -0
- package/src/modify.ts +350 -0
- package/src/ordering.ts +301 -0
- package/src/protein.ts +3 -1
- package/src/run.ts +2 -2
- package/src/tools.tsx +8 -3
- package/src/work.tsx +277 -0
- package/tools.css +11 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @biolibs/bionet-tools
|
|
2
2
|
|
|
3
|
-
The tools a lab uses at the bench, tied to its freezer: its sequences and their maps, PCR, a check digest with its gel,
|
|
3
|
+
The tools a lab uses at the bench, tied to its freezer: its sequences and their maps, PCR, a check digest with its gel, a ligation that joins the pieces back up, an induction that grows a strain to make the protein the whole thing was for, and a check on whether that protein will be modified into something that works. Sequences come in from the SnapGene, GenBank, EMBL and FASTA files a lab already has, with their features. For PCR, choose a template and two primers from the tubes the lab holds, see what they would make, and record the run. The template and primers drop by what was used, and the product becomes a new tube that knows which run made it.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
npm install @biolibs/bionet-tools @biolibs/bionet-panels @biolibs/bionet-react @biolibs/bionet-theme react
|
|
@@ -283,6 +283,143 @@ const run = digestRun(lab, { tube, enzymes: ["EcoRI"] }); // what to record, if
|
|
|
283
283
|
tube and notes which enzymes, what was expected and whether the gel showed it. Pieces can be kept
|
|
284
284
|
as tubes, each a part with the ends the enzymes left.
|
|
285
285
|
|
|
286
|
+
## Growing a culture to get the protein
|
|
287
|
+
|
|
288
|
+
A lab that stops at DNA has stopped one step short of what the DNA was for. An induction is the step
|
|
289
|
+
across: a culture of a strain that carries the construct is grown, fed something that turns the
|
|
290
|
+
promoter on, and a few hours later a lane of a polyacrylamide gel either has a band at the right mass
|
|
291
|
+
or it does not.
|
|
292
|
+
|
|
293
|
+
```ts
|
|
294
|
+
import { inductionCultures, inductionGenes, inductionRun, planInduction } from "@biolibs/bionet-tools";
|
|
295
|
+
|
|
296
|
+
inductionCultures(lab); // the cultures there are, the ones carrying something first
|
|
297
|
+
inductionGenes(lab, culture); // what that strain carries, and the coding sequences marked on each
|
|
298
|
+
|
|
299
|
+
const plan = planInduction(lab, { culture, gene, cds: "casein", cutSignal: true });
|
|
300
|
+
plan.kilodaltons; // what the band should run at
|
|
301
|
+
plan.bands[0].position; // where on the gel, beside plan.ladder
|
|
302
|
+
plan.checksum; // the identity the protein will have in the lab
|
|
303
|
+
|
|
304
|
+
const run = inductionRun(lab, { culture, gene, cds: "casein", inducer: "galactose", concentration: "2%" });
|
|
305
|
+
run.showed; // what to record if the band was there
|
|
306
|
+
run.nothing; // what to record if it was grown and nothing was at that mass
|
|
307
|
+
run.keep; // the protein to add as a part, and the tube of it
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Two things here are unlike every other tool in this package, and both are deliberate.
|
|
311
|
+
|
|
312
|
+
**Nothing that comes out is worked out from what went in.** A PCR's product is the stretch between the
|
|
313
|
+
primers and arithmetic gives it. A culture's product is whatever the cells chose to make, and no
|
|
314
|
+
sequence predicts the yield, the solubility or whether the thing folded. So what is computed is the
|
|
315
|
+
protein the gene *codes for* and the mass its band *should* run at. Whether the band is there is read
|
|
316
|
+
off a gel by a person, and is the one thing recorded. `inductionChecks` says when the gel chosen could
|
|
317
|
+
not answer the question at all — a band below what it separates runs off the front, one above it stays
|
|
318
|
+
in the well, and one that lands on a marker band cannot be told from it.
|
|
319
|
+
|
|
320
|
+
**The protein is not an output of the run.** A run's outputs are DNA — every device that reads the log
|
|
321
|
+
agrees on that, and an entry saying otherwise would be refused by the older ones. So an induction is
|
|
322
|
+
recorded as a run with no outputs that used some of a culture, the same shape a transformation has, and
|
|
323
|
+
the protein is added afterwards as a part in its own right. The run names it in its settings by the
|
|
324
|
+
checksum that part will have, which `inducedBy` reads back: so a device that was not there when it
|
|
325
|
+
happened arrives at the same answer from the log alone, without a new kind of entry.
|
|
326
|
+
|
|
327
|
+
## Whether the protein will actually work
|
|
328
|
+
|
|
329
|
+
A band of the right mass is not the same as a protein that does its job, and for a milk protein the
|
|
330
|
+
difference is the whole project. Casein builds a micelle — which is what makes it behave like cheese
|
|
331
|
+
rather than like dissolved protein — through clusters of phosphorylated serines binding calcium. A
|
|
332
|
+
host can make casein of exactly the right mass, giving exactly the right band, that will not do the
|
|
333
|
+
job, because the kinase that puts the phosphates on is one the host does not have.
|
|
334
|
+
|
|
335
|
+
```ts
|
|
336
|
+
import { comparedWithKnown, hostPhosphorylation, phosphoSites, phosphoWorking } from "@biolibs/bionet-tools";
|
|
337
|
+
|
|
338
|
+
const found = phosphoSites(casein.sequence);
|
|
339
|
+
found.sites.map((one) => [one.at, one.by, one.round]);
|
|
340
|
+
// [[30, "S-x-E", 3], [32, "S-x-E", 2], [33, "S-x-E", 1], [34, "S-x-E", 1], [50, "S-x-E", 1]]
|
|
341
|
+
|
|
342
|
+
comparedWithKnown(found.sites.map((one) => one.at), [30, 32, 33, 34, 50]).caught; // 1
|
|
343
|
+
hostPhosphorylation("Pichia pastoris GS115")?.secretoryKinase; // "not known"
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
Two things come back and they are different in kind, which is why they are worked out separately.
|
|
347
|
+
|
|
348
|
+
**The sites are a rule over the sequence.** The kinase of the secretory pathway reads Ser-x-Glu, and
|
|
349
|
+
once a serine is phosphorylated it carries the negative charge a glutamate does for the one two
|
|
350
|
+
residues before it — so the sites march backwards along a cluster, which is why casein's serines come
|
|
351
|
+
in runs. `round` says which pass found each, and `phosphoWorking` shows the rule and every pass.
|
|
352
|
+
|
|
353
|
+
Applied to bovine β-casein, that rule gives back exactly the five phosphoserines a curator recorded in
|
|
354
|
+
UniProt, and nothing else. A test asserts it, because that agreement is the only reason to believe the
|
|
355
|
+
rule on a sequence nobody has studied — a variant, or the same gene rewritten in another host's
|
|
356
|
+
codons. `comparedWithKnown` is how to make that check for any protein that has a record.
|
|
357
|
+
|
|
358
|
+
**Whether the host has the enzyme is not a rule.** `hostPhosphorylation` says what is generally held
|
|
359
|
+
about the usual expression hosts, says how firmly, and says plainly that it is a claim to go and
|
|
360
|
+
check — which a lab's own literature tools can now do. It is there to stop somebody discovering at the
|
|
361
|
+
end of a month that the protein was never going to be phosphorylated.
|
|
362
|
+
|
|
363
|
+
## Several proposals read as one piece of work
|
|
364
|
+
|
|
365
|
+
A proposal is one run. Nothing in the log says that eleven of them are one build, or which comes
|
|
366
|
+
first — and until this, nothing read them as anything but eleven unrelated cards spread over four
|
|
367
|
+
tabs, in whatever order they happened to be made.
|
|
368
|
+
|
|
369
|
+
But the order is not missing from the data. It is simply never followed. A proposal says what it
|
|
370
|
+
expects to make, each thing with the checksum that would be its identity; another says what it
|
|
371
|
+
needs, and may name a part there is no tube of yet by that same checksum. Where one expects what
|
|
372
|
+
another needs, the first has to happen first.
|
|
373
|
+
|
|
374
|
+
```ts
|
|
375
|
+
import { planOfWork, saysWork } from "@biolibs/bionet-tools";
|
|
376
|
+
|
|
377
|
+
const work = planOfWork(lab);
|
|
378
|
+
saysWork(work);
|
|
379
|
+
// ["4 steps are proposed, in 2 pieces of work.", "2 steps could be carried out now.", …]
|
|
380
|
+
|
|
381
|
+
work.ready.map((one) => one.plan.kind); // what somebody could go and do now
|
|
382
|
+
work.toGet; // what has to be ordered before any of it can start
|
|
383
|
+
work.threads.map((one) => one.name); // ["pWren-CSN2", "a terminator cassette"]
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
```tsx
|
|
387
|
+
import { WorkToDo } from "@biolibs/bionet-tools";
|
|
388
|
+
|
|
389
|
+
<WorkToDo onOpen={(plan) => goToTheToolFor(plan.kind)} />
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Three things are worth knowing about it.
|
|
393
|
+
|
|
394
|
+
**Which project it is for is filed, not derived.** The order is a fact about molecules and is worked
|
|
395
|
+
out; which work belongs together is a decision and is not. Four caseins are four chains in one
|
|
396
|
+
project, and two unrelated projects are also chains — nothing can tell them apart by looking at what
|
|
397
|
+
they make. So `planOfWork` groups by the `project` field on each plan, and anything nobody filed goes
|
|
398
|
+
under `Not filed` rather than being lumped in with somebody else's.
|
|
399
|
+
|
|
400
|
+
```ts
|
|
401
|
+
work.projects.map((one) => [one.name, one.ready.length]);
|
|
402
|
+
// [["Bioprinting", 0], ["Real Vegan Cheese", 2], ["Not filed", 1]]
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
**Nothing else is declared, so nothing can drift.** The order is derived, not asserted. There is no new
|
|
406
|
+
kind of entry, nothing an older device has to understand, and no way for a stated order and the real
|
|
407
|
+
one to disagree.
|
|
408
|
+
|
|
409
|
+
**A chain never crosses into another.** A piece of work is every step joined to every other by what
|
|
410
|
+
they make and need, so a step can only ever wait on one in its own chain. That is what lets the
|
|
411
|
+
steps be numbered within a chain rather than across the lot, and a test asserts it.
|
|
412
|
+
|
|
413
|
+
**The chain stops at a transformation.** What a transformation makes is alive, so it has no checksum
|
|
414
|
+
for a later proposal to point at, and the culture an induction would use does not exist until
|
|
415
|
+
somebody has grown it. The work up to putting a construct into a host can be proposed as one chain;
|
|
416
|
+
what follows is proposed afresh once there is something growing. That is a real limit, and it is
|
|
417
|
+
said in the panel rather than left to be discovered.
|
|
418
|
+
|
|
419
|
+
One thing has to be done for a chain to be possible at all: **a proposal may only name a part the
|
|
420
|
+
lab knows of**, so what an earlier step would make has to be added with `addPart` — no tube, just
|
|
421
|
+
the sequence under a name — before a later step can say it needs it.
|
|
422
|
+
|
|
286
423
|
## The tool
|
|
287
424
|
|
|
288
425
|
```tsx
|
|
@@ -294,7 +431,7 @@ import { InstrumentTool, PcrTool } from "@biolibs/bionet-tools";
|
|
|
294
431
|
<PcrTool /> // or one tool on its own; DigestTool likewise
|
|
295
432
|
```
|
|
296
433
|
|
|
297
|
-
The tools use the lab's hooks and are drawn with the panels' styles, so they go inside a `LabProvider` and a `LabWindow`. `InstrumentTool` opens PCR for a place whose `model` is `thermocycler
|
|
434
|
+
The tools use the lab's hooks and are drawn with the panels' styles, so they go inside a `LabProvider` and a `LabWindow`. `InstrumentTool` opens PCR for a place whose `model` is `thermocycler`, digest and gel for a `gel-station`, a ligation for a `heat-block` and an induction for a `shaking-incubator`, and says so when there is no tool for an instrument yet. `Tools` lists them all, and still records a run at the lab's instrument for that tool if it has placed one.
|
|
298
435
|
|
|
299
436
|
The tools' own descriptions explain their terms on hover, with a picture, through
|
|
300
437
|
[`@biolibs/glossary-react`](../glossary-react). Import its `glossary.css` once as well.
|
package/dist/digest-tool.d.ts
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import type { Band } from "@biolibs/gel";
|
|
2
2
|
/**
|
|
3
|
-
* A gel, drawn: a
|
|
3
|
+
* A gel, drawn: a marker in one lane and the sample in the next.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* The same picture serves agarose and acrylamide, because reading one is reading the other: bands
|
|
6
|
+
* down a lane, read against a lane of known sizes. What differs is what the numbers are, and that
|
|
7
|
+
* has to be said rather than assumed, or a screen reader is told base pairs about a protein.
|
|
8
|
+
*
|
|
9
|
+
* @param props - `ladder` and `bands` are what a plan gave; `name` is what the sample is called;
|
|
10
|
+
* `unit` is what the sizes are in, base pairs unless it says otherwise; `marker` names the first
|
|
11
|
+
* lane, and `says` describes what the lane shows, for anybody who cannot see it.
|
|
6
12
|
*/
|
|
7
|
-
export declare function Gel({ ladder, bands, name }: {
|
|
13
|
+
export declare function Gel({ ladder, bands, name, unit, marker, says }: {
|
|
8
14
|
ladder: readonly Band[];
|
|
9
15
|
bands: readonly Band[];
|
|
10
16
|
name: string;
|
|
17
|
+
unit?: string;
|
|
18
|
+
marker?: string;
|
|
19
|
+
says?: string;
|
|
11
20
|
}): import("react").JSX.Element;
|
|
12
21
|
/**
|
|
13
22
|
* Cut a tube's molecule in silico, see the gel it should give, and record whether the real gel matched.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest-tool.d.ts","sourceRoot":"","sources":["../src/digest-tool.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOzC
|
|
1
|
+
{"version":3,"file":"digest-tool.d.ts","sourceRoot":"","sources":["../src/digest-tool.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOzC;;;;;;;;;;GAUG;AACH,wBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAmB,EAAE,MAAiB,EAAE,IAAI,EAAE,EAAE;IACzF,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC;IAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAC9G,+BAyBA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,EAAE,UAAiB,EAAE,MAAM,EAAE,EAAE;IAAE,UAAU,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,sCA4IlI"}
|
package/dist/digest-tool.js
CHANGED
|
@@ -13,17 +13,23 @@ import { Glossed } from "@biolibs/glossary-react";
|
|
|
13
13
|
import { cutters, enzymeNamed } from "./digest.js";
|
|
14
14
|
import { digestRun, digestTubes } from "./run.js";
|
|
15
15
|
/**
|
|
16
|
-
* A gel, drawn: a
|
|
16
|
+
* A gel, drawn: a marker in one lane and the sample in the next.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* The same picture serves agarose and acrylamide, because reading one is reading the other: bands
|
|
19
|
+
* down a lane, read against a lane of known sizes. What differs is what the numbers are, and that
|
|
20
|
+
* has to be said rather than assumed, or a screen reader is told base pairs about a protein.
|
|
21
|
+
*
|
|
22
|
+
* @param props - `ladder` and `bands` are what a plan gave; `name` is what the sample is called;
|
|
23
|
+
* `unit` is what the sizes are in, base pairs unless it says otherwise; `marker` names the first
|
|
24
|
+
* lane, and `says` describes what the lane shows, for anybody who cannot see it.
|
|
19
25
|
*/
|
|
20
|
-
export function Gel({ ladder, bands, name }) {
|
|
26
|
+
export function Gel({ ladder, bands, name, unit = "base pairs", marker = "ladder", says }) {
|
|
21
27
|
const [top, height] = [26, 250];
|
|
22
28
|
const lane = (x, drawn, tone, labelled) => drawn.map((band, at) => {
|
|
23
29
|
const y = top + 10 + band.position * (height - 24);
|
|
24
30
|
return (_jsxs("g", { children: [_jsx("rect", { x: x, y: y - 1.6, width: 54, height: 3.2, rx: 1.2, fill: tone, opacity: 0.3 + 0.7 * band.intensity }), _jsxs("text", { x: labelled === "left" ? x - 6 : x + 60, y: y + 3.5, textAnchor: labelled === "left" ? "end" : "start", className: labelled === "left" ? "mark" : "size", children: [band.sizes.length > 1 ? `${band.sizes.join(" + ")}` : band.size, band.unresolved ? " *" : ""] })] }, `${x} ${at}`));
|
|
25
31
|
});
|
|
26
|
-
return (_jsxs("svg", { className: "gel", viewBox: "0 0 330 290", role: "img", "aria-label": `A gel: a
|
|
32
|
+
return (_jsxs("svg", { className: "gel", viewBox: "0 0 330 290", role: "img", "aria-label": says ?? `A gel: a ${marker} beside ${name}, showing bands at ${bands.flatMap((band) => band.sizes).join(", ")} ${unit}`, children: [_jsx("rect", { x: 52, y: top, width: 176, height: height, rx: 6, className: "slab" }), _jsx("text", { x: 89, y: 16, textAnchor: "middle", className: "lane", children: marker }), _jsx("text", { x: 177, y: 16, textAnchor: "middle", className: "lane", children: name.length > 16 ? `${name.slice(0, 15)}…` : name }), _jsx("rect", { x: 62, y: top + 4, width: 54, height: 4, className: "well" }), _jsx("rect", { x: 150, y: top + 4, width: 54, height: 4, className: "well" }), lane(62, ladder, "var(--bionet-dim)", "left"), lane(150, bands, "var(--bionet-held)", "right")] }));
|
|
27
33
|
}
|
|
28
34
|
/**
|
|
29
35
|
* Cut a tube's molecule in silico, see the gel it should give, and record whether the real gel matched.
|
package/dist/digest-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest-tool.js","sourceRoot":"","sources":["../src/digest-tool.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;GAKG;A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CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
* - `pcr-bench.tsx` — a PCR at the machine: what is beside the scene, and what the scene is told to show
|
|
17
17
|
* - `pcr-working.ts` — the working behind what the PCR tool says: each figure with the steps that give it
|
|
18
18
|
* - `protein.ts` — the protein a gene codes for, and what its sequence says about it
|
|
19
|
+
* - `induce.ts` — growing a strain to express what was put into it, and the mass its band should run at
|
|
20
|
+
* - `modify.ts` — which residues would be phosphorylated, and whether the host has the enzyme to do it
|
|
21
|
+
* - `induce-bench.tsx` — an induction at the shaking incubator, with the protein gel that answers it
|
|
19
22
|
* - `verify-bench.tsx` — checking a construct against the design at a desk, saying what was not covered
|
|
20
23
|
* - `verify.ts` — a sequencing read against the design it was meant to be, and what each difference costs
|
|
21
24
|
* - `codons.ts` — a gene rewritten in a host's codons, from usage counted over that host's own genes
|
|
@@ -35,6 +38,8 @@
|
|
|
35
38
|
* - `primer-working.ts` — the working behind a design: the melting temperature's sum, the GC count, the bases that pair
|
|
36
39
|
* - `primer-bench.tsx` — designing primers at a desk: the panel, and the template with the pair marked on it for a scene
|
|
37
40
|
* - `plans.tsx` — runs that have been proposed, at the tool that would carry them out
|
|
41
|
+
* - `ordering.ts` — those proposals read as one piece of work: what order, what can start, what is waiting
|
|
42
|
+
* - `work.tsx` — that work drawn: the chains, in order, with what has to be got first
|
|
38
43
|
* - `tools.tsx` — getting to one: from an instrument, or from a list of them all
|
|
39
44
|
*
|
|
40
45
|
* The tools are drawn with the styles of `@biolibs/bionet-panels` and belong inside its `LabWindow`.
|
|
@@ -50,6 +55,9 @@ export * from "./digest-tool.js";
|
|
|
50
55
|
export * from "./pcr-working.js";
|
|
51
56
|
export * from "./digest-working.js";
|
|
52
57
|
export * from "./protein.js";
|
|
58
|
+
export * from "./induce.js";
|
|
59
|
+
export * from "./modify.js";
|
|
60
|
+
export * from "./induce-bench.js";
|
|
53
61
|
export * from "./verify.js";
|
|
54
62
|
export * from "./verify-bench.js";
|
|
55
63
|
export * from "./codons.js";
|
|
@@ -65,6 +73,8 @@ export * from "./working.js";
|
|
|
65
73
|
export * from "./map.js";
|
|
66
74
|
export * from "./sequences-tool.js";
|
|
67
75
|
export * from "./plans.js";
|
|
76
|
+
export * from "./ordering.js";
|
|
77
|
+
export * from "./work.js";
|
|
68
78
|
export * from "./tools.js";
|
|
69
79
|
export * from "./pcr-bench.js";
|
|
70
80
|
export * from "./primer-design.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
* - `pcr-bench.tsx` — a PCR at the machine: what is beside the scene, and what the scene is told to show
|
|
17
17
|
* - `pcr-working.ts` — the working behind what the PCR tool says: each figure with the steps that give it
|
|
18
18
|
* - `protein.ts` — the protein a gene codes for, and what its sequence says about it
|
|
19
|
+
* - `induce.ts` — growing a strain to express what was put into it, and the mass its band should run at
|
|
20
|
+
* - `modify.ts` — which residues would be phosphorylated, and whether the host has the enzyme to do it
|
|
21
|
+
* - `induce-bench.tsx` — an induction at the shaking incubator, with the protein gel that answers it
|
|
19
22
|
* - `verify-bench.tsx` — checking a construct against the design at a desk, saying what was not covered
|
|
20
23
|
* - `verify.ts` — a sequencing read against the design it was meant to be, and what each difference costs
|
|
21
24
|
* - `codons.ts` — a gene rewritten in a host's codons, from usage counted over that host's own genes
|
|
@@ -35,6 +38,8 @@
|
|
|
35
38
|
* - `primer-working.ts` — the working behind a design: the melting temperature's sum, the GC count, the bases that pair
|
|
36
39
|
* - `primer-bench.tsx` — designing primers at a desk: the panel, and the template with the pair marked on it for a scene
|
|
37
40
|
* - `plans.tsx` — runs that have been proposed, at the tool that would carry them out
|
|
41
|
+
* - `ordering.ts` — those proposals read as one piece of work: what order, what can start, what is waiting
|
|
42
|
+
* - `work.tsx` — that work drawn: the chains, in order, with what has to be got first
|
|
38
43
|
* - `tools.tsx` — getting to one: from an instrument, or from a list of them all
|
|
39
44
|
*
|
|
40
45
|
* The tools are drawn with the styles of `@biolibs/bionet-panels` and belong inside its `LabWindow`.
|
|
@@ -50,6 +55,9 @@ export * from "./digest-tool.js";
|
|
|
50
55
|
export * from "./pcr-working.js";
|
|
51
56
|
export * from "./digest-working.js";
|
|
52
57
|
export * from "./protein.js";
|
|
58
|
+
export * from "./induce.js";
|
|
59
|
+
export * from "./modify.js";
|
|
60
|
+
export * from "./induce-bench.js";
|
|
53
61
|
export * from "./verify.js";
|
|
54
62
|
export * from "./verify-bench.js";
|
|
55
63
|
export * from "./codons.js";
|
|
@@ -65,6 +73,8 @@ export * from "./working.js";
|
|
|
65
73
|
export * from "./map.js";
|
|
66
74
|
export * from "./sequences-tool.js";
|
|
67
75
|
export * from "./plans.js";
|
|
76
|
+
export * from "./ordering.js";
|
|
77
|
+
export * from "./work.js";
|
|
68
78
|
export * from "./tools.js";
|
|
69
79
|
export * from "./pcr-bench.js";
|
|
70
80
|
export * from "./primer-design.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An induction and its gel, at the shaking incubator.
|
|
3
|
+
*
|
|
4
|
+
* The incubator shows a temperature, a speed and a time. It shows nothing of what the cells are
|
|
5
|
+
* doing, and nothing in this file pretends it does: the first three views are what is there to be
|
|
6
|
+
* read off the machine, the fourth is the gene the operator has to picture being read, and the fifth
|
|
7
|
+
* is the gel, which is where the answer actually comes from.
|
|
8
|
+
*
|
|
9
|
+
* The one place this tool differs from the others is the last step. A PCR's product is arithmetic,
|
|
10
|
+
* so the bench can offer to keep it. A culture's product is not: the band is there or it is not, and
|
|
11
|
+
* only the person holding the gel knows which. So both buttons record the run, and only one of them
|
|
12
|
+
* goes on to put a protein in the freezer.
|
|
13
|
+
*/
|
|
14
|
+
import { type ReactNode } from "react";
|
|
15
|
+
import { type DrawnMolecule } from "./sequence-file.js";
|
|
16
|
+
/** The views of the incubator, by the same names every instrument's stage uses. */
|
|
17
|
+
export type InductionView = "machine" | "block" | "screen" | "tube" | "result";
|
|
18
|
+
/** What the scene is told to show. It is shaped to be spread onto `InstrumentStage`. */
|
|
19
|
+
export interface InductionStage {
|
|
20
|
+
model: "shaking-incubator";
|
|
21
|
+
name: string;
|
|
22
|
+
view: InductionView;
|
|
23
|
+
onView: (view: InductionView) => void;
|
|
24
|
+
/** What the incubator's display says. */
|
|
25
|
+
screen: {
|
|
26
|
+
text: string;
|
|
27
|
+
lit?: boolean;
|
|
28
|
+
}[];
|
|
29
|
+
/** The clamp the flask is in. */
|
|
30
|
+
well?: {
|
|
31
|
+
row: number;
|
|
32
|
+
column: number;
|
|
33
|
+
};
|
|
34
|
+
/** The gene being expressed, with its coding sequence marked, for the view into the cells. */
|
|
35
|
+
molecule?: DrawnMolecule;
|
|
36
|
+
/** The gel once run: the marker and the sample, for the last view. */
|
|
37
|
+
gel?: {
|
|
38
|
+
lanes: {
|
|
39
|
+
name: string;
|
|
40
|
+
tone: "dim" | "held";
|
|
41
|
+
bands: {
|
|
42
|
+
position: number;
|
|
43
|
+
intensity: number;
|
|
44
|
+
label: string;
|
|
45
|
+
}[];
|
|
46
|
+
}[];
|
|
47
|
+
ran: number;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* An induction and the gel that checks it, at the shaking incubator.
|
|
52
|
+
*
|
|
53
|
+
* @param options - `start` says what to open on, for a tour or a link; `instrument` is the incubator
|
|
54
|
+
* it is grown in, if the lab has one; `onDone` adds a way to leave.
|
|
55
|
+
* @returns `stage`, to spread onto `InstrumentStage` from `@biolibs/bionet-scene`, and `panel`, to
|
|
56
|
+
* put inside it.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* import { useInductionBench } from "@biolibs/bionet-tools";
|
|
61
|
+
*
|
|
62
|
+
* const bench = useInductionBench({ instrument });
|
|
63
|
+
* <InstrumentStage {...bench.stage}>{bench.panel}</InstrumentStage>
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare function useInductionBench({ instrument, onDone, start }?: {
|
|
67
|
+
instrument?: {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
} | null;
|
|
71
|
+
onDone?: () => void;
|
|
72
|
+
/** What to show: the view, the culture and gene chosen, how far the gel starts. Followed whenever it changes. */
|
|
73
|
+
start?: {
|
|
74
|
+
view?: InductionView;
|
|
75
|
+
culture?: string;
|
|
76
|
+
gene?: string;
|
|
77
|
+
cds?: string;
|
|
78
|
+
ran?: number;
|
|
79
|
+
};
|
|
80
|
+
}): {
|
|
81
|
+
stage: InductionStage;
|
|
82
|
+
panel: ReactNode;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* The induction tool on its own, for a lab that has not drawn its room.
|
|
86
|
+
*
|
|
87
|
+
* @param props - `instrument` is the incubator it is grown in, if the lab has one; `start` says what
|
|
88
|
+
* to open on; `onDone` adds a way to leave.
|
|
89
|
+
*/
|
|
90
|
+
export declare function InductionTool(props: Parameters<typeof useInductionBench>[0]): import("react").JSX.Element;
|
|
91
|
+
//# sourceMappingURL=induce-bench.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"induce-bench.d.ts","sourceRoot":"","sources":["../src/induce-bench.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AASrE,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGpE,mFAAmF;AACnF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/E,wFAAwF;AACxF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,mBAAmB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACtC,yCAAyC;IACzC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC1C,iCAAiC;IACjC,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM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