Week 10 LAB: Mammalian Cell Manufacturing
1. Objective
Design a transiently transfected mammalian genetic circuit whose fluorescent output (mNeonGreen) is a non-trivial function of two independently measured DNA inputs, X1 and X2, and verify the predicted input–output surface with Biocompiler-Predict.
The explicit goal of the second round was to obtain a non-linearly-separable function (XOR), since any single-layer threshold device can already produce AND, OR, NAND and NOR.
2. System and design grammar
The only available interaction is post-transcriptional repression by endoribonucleases
(ERNs): CasE, Csy4 and PgU. A part named A_rec_B expresses B from an mRNA carrying an A
recognition site, so B is destroyed when ERN A is present.
| Rule | Consequence |
|---|---|
| A cassette’s transfection group sets which input it scales with | X1 group → scales with X1; X2 group → scales with X2; Bias group → approximately constant |
A_rec_B = B repressed by A | the only primitive available; all logic is built from repression |
No *_rec_PgU part exists | PgU cannot be repressed, so every cascade must run PgU → (Csy4 or CasE) → output |
Two inversions in series produce activation; this is the only route to a positive input. Each X group carries a spectrally distinct marker (mKO2 for X1, eBFP2 for X2) so its per-cell dose can be measured — these markers define the two axes of every heat map. The Bias group carries no marker and is therefore unmeasured.
2.1 Topology of the final circuit

Two mirror-image branches, each an independent AND-NOT. Branch 1 produces output in proportion to X1 and is destroyed by Csy4 arriving from X2; branch 2 produces output in proportion to X2 and is destroyed by CasE arriving from X1. Total output is the sum, so it is high only when exactly one input is high.
3. All 10 trials
Concentration was 50 ng/µL for every part in every trial. Total DNA per circuit never exceeded 800 ng.
Round 1 — four canonical gates
| # | Circuit | X1 group | X2 group | Bias group | Total | Purpose |
|---|---|---|---|---|---|---|
| 1 | XORgate | Csy4_rec_mNeonGreen 150, CasE 100, mKO2 100 | CasE_rec_mNeonGreen 150, Csy4 100, eBFP2 100 | — | 700 | two antagonistic branches → XOR |
| 2 | ANDgate | PgU 150, mKO2 100 | CasE_rec_mNeonGreen 150, eBFP2 100 | PgU_rec_CasE 200 | 700 | double inversion → AND |
| 3 | NANDgate | Csy4 150, mKO2 100 | CasE 150, eBFP2 100 | Csy4_rec_mNeonGreen 100, CasE_rec_mNeonGreen 100 | 700 | sum of two NOTs → NAND |
| 4 | NORgate | Csy4 150, mKO2 100 | Csy4 150, eBFP2 100 | Csy4_rec_mNeonGreen 200 | 700 | shared repressor → NOR |
Round 2 — tuned designs plus a reproducibility control
| # | Circuit | X1 group | X2 group | Bias group | Total | Change tested |
|---|---|---|---|---|---|---|
| 5 | XOR_v2a | Csy4_rec_mNeonGreen 100, CasE 200, mKO2 100 | CasE_rec_mNeonGreen 100, Csy4 200, eBFP2 100 | — | 800 | enzyme:substrate raised to 2:1 to clean the ON/ON corner |
| 6 | XOR_v2b | PgU_rec_mNeonGreen 150, CasE 150, mKO2 100 | CasE_rec_mNeonGreen 150, PgU 150, eBFP2 100 | — | 800 | Csy4 removed; CasE/PgU pair for symmetric lobes |
| 7 | XOR_v1_ref | identical to trial 1 | identical to trial 1 | — | 700 | reproducibility control in the same upload |
| 8 | AND_v2 | PgU 250, mKO2 100 | Csy4_rec_mNeonGreen 100, eBFP2 100 | PgU_rec_Csy4 150 | 700 | Csy4 moved into the cascade middle layer |
| 9 | NAND_v2 | Csy4 50, mKO2 100 | CasE 100, eBFP2 100 | Csy4_rec_mNeonGreen 200, CasE_rec_mNeonGreen 150 | 700 | Csy4 lowered 150 → 50 ng to move its threshold into range |
| 10 | NOR_v2 | Csy4 50, mKO2 100 | Csy4 50, eBFP2 100 | Csy4_rec_mNeonGreen 350 | 650 | lower repressor + more template to enlarge the ON region |
A provided example circuit was run first as a baseline (Appendix A); it is not counted among the 10 trials.
4. Results
Corner values are read from the predicted surfaces at the four extremes of the input plane. Each panel is auto-scaled independently, so absolute values are comparable only within a row.
| # | Circuit | (X1 lo, X2 lo) | (X1 hi, X2 lo) | (X1 lo, X2 hi) | (X1 hi, X2 hi) | Target | Outcome |
|---|---|---|---|---|---|---|---|
| 1 | XORgate | 0.05 | 0.50 | 0.50 | 0.30 | 0,1,1,0 | XOR obtained; ON/ON corner leaky |
| 2 | ANDgate | 0.03 | 0.05 | 0.25 | 0.45 | 0,0,0,1 | correct ordering, 1.8× margin |
| 3 | NANDgate | 0.45 | 0.45 | 0.05 | 0.05 | 1,1,1,0 | failed — collapsed to NOT X2 |
| 4 | NORgate | 0.52 | 0.08 | 0.08 | 0.05 | 1,0,0,0 | clean NOR |
| 5 | XOR_v2a | 0.04 | 0.45 | 0.47 | 0.12 | 0,1,1,0 | best — 3.8× worst-case margin |
| 6 | XOR_v2b | 0.05 | 0.50 | 0.52 | 0.30 | 0,1,1,0 | broader lobes, corner still leaky |
| 7 | XOR_v1_ref | 0.05 | 0.50 | 0.50 | 0.30 | 0,1,1,0 | reproduced trial 1 |
| 8 | AND_v2 | 0.035 | 0.04 | 0.075 | 0.13 | 0,0,0,1 | regression — 3.5× dimmer, same margin |
| 9 | NAND_v2 | 0.43 | 0.43 | 0.05 | 0.05 | 1,1,1,0 | unchanged — still NOT X2 |
| 10 | NOR_v2 | 0.38 | 0.06 | 0.06 | 0.04 | 1,0,0,0 | regression — dimmer than trial 4 |
4.1 Round 1 predictions
Trial 1 — XORgate. Two bright lobes at opposite corners; the dark bottom-left corner and the partially suppressed top-right corner are the XOR signature. The 0.30 at top-right is the flaw carried into round 2.

Trial 2 — ANDgate. Signal rises along the top edge from 0.25 to 0.45 while the bottom edge stays flat: X1 only matters when X2 supplies the output template. Functional but leaky.

Trial 3 — NANDgate. Only a bottom band, spanning the full X1 range. The Csy4-repressed arm contributed nothing, so the circuit reduced to NOT X2.

Trial 4 — NORgate. Triangular ON region with a straight diagonal boundary — the clearest result of round 1, and direct evidence of linear input summation.

4.2 Round 2 predictions
Trial 5 — XOR_v2a. The ON/ON corner fell from 0.30 to 0.12 while both lobes remained resolved. Selected design.

Trial 6 — XOR_v2b. Broader, more symmetric lobes and the highest peak (0.52), but the top-right corner stayed at 0.30, so the surface reads as a leaky OR.

Trial 7 — XOR_v1_ref. Reproducibility control; the round 1 XOR surface was reproduced exactly in the round 2 upload.

Trial 8 — AND_v2. Note the colour-bar maximum of 0.13 against 0.45 in trial 2. Same margin, 3.5× less signal — a regression.

Trial 9 — NAND_v2. Lowering Csy4 to 50 ng did not move its threshold into the measured range; still no left-hand column.

Trial 10 — NOR_v2. Peak output fell to 0.38 despite a 75 % larger reporter cassette.

5. Analysis
5.1 Linear separability is visible in the geometry
NOR (trial 4) produced a triangular ON region bounded by a straight diagonal. Because both groups express the same ERN, the cell integrates Csy4 ∝ (X1 + X2) and the ON condition is a sum threshold — a linear decision boundary, directly visible in the prediction. AND and NAND likewise show straight boundaries.
XOR (trials 1, 5, 6) produces two bright lobes at opposite corners with both diagonal corners dark. No single straight line separates ON from OFF, so this surface cannot be produced by a single-layer threshold device. That is why XOR was selected as the final design.
5.2 The governing parameter is the enzyme-to-substrate mass ratio
Every round 1 leak traced back to one quantity: ng of ERN divided by ng of the output cassette it cleaves, evaluated where both are maximal.
| Circuit | Ratio at the failing corner | Leak |
|---|---|---|
| ANDgate | CasE 200 / template 150 = 1.3 | 0.25 |
| XORgate | repressor 100 / template 150 = 0.67 | 0.30 |
ERNs are enzymes; when target mRNA is in excess the achievable fold-knockdown falls. Raising CasE to 200 ng against a 100 ng template in XOR_v2a reduced the ON/ON corner from 0.30 to 0.12, as predicted. This rule was confirmed.
5.3 Three rules learned from the round 2 failures
Csy4 is not a tunable repressor. At 150 ng (trial 3) and again at 50 ng (trial 9) it silenced its branch across the entire measured X1 range, so no boundary ever appeared inside the plot. Its threshold lies below the lowest deliverable dose. Csy4 should be treated as a binary OFF switch and used only where complete silencing is wanted; CasE and PgU are the parts with thresholds inside the usable range.
The middle layer of a cascade must be the weak ERN. Moving Csy4 into the middle of the AND cascade (trial 8) was expected to deepen the OFF state. Instead the whole surface fell 3.5× with no gain in margin: PgU at 250 ng cannot fully clear Csy4 from a 150 ng cassette, and the residual Csy4 suppresses the reporter even in the ON corner. The intermediate node must be easy to clear, which means CasE, not Csy4.
Output does not scale indefinitely with template mass. NOR at 350 ng of reporter cassette (trial 10) predicted lower output than the same design at 200 ng (trial 4), consistent with competition for shared cellular expression resources. Beyond roughly 200 ng per cassette the extra DNA is counterproductive — relevant because the 800 ng budget invites loading up.
5.4 Trade-off between corner cleanliness and lobe area
XOR_v2a and XOR_v2b bracket an unavoidable trade-off. The same enzyme:substrate ratio that cleans the ON/ON corner also narrows the ON stripes, because both are set by the same repression strength. v2b (CasE + PgU, 1:1 ratio) gives broad symmetric lobes and the highest peak but a 0.30 ON/ON corner, which reads as a leaky OR. v2a sacrifices lobe width for a 3.8× worst-case margin. Since the ON/ON corner is the single feature distinguishing XOR from OR, v2a is the better logic device.
6. Selected design
XOR_v2a, submitted as:
Total 800 ng, at the stated limit. Rationale: it is the only tested design producing a non-linearly-separable surface with a usable margin at all four corners — 0.45 and 0.47 ON versus 0.04 and 0.12 OFF.
7. Feedback on the assignment and tool
The design-and-predict loop worked well; uploading several circuits in one CSV and switching between them in the dropdown made it practical to run 10 designs across two rounds.
Two properties had to be discovered by trial and error and would be worth stating in the parts list:
- The three ERNs are not interchangeable in strength. Csy4 silenced its target across the whole input range even at 50 ng, behaving as a binary switch, while CasE and PgU have thresholds inside the measurable range. Approximate relative potencies or threshold doses would prevent several wasted designs.
- Predicted output does not increase with template mass beyond roughly 200 ng per cassette, and can decrease. A note on this would help, since the 800 ng budget encourages students to raise mass.
One interface suggestion: the colour scale is rescaled independently for every circuit, so panels cannot be compared by eye. A lockable shared scale, and units on the X1/X2 axes, would make cross-design comparison much easier.
8. Conclusion
Ten circuits were designed and predicted across two rounds. Four canonical gates were built from endoribonuclease repression alone; NOR and XOR behaved as designed on the first attempt, AND was functional but leaky, and NAND failed in a way that revealed Csy4’s potency. A single quantitative design rule — keep the ERN mass at or above twice the mass of the cassette it cleaves — accounted for every leak observed and, when applied, improved the XOR ON/OFF margin from 1.7× to 3.8×. The selected design, XOR_v2a, implements a function that no single-layer threshold device can produce.
All values are predictions from Biocompiler-Predict, not experimental measurements, and corner values are read from auto-scaled colour maps.
Appendix A — Baseline
Provided example circuit (X1: Csy4 150 + mKO2 100; X2: Csy4_rec_mNeonGreen 100 + eBFP2 100; 450 ng), run before the 10 trials to confirm the model’s behaviour. Output is high only where X1 is low and rises with X2 — a NOT-X1 ramp gated by X2, exactly as the topology predicts.
