@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.
Files changed (51) hide show
  1. package/README.md +211 -0
  2. package/dist/codons.d.ts +35 -0
  3. package/dist/codons.d.ts.map +1 -1
  4. package/dist/codons.js +55 -0
  5. package/dist/codons.js.map +1 -1
  6. package/dist/fusion-bench.d.ts +62 -0
  7. package/dist/fusion-bench.d.ts.map +1 -0
  8. package/dist/fusion-bench.js +114 -0
  9. package/dist/fusion-bench.js.map +1 -0
  10. package/dist/fusion.d.ts +120 -0
  11. package/dist/fusion.d.ts.map +1 -0
  12. package/dist/fusion.js +176 -0
  13. package/dist/fusion.js.map +1 -0
  14. package/dist/index.d.ts +12 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +12 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/modify.js +4 -4
  19. package/dist/modify.js.map +1 -1
  20. package/dist/ordering.d.ts +147 -0
  21. package/dist/ordering.d.ts.map +1 -0
  22. package/dist/ordering.js +203 -0
  23. package/dist/ordering.js.map +1 -0
  24. package/dist/protocol.d.ts +91 -0
  25. package/dist/protocol.d.ts.map +1 -0
  26. package/dist/protocol.js +278 -0
  27. package/dist/protocol.js.map +1 -0
  28. package/dist/remedy.d.ts +137 -0
  29. package/dist/remedy.d.ts.map +1 -0
  30. package/dist/remedy.js +234 -0
  31. package/dist/remedy.js.map +1 -0
  32. package/dist/tools.d.ts +1 -1
  33. package/dist/tools.d.ts.map +1 -1
  34. package/dist/tools.js +7 -3
  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 +155 -0
  39. package/dist/work.js.map +1 -0
  40. package/package.json +2 -2
  41. package/src/codons.ts +53 -0
  42. package/src/fusion-bench.tsx +209 -0
  43. package/src/fusion.ts +270 -0
  44. package/src/index.ts +12 -0
  45. package/src/modify.ts +4 -4
  46. package/src/ordering.ts +301 -0
  47. package/src/protocol.ts +332 -0
  48. package/src/remedy.ts +277 -0
  49. package/src/tools.tsx +8 -4
  50. package/src/work.tsx +319 -0
  51. package/tools.css +18 -0
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Putting a promoter, a signal, a gene and a tag together into one coding sequence, and checking
3
+ * that the frame survives it.
4
+ *
5
+ * `assembly-design.ts` is about the *molecules*: which pieces go round a ring and what primers make
6
+ * them fit. This is about the *protein*, and it is a different question with a different way of
7
+ * going wrong. A ring can be built perfectly and give nothing worth having, because what was joined
8
+ * does not read as one chain: a piece whose length is not a whole number of codons shifts
9
+ * everything after it, and the cell reads a different protein with no complaint from anybody. The
10
+ * gel shows a band, the sequencing matches the design, and the design was wrong.
11
+ *
12
+ * That failure is silent, common, and entirely computable, which is the case for doing it here.
13
+ *
14
+ * Three things are checked that nothing else here checks.
15
+ *
16
+ * **The frame at every junction.** Each translated piece is counted, and a junction is in frame
17
+ * only if everything before it comes to a whole number of codons. A piece that is 20 bases long
18
+ * rather than 21 is named, with what it does to everything after it.
19
+ *
20
+ * **A stop where no stop belongs.** The whole thing is translated and read: a stop codon anywhere
21
+ * but the end means the chain finishes early, and that is usually a frame that shifted a piece or
22
+ * two before it.
23
+ *
24
+ * **Where the signal peptide is.** A signal only works at the very beginning of the chain. Putting
25
+ * a tag in front of one is a mistake people make because the tag belongs at the N-terminus and so
26
+ * does the signal, and only one of them can be: the protein is made, and stays inside the cell.
27
+ */
28
+ import type { PartFeature } from "@biolibs/bionet";
29
+ import type { Working } from "./pcr-working.js";
30
+ import type { ToolLab } from "./run.js";
31
+ /** What a piece of a fusion is there to do. */
32
+ export declare const ROLES: readonly ["promoter", "signal", "coding", "tag", "linker", "terminator", "other"];
33
+ /** One of them. */
34
+ export type Role = (typeof ROLES)[number];
35
+ /** One piece to put in, in the order it goes. */
36
+ export interface FusionPiece {
37
+ /** The part, by checksum, where it is one the lab holds. */
38
+ part?: string;
39
+ /** Its bases, where they are given outright: a short linker nobody keeps a tube of. */
40
+ sequence?: string;
41
+ /** What to call it. */
42
+ name?: string;
43
+ /** What it is there to do. */
44
+ as: Role;
45
+ }
46
+ /** One place two pieces meet. */
47
+ export interface Junction {
48
+ /** What is before it and what is after. */
49
+ after: string;
50
+ before: string;
51
+ /** Where it falls, counting bases from 1. */
52
+ at: number;
53
+ /** Whether everything translated before it comes to a whole number of codons. */
54
+ inFrame: boolean;
55
+ /** What it does, said for a person. */
56
+ says: string;
57
+ }
58
+ /** Something a careful person would stop and ask about a fusion before building it. */
59
+ export interface FusionCheck {
60
+ /** `stop` if it will not do what is wanted, `look` if it is only worth a second glance. */
61
+ weight: "stop" | "look";
62
+ /** What to say. */
63
+ says: string;
64
+ /** The short reason, to put beside it. */
65
+ because: string;
66
+ }
67
+ /** A fusion, designed. */
68
+ export interface Fusion {
69
+ /** What to call it. */
70
+ name: string;
71
+ /** The whole thing, promoter and terminator included. */
72
+ sequence: string;
73
+ /** What is marked on it: each piece, where it ended up. */
74
+ features: PartFeature[];
75
+ /** Where the translated stretch lies, counting from 1, or `null` if nothing is translated. */
76
+ coding: {
77
+ from: number;
78
+ to: number;
79
+ } | null;
80
+ /** What it would be read as, with no stop. */
81
+ protein: string;
82
+ /** What is left once a signal peptide at the start is cut off, which is what a lab collects. */
83
+ mature: string | null;
84
+ /** Every place two pieces meet. */
85
+ junctions: Junction[];
86
+ /** What a careful person would ask, the ones worth stopping for first. */
87
+ checks: FusionCheck[];
88
+ /** Why there is nothing to look at, or `null` if there is. */
89
+ problem: string | null;
90
+ }
91
+ /**
92
+ * Put the pieces together and read what comes out.
93
+ *
94
+ * @param lab - The lab, for the parts it holds.
95
+ * @param choice - The pieces in order, and what to call the result.
96
+ * @returns The fusion, with its junctions and everything worth asking about it.
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * import { designFusion } from "@biolibs/bionet-tools";
101
+ *
102
+ * const made = designFusion(lab, { pieces: [
103
+ * { part: aox1, as: "promoter" }, { part: alphaFactor, as: "signal" },
104
+ * { part: casein, as: "coding" }, { sequence: "CACCACCACCACCACCAC", name: "His6", as: "tag" },
105
+ * ] });
106
+ * made.checks.filter((one) => one.weight === "stop");
107
+ * ```
108
+ */
109
+ export declare function designFusion(lab: Pick<ToolLab, "parts">, choice: {
110
+ pieces: readonly FusionPiece[];
111
+ name?: string;
112
+ }): Fusion;
113
+ /**
114
+ * The working behind a fusion: where the frame stands at each junction, and what was read.
115
+ *
116
+ * @param made - What `designFusion` gave.
117
+ * @returns The workings. Empty if there was nothing to design.
118
+ */
119
+ export declare function fusionWorking(made: Fusion): Working[];
120
+ //# sourceMappingURL=fusion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fusion.d.ts","sourceRoot":"","sources":["../src/fusion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAAK,EAAE,WAAW,EAAa,MAAM,iBAAiB,CAAC;AAG9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,+CAA+C;AAC/C,eAAO,MAAM,KAAK,mFAAoF,CAAC;AAEvG,mBAAmB;AACnB,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAK1C,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,EAAE,EAAE,IAAI,CAAC;CACV;AAED,iCAAiC;AACjC,MAAM,WAAW,QAAQ;IACvB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,EA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import { translate } from "@biolibs/seq";
2
+ import { CODON } from "./codons.js";
3
+ /** What a piece of a fusion is there to do. */
4
+ export const ROLES = ["promoter", "signal", "coding", "tag", "linker", "terminator", "other"];
5
+ /** Which roles are part of the protein, and so have to keep the frame. */
6
+ const TRANSLATED = new Set(["signal", "coding", "tag", "linker"]);
7
+ const clean = (bases) => bases.replace(/\s+/g, "").toUpperCase();
8
+ /**
9
+ * Put the pieces together and read what comes out.
10
+ *
11
+ * @param lab - The lab, for the parts it holds.
12
+ * @param choice - The pieces in order, and what to call the result.
13
+ * @returns The fusion, with its junctions and everything worth asking about it.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * import { designFusion } from "@biolibs/bionet-tools";
18
+ *
19
+ * const made = designFusion(lab, { pieces: [
20
+ * { part: aox1, as: "promoter" }, { part: alphaFactor, as: "signal" },
21
+ * { part: casein, as: "coding" }, { sequence: "CACCACCACCACCACCAC", name: "His6", as: "tag" },
22
+ * ] });
23
+ * made.checks.filter((one) => one.weight === "stop");
24
+ * ```
25
+ */
26
+ export function designFusion(lab, choice) {
27
+ const nothing = (problem) => ({ name: choice.name?.trim() || "a fusion", sequence: "", features: [], coding: null, protein: "", mature: null, junctions: [], checks: [], problem });
28
+ if (choice.pieces.length === 0)
29
+ return nothing("A fusion is made of pieces, and none were given.");
30
+ /** Each piece with its bases, whatever it was named by. */
31
+ const pieces = [];
32
+ for (const piece of choice.pieces) {
33
+ const held = piece.part === undefined ? undefined : lab.parts.find((one) => one.checksum === piece.part);
34
+ if (piece.part !== undefined && held === undefined)
35
+ return nothing("A piece names a part the lab does not have.");
36
+ if (held !== undefined && held.kind === "protein")
37
+ return nothing(`${held.name} is a protein. A fusion is built out of DNA.`);
38
+ const bases = clean(piece.sequence ?? held?.sequence ?? "");
39
+ if (bases === "")
40
+ return nothing("A piece has no bases: give a part the lab holds, or write the sequence out.");
41
+ if (!/^[ACGT]+$/.test(bases))
42
+ return nothing(`${piece.name ?? held?.name ?? "A piece"} is written in letters that are not A, C, G and T, and a reading frame cannot be counted through an uncertain base.`);
43
+ pieces.push({ name: piece.name?.trim() || held?.name || `a ${piece.as}`, bases, as: piece.as });
44
+ }
45
+ const sequence = pieces.map((one) => one.bases).join("");
46
+ // Where each piece ended up, which is what gets marked on the part.
47
+ const features = [];
48
+ const junctions = [];
49
+ const checks = [];
50
+ let at = 0;
51
+ let translatedSoFar = 0;
52
+ let codingFrom = null;
53
+ let codingTo = 0;
54
+ for (const [index, piece] of pieces.entries()) {
55
+ features.push({ type: piece.as === "coding" ? "CDS" : piece.as === "signal" ? "sig_peptide" : piece.as,
56
+ label: piece.name, strand: 1, parts: [{ start: at, end: at + piece.bases.length }] });
57
+ if (TRANSLATED.has(piece.as)) {
58
+ if (codingFrom === null)
59
+ codingFrom = at + 1;
60
+ codingTo = at + piece.bases.length;
61
+ // A junction is in frame only if everything translated before it is a whole number of codons.
62
+ if (index > 0 && TRANSLATED.has(pieces[index - 1].as)) {
63
+ const inFrame = translatedSoFar % CODON === 0;
64
+ junctions.push({
65
+ after: pieces[index - 1].name, before: piece.name, at: at + 1, inFrame,
66
+ says: inFrame
67
+ ? `${pieces[index - 1].name} ends on a whole codon, so ${piece.name} is read in frame.`
68
+ : `${translatedSoFar} bases come before this, which is ${translatedSoFar % CODON} past a whole codon, so ${piece.name} and everything after it is read in the wrong frame.`,
69
+ });
70
+ }
71
+ if (piece.bases.length % CODON !== 0) {
72
+ checks.push({
73
+ weight: "stop",
74
+ says: `${piece.name} is ${piece.bases.length} bases, which is not a whole number of codons. It shifts everything after it by ${piece.bases.length % CODON}, and the cell reads a different protein without complaining. Add or drop ${CODON - (piece.bases.length % CODON)} or ${piece.bases.length % CODON} bases.`,
75
+ because: `${piece.bases.length} ÷ 3 leaves ${piece.bases.length % CODON}`,
76
+ });
77
+ }
78
+ translatedSoFar += piece.bases.length;
79
+ }
80
+ at += piece.bases.length;
81
+ }
82
+ // Where things are in the order matters for two of the roles, and the mistakes are classic ones.
83
+ const translatedPieces = pieces.filter((one) => TRANSLATED.has(one.as));
84
+ const signalAt = translatedPieces.findIndex((one) => one.as === "signal");
85
+ if (signalAt > 0) {
86
+ const before = translatedPieces.slice(0, signalAt).map((one) => one.name).join(" and ");
87
+ checks.push({
88
+ weight: "stop",
89
+ says: `${translatedPieces[signalAt].name} is a signal peptide, and one only works at the very start of the chain. ${before} comes before it, so nothing will recognise it: the protein will be made and will stay inside the cell. Put the signal first and the tag after it.`,
90
+ because: `${before} is before the signal`,
91
+ });
92
+ }
93
+ const promoterAt = pieces.findIndex((one) => one.as === "promoter");
94
+ if (promoterAt > 0 && pieces.slice(0, promoterAt).some((one) => TRANSLATED.has(one.as))) {
95
+ checks.push({ weight: "stop", says: `${pieces[promoterAt].name} is a promoter and comes after something that is translated. A promoter goes before what it drives.`, because: "promoter after the coding" });
96
+ }
97
+ const terminatorAt = pieces.findIndex((one) => one.as === "terminator");
98
+ if (terminatorAt >= 0 && pieces.slice(terminatorAt + 1).some((one) => TRANSLATED.has(one.as))) {
99
+ checks.push({ weight: "stop", says: `${pieces[terminatorAt].name} is a terminator and comes before something that is translated. A terminator goes at the end.`, because: "terminator before the coding" });
100
+ }
101
+ if (translatedPieces.length === 0) {
102
+ return { ...nothing("None of these pieces is translated, so there is no protein to read."), sequence, features, name: choice.name?.trim() || "a fusion" };
103
+ }
104
+ // Read it. The whole translated stretch is read as one, which is the point: a frame that shifted
105
+ // shows up here as a stop in the middle, not as a complaint from any one piece.
106
+ const stretch = sequence.slice((codingFrom ?? 1) - 1, codingTo);
107
+ const whole = stretch.slice(0, stretch.length - (stretch.length % CODON));
108
+ const read = String(translate(whole));
109
+ const stopped = read.endsWith("*");
110
+ const protein = stopped ? read.slice(0, -1) : read;
111
+ const inside = protein.indexOf("*");
112
+ if (inside >= 0) {
113
+ checks.push({
114
+ weight: "stop",
115
+ says: `There is a stop at amino acid ${inside + 1} of ${protein.length}, before the end, so the chain finishes early. If a piece above is not a whole number of codons, that is usually why.`,
116
+ because: `stop at ${inside + 1}`,
117
+ });
118
+ }
119
+ if (!protein.startsWith("M")) {
120
+ checks.push({ weight: "look", says: "The translated stretch does not begin with methionine, which a coding sequence usually does. Check that the first translated piece really starts where the protein does.", because: `begins ${protein.slice(0, 1)}` });
121
+ }
122
+ if (!stopped) {
123
+ checks.push({ weight: "look", says: "There is no stop codon at the end of the translated stretch. Without one the cell reads on into whatever follows.", because: "no stop at the end" });
124
+ }
125
+ if (stretch.length % CODON !== 0) {
126
+ checks.push({ weight: "stop", says: `The translated stretch is ${stretch.length} bases, which is not a whole number of codons, so the last ${stretch.length % CODON} are read as part of nothing.`, because: `${stretch.length} ÷ 3 leaves ${stretch.length % CODON}` });
127
+ }
128
+ // What is collected, for a protein that is let out: the chain with its signal peptide gone.
129
+ const signal = pieces.find((one) => one.as === "signal");
130
+ const mature = signal === undefined || signalAt !== 0 ? null : protein.slice(Math.floor(signal.bases.length / CODON));
131
+ return {
132
+ name: choice.name?.trim() || `${pieces.map((one) => one.name).join(" + ")}`.slice(0, 200),
133
+ sequence, features,
134
+ coding: codingFrom === null ? null : { from: codingFrom, to: codingTo },
135
+ protein, mature, junctions,
136
+ checks: checks.sort((a, b) => Number(b.weight === "stop") - Number(a.weight === "stop")),
137
+ problem: null,
138
+ };
139
+ }
140
+ /**
141
+ * The working behind a fusion: where the frame stands at each junction, and what was read.
142
+ *
143
+ * @param made - What `designFusion` gave.
144
+ * @returns The workings. Empty if there was nothing to design.
145
+ */
146
+ export function fusionWorking(made) {
147
+ if (made.problem !== null)
148
+ return [];
149
+ const count = (value) => value.toLocaleString("en-US");
150
+ const out = [{
151
+ of: "the frame, through every junction",
152
+ comes: made.junctions.every((one) => one.inFrame) ? "whole the whole way" : "broken",
153
+ kind: "exact",
154
+ steps: [
155
+ "A junction is in frame when everything translated before it comes to a whole number of codons, because that is what decides which three bases the cell reads together.",
156
+ ...made.junctions.map((one) => `${one.after} → ${one.before}, at base ${count(one.at)}: ${one.says}`),
157
+ ...(made.junctions.length === 0 ? ["There is only one translated piece, so there is no junction inside the protein."] : []),
158
+ ],
159
+ }];
160
+ if (made.coding !== null) {
161
+ out.push({
162
+ of: "what it reads as",
163
+ comes: `${count(made.protein.length)} amino acids`,
164
+ kind: "exact",
165
+ steps: [
166
+ `The translated stretch is bases ${count(made.coding.from)}–${count(made.coding.to)}, which is ${count(made.coding.to - made.coding.from + 1)} bases.`,
167
+ `${count(made.coding.to - made.coding.from + 1)} ÷ 3 is ${count(Math.floor((made.coding.to - made.coding.from + 1) / CODON))} codons.`,
168
+ `It begins ${made.protein.slice(0, 24)}${made.protein.length > 24 ? "…" : ""}`,
169
+ ...(made.mature === null ? [] : [`With the signal peptide cut off, what is let out is ${count(made.mature.length)} amino acids, beginning ${made.mature.slice(0, 18)}…`]),
170
+ ],
171
+ rests: "This is what the sequence says the cell would read. Whether the protein folds, is let out, or is any use is not something a sequence can be asked.",
172
+ });
173
+ }
174
+ return out;
175
+ }
176
+ //# sourceMappingURL=fusion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fusion.js","sourceRoot":"","sources":["../src/fusion.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,+CAA+C;AAC/C,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAU,CAAC;AAKvG,0EAA0E;AAC1E,MAAM,UAAU,GAAG,IAAI,GAAG,CAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;AA2DxE,MAAM,KAAK,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAEjF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAA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CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,SAAS;gBACtJ,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,WAAW,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,UAAU;gBACtI,aAAa,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC9E,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,uDAAuD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,2BAA2B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;aAC1K;YACD,KAAK,EAAE,oJAAoJ;SAC5J,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
package/dist/index.d.ts CHANGED
@@ -18,12 +18,15 @@
18
18
  * - `protein.ts` — the protein a gene codes for, and what its sequence says about it
19
19
  * - `induce.ts` — growing a strain to express what was put into it, and the mass its band should run at
20
20
  * - `modify.ts` — which residues would be phosphorylated, and whether the host has the enzyme to do it
21
+ * - `remedy.ts` — the ways round a host that will not, and the one of them that can be computed
21
22
  * - `induce-bench.tsx` — an induction at the shaking incubator, with the protein gel that answers it
22
23
  * - `verify-bench.tsx` — checking a construct against the design at a desk, saying what was not covered
23
24
  * - `verify.ts` — a sequencing read against the design it was meant to be, and what each difference costs
24
25
  * - `codons.ts` — a gene rewritten in a host's codons, from usage counted over that host's own genes
25
26
  * - `codon-bench.tsx` — writing a gene in a host's codons at a desk, with the counting on the screen
26
27
  * - `assembly-design.ts` — a ring designed from a lab's own parts: the pieces in order, and the primers that make them fit
28
+ * - `fusion.ts` — a promoter, a signal, a gene and a tag put together, with the frame checked at every junction
29
+ * - `fusion-bench.tsx` — that at a desk: the pieces in order, and the frame watched as they are laid out
27
30
  * - `assembly-bench.tsx` — building a ring at a desk: the pieces in order, and the primers that make them fit
28
31
  * - `ligate.ts` — pieces that have already been cut, joined where their ends fit
29
32
  * - `ligate-working.ts` — a ligation's working: each join in its bases, the length, how much to put in
@@ -38,6 +41,9 @@
38
41
  * - `primer-working.ts` — the working behind a design: the melting temperature's sum, the GC count, the bases that pair
39
42
  * - `primer-bench.tsx` — designing primers at a desk: the panel, and the template with the pair marked on it for a scene
40
43
  * - `plans.tsx` — runs that have been proposed, at the tool that would carry them out
44
+ * - `ordering.ts` — those proposals read as one piece of work: what order, what can start, what is waiting
45
+ * - `work.tsx` — that work drawn: the chains, in order, with what has to be got first
46
+ * - `protocol.ts` — the work as a sheet to carry to a bench, with what the plan does not say named
41
47
  * - `tools.tsx` — getting to one: from an instrument, or from a list of them all
42
48
  *
43
49
  * The tools are drawn with the styles of `@biolibs/bionet-panels` and belong inside its `LabWindow`.
@@ -55,12 +61,15 @@ export * from "./digest-working.js";
55
61
  export * from "./protein.js";
56
62
  export * from "./induce.js";
57
63
  export * from "./modify.js";
64
+ export * from "./remedy.js";
58
65
  export * from "./induce-bench.js";
59
66
  export * from "./verify.js";
60
67
  export * from "./verify-bench.js";
61
68
  export * from "./codons.js";
62
69
  export * from "./codon-bench.js";
63
70
  export * from "./assembly-design.js";
71
+ export * from "./fusion.js";
72
+ export * from "./fusion-bench.js";
64
73
  export * from "./assembly-bench.js";
65
74
  export * from "./ligate.js";
66
75
  export * from "./ligate-working.js";
@@ -71,6 +80,9 @@ export * from "./working.js";
71
80
  export * from "./map.js";
72
81
  export * from "./sequences-tool.js";
73
82
  export * from "./plans.js";
83
+ export * from "./ordering.js";
84
+ export * from "./work.js";
85
+ export * from "./protocol.js";
74
86
  export * from "./tools.js";
75
87
  export * from "./pcr-bench.js";
76
88
  export * from "./primer-design.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;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,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,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,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,eAAe,CAAC;AAC9B,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
@@ -18,12 +18,15 @@
18
18
  * - `protein.ts` — the protein a gene codes for, and what its sequence says about it
19
19
  * - `induce.ts` — growing a strain to express what was put into it, and the mass its band should run at
20
20
  * - `modify.ts` — which residues would be phosphorylated, and whether the host has the enzyme to do it
21
+ * - `remedy.ts` — the ways round a host that will not, and the one of them that can be computed
21
22
  * - `induce-bench.tsx` — an induction at the shaking incubator, with the protein gel that answers it
22
23
  * - `verify-bench.tsx` — checking a construct against the design at a desk, saying what was not covered
23
24
  * - `verify.ts` — a sequencing read against the design it was meant to be, and what each difference costs
24
25
  * - `codons.ts` — a gene rewritten in a host's codons, from usage counted over that host's own genes
25
26
  * - `codon-bench.tsx` — writing a gene in a host's codons at a desk, with the counting on the screen
26
27
  * - `assembly-design.ts` — a ring designed from a lab's own parts: the pieces in order, and the primers that make them fit
28
+ * - `fusion.ts` — a promoter, a signal, a gene and a tag put together, with the frame checked at every junction
29
+ * - `fusion-bench.tsx` — that at a desk: the pieces in order, and the frame watched as they are laid out
27
30
  * - `assembly-bench.tsx` — building a ring at a desk: the pieces in order, and the primers that make them fit
28
31
  * - `ligate.ts` — pieces that have already been cut, joined where their ends fit
29
32
  * - `ligate-working.ts` — a ligation's working: each join in its bases, the length, how much to put in
@@ -38,6 +41,9 @@
38
41
  * - `primer-working.ts` — the working behind a design: the melting temperature's sum, the GC count, the bases that pair
39
42
  * - `primer-bench.tsx` — designing primers at a desk: the panel, and the template with the pair marked on it for a scene
40
43
  * - `plans.tsx` — runs that have been proposed, at the tool that would carry them out
44
+ * - `ordering.ts` — those proposals read as one piece of work: what order, what can start, what is waiting
45
+ * - `work.tsx` — that work drawn: the chains, in order, with what has to be got first
46
+ * - `protocol.ts` — the work as a sheet to carry to a bench, with what the plan does not say named
41
47
  * - `tools.tsx` — getting to one: from an instrument, or from a list of them all
42
48
  *
43
49
  * The tools are drawn with the styles of `@biolibs/bionet-panels` and belong inside its `LabWindow`.
@@ -55,12 +61,15 @@ export * from "./digest-working.js";
55
61
  export * from "./protein.js";
56
62
  export * from "./induce.js";
57
63
  export * from "./modify.js";
64
+ export * from "./remedy.js";
58
65
  export * from "./induce-bench.js";
59
66
  export * from "./verify.js";
60
67
  export * from "./verify-bench.js";
61
68
  export * from "./codons.js";
62
69
  export * from "./codon-bench.js";
63
70
  export * from "./assembly-design.js";
71
+ export * from "./fusion.js";
72
+ export * from "./fusion-bench.js";
64
73
  export * from "./assembly-bench.js";
65
74
  export * from "./ligate.js";
66
75
  export * from "./ligate-working.js";
@@ -71,6 +80,9 @@ export * from "./working.js";
71
80
  export * from "./map.js";
72
81
  export * from "./sequences-tool.js";
73
82
  export * from "./plans.js";
83
+ export * from "./ordering.js";
84
+ export * from "./work.js";
85
+ export * from "./protocol.js";
74
86
  export * from "./tools.js";
75
87
  export * from "./pcr-bench.js";
76
88
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,C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AAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
package/dist/modify.js CHANGED
@@ -147,7 +147,7 @@ export function comparedWithKnown(predicted, known) {
147
147
  export const HOST_KINASES = [
148
148
  {
149
149
  host: "Escherichia coli", secretoryKinase: "no", casein2: false, standing: "well established",
150
- says: "A bacterium has no secretory pathway of this kind and no kinase in it. Casein made in E. coli is reported unphosphorylated, and that is the usual reason a group that wanted micelles moved away from it.",
150
+ says: "A bacterium has no secretory pathway of this kind and no kinase in it, so casein made in plain E. coli is unphosphorylated. That is not the end of it: co-expressing a kinase on the same plasmid has worked, and worked well — Thurmond and colleagues got every phosphorylated form of human beta-casein that the native protein has, in E. coli, with human CK2 beside it. The same trick does much less for bovine beta-casein, because CK2 reads only some of its sites. E. coli also gives the highest yields of any host tried: up to 1.45 g/L.",
151
151
  },
152
152
  {
153
153
  host: "Bacillus subtilis", secretoryKinase: "no", casein2: false, standing: "well established",
@@ -155,15 +155,15 @@ export const HOST_KINASES = [
155
155
  },
156
156
  {
157
157
  host: "Saccharomyces cerevisiae", secretoryKinase: "not known", casein2: true, standing: "reported",
158
- says: "Budding yeast has casein kinase I and II homologues, but no homologue of the secretory-pathway kinase has been identified. Phosphorylation of casein expressed in yeast is reported, and reported as partial and uneven between sites rather than as the full pattern.",
158
+ says: "Budding yeast has casein kinase I and II homologues, but no homologue of the secretory-pathway kinase has been identified. Yeast does appear to phosphorylate casein in vivo; how completely, and at which sites, is underexplored rather than measured — most studies went after secretion and yield instead. Some strains also put O-linked sugars on it, which native casein does not have.",
159
159
  },
160
160
  {
161
161
  host: "Komagataella phaffii", secretoryKinase: "not known", casein2: true, standing: "reported",
162
- says: "The yeast formerly called Pichia pastoris, and the usual choice for a secreted protein because it secretes a great deal of it. The same holds as for budding yeast: the kinase of the secretory pathway has not been identified in it.",
162
+ says: "The yeast formerly called Pichia pastoris, and the usual choice for a secreted protein because it secretes a great deal of it: 1 g/L of bovine beta-casein has been reported, the best of any yeast. The kinase of the secretory pathway has not been identified in it, as in budding yeast, and one report of a bovine beta-casein mutant made here found it both phosphorylated and glycosylated. How completely it phosphorylates, and where, nobody has measured.",
163
163
  },
164
164
  {
165
165
  host: "Nicotiana benthamiana", secretoryKinase: "not known", casein2: true, standing: "reported",
166
- says: "Plants have CK2 and a secretory pathway, and phosphorylated casein has been reported from plant expression. How complete the pattern is varies by report.",
166
+ says: "Plants have CK2 and a secretory pathway. What has actually been reported for casein in plants is poor: yields of a tenth of a per cent of total protein or less, and casein found unphosphorylated where anybody looked.",
167
167
  },
168
168
  {
169
169
  host: "Cricetulus griseus", secretoryKinase: "yes", casein2: true, standing: "well established",
@@ -1 +1 @@
1
- {"version":3,"file":"modify.js","sourceRoot":"","sources":["../src/modify.ts"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAA4B;IACrD;QACE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,iDAAiD,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG;QACzG,KAAK,EAAE,iKAAiK;KACzK;IACD;QACE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI;QAC3F,KAAK,EAAE,2OAA2O;KACnP;CACF,CAAC;AA0CF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,YAAY,CAAC,OAAe,EAAE,UAAiE,EAAE;IAC/G,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACxD,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,sCAA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