Predicting Fluorescence and Protein Structure

We used models to help plan experiments in two modules. In Module 2, Glow Getter predicts the fluorescent signal from sfGFP, a green fluorescent protein. In Module 3, predicted protein shapes helped us revise the Ag43–SmtA fusion, which we designed to bind zinc at the cell surface.

Next, we will measure how much protein we can recover in Module 2. For Module 3, we will test whether cells make the fusion protein, whether it reaches the cell surface and whether it binds zinc.

Glow Getter: Predicting the Fluorescent Signal

  1. Future tagged targets

    Collect a separate dataset for each sfGFP-tagged protein.

  2. Plate reader

    RFU and optical density at a documented wavelength over time.

  3. WellPlotted

    Inspect time courses and variation. Prepare model inputs separately.

  4. Glow Getter

    Fit and evaluate a response after collecting compatible data.

  5. Harvest experiments

    Test harvest conditions and measure soluble recovery and fusion integrity.

Proposed workflow for sfGFP-tagged proteins. Our current measurements cover J23106 expressing standalone sfGFP, using OD630 because of the plate-reader setting. For each tagged target, we plan to collect measurements, fit and test its model, and compare predictions with recovered protein. We prepare compatible input files separately for WellPlotted and Glow Getter.

We built Glow Getter to study protein production in our two-plasmid system. On the first plasmid, J23106 controls production of LuxR. When the signal molecule AHL binds LuxR, LuxR activates pLuxR on the second plasmid, which controls sfGFP production. Our current experiments use sfGFP alone. Later, we plan to attach sfGFP to each target protein and repeat the measurements. The Module 2 diagram shows how the system works.

What We Predict

Choose one of the AHL conditions we tested and a time between 0 and 24 hours. Glow Getter then predicts the fluorescent signal after subtracting the signal from the growth medium and dividing by OD630. RFU is the reader’s fluorescence measurement, and OD630 measures how cloudy the culture is. We write the predicted result as corrected RFU/OD630.

We tested six conditions using the AHL 3-oxo-C6-HSL: no added AHL (uninduced), 10−4, 10−3, 10−2, 10−1 and stock. These are the labels used in our records. We still need to check the stock concentrations and volumes added to confirm the final AHL concentration in each culture.

We compared two ways to predict the signal. One uses the middle, or median, value across measured curves. The other uses equations for protein production and the time GFP takes to become fluorescent.

We use WellPlotted to look at the measurements before building a model. We then convert its plate-layout files into the format Glow Getter reads, keeping the labels for each run, well and time. The tutorial shows this process using generated example data.

Data Preparation

Our records contain seven run labels and hourly fluorescence and OD630 readings from 0–24 hours. Each run includes the six AHL conditions and medium-only controls, with three wells per sample. The Lab Notebook describes how we prepared the cultures and took the readings.

For each run, condition and hour, we average the readings from the three wells. We subtract the fluorescent signal from the matching medium-only wells, then divide by the average sample OD630. The reader has already corrected OD for the blank, so we do not subtract the blank again.

Corrected RFU/OD630 = (mean sample RFU − mean matching media RFU) / mean sample OD630

The WellPlotted figures show RFU/OD630 before subtracting the medium’s fluorescent signal. They show the medium as a separate reference. Glow Getter uses the corrected value calculated above.

Why OD630? Our reader’s only available absorbance setting was 630 nm, so that is the wavelength we used. The notebook entry records the setting.

Some older software fields, such as od600_raw, and figure labels say OD600. They contain the same readings taken at 630 nm. Before comparing these values with measurements at 600 nm, we would need to measure both wavelengths together and establish how they relate. Stevenson et al. (2016) explain why these comparisons depend on the instrument and cells.

How the general data importer works

Glow Getter’s general import-lab command starts with uncorrected OD and fluorescence. It subtracts the medium’s signal, adjusts for fluorescence from cells without GFP and subtracts the starting GFP signal. We prepare our experiment’s data separately because the reader has already corrected OD for the blank. To estimate a production rate, the general method calculates how quickly fluorescence changes and divides by the average corrected OD.

How the Models Work

The LuxR–AHL–pLuxR Response

The first plasmid carries instructions for making LuxR. When AHL binds LuxR, it turns on sfGFP production from pLuxR on the second plasmid. The model uses two Hill functions: equations in which activation rises with the input and then levels off.

A = Hn / (KAn + Hn)
L = R × c × A
q = b + s × Lm / (KLm + Lm)

H is the AHL concentration. R describes relative promoter strength, and c adjusts for the surrounding genetic design. A is the activated fraction, and L represents the active LuxR signal. The predicted GFP production rate is q, in RFU equivalents per OD unit per hour. KA and KL set the inputs at which activation reaches half its maximum. The values n and m control how sharply activation rises. The value b is the background production rate, and s sets the largest added response.

Growth and the Time GFP Takes to Become Fluorescent

The model makes total GFP production increase with OD(t), the culture’s OD at time t. Newly made GFP starts in a form that is not yet fluorescent, I. It then matures into fluorescent GFP, F. The equations also allow fluorescent GFP to be lost over time:

dI/dt = q × OD(t) − kmat × I
dF/dt = kmat × I − kloss × F

For simulations, the program can generate an S-shaped growth curve. To fit an experiment, we use its OD readings and adjust the model’s parameters to bring predictions closer to measurements. The fitting method reduces squared prediction errors while keeping parameters within set limits (bounded nonlinear least squares). We also compare models with a delay before production begins and with different growth curves. The example file provides starting values for trying the model.

Predicting From the Measured Curves

  1. For each AHL condition, calculate corrected RFU/OD630 over time for every run used to build the model.
  2. Use straight lines between each run’s readings to estimate values at the same times. At each time, take the median across runs.
  3. Save the resulting curve. To predict at a chosen hour, read from the straight line between the nearest points.

We call this the direct median predictor. We compare a version using all included readings with a version that leaves out readings flagged by an extra check for unusually high or low values. Both estimate values between measurement times in the same way.

What Changes Between V1–V4

The four equation-based versions we compared.
VersionFluorescence calculationReported OD630
V1Fits the AHL and pLuxR response with no delay before production begins. Uses the average growth curve to calculate production.Average growth curve across runs.
V2Same fitted fluorescence as V1.An S-shaped growth curve fitted to the readings.
V3Fits a delay before production begins, with the pLuxR activation threshold set to 0.2. Uses the average growth curve to calculate production.Average growth curve across runs.
V4Same fitted fluorescence as V3.Median growth curve across runs.

V1–V4 predict fluorescence and OD630 separately. They then subtract the medium’s fluorescence and calculate RFU/OD630. The direct median predictor works with the corrected ratio from the start.

How AHL Affects Growth

We compare cultures given AHL with matching cultures that received no AHL. Both carry the two plasmids. To estimate growth rate, μ, we calculate how quickly the natural logarithm of OD630 changes during periods of growth:

Growth burden = 1 − μinduced / μuninduced

A value of 0.2 means the culture given AHL grew 20% more slowly than its matching culture without AHL. The script checks that OD is positive, that enough readings are available and that the growth calculation fits those readings. It also reports how long cultures take to reach a chosen OD and how much lower their final OD is.

The Results page reports an average final OD630 reduction of 53.5% at 10−2. Final OD and growth rate describe different parts of the response. The cultures started at different densities, and both groups carried the plasmids. Tests with matching plasmids that do not produce the proteins would help separate the effects of carrying the plasmids from those of protein production.

Using a DNA Sequence to Estimate Protein Amounts

The DNA-to-protein prototype accepts a protein-coding DNA sequence, either directly or in FASTA format. Starting at the first base, it works out the amino-acid sequence, checks that the DNA can be read in groups of three and looks for stop signals. It then calculates protein length and molecular weight. It also calculates a codon adaptation index (CAI), which compares the DNA’s choice of codons with an E. coli reference table. Codons are the three-letter DNA instructions for amino acids.

The prototype starts with an sfGFP prediction and adjusts it for the target protein’s length and codon use:

Relative molecule factor = (sfGFP length / target length) × (target CAI / sfGFP CAI)

To calculate a relative mass score, it also includes the target’s molecular weight compared with sfGFP and scales the result against the highest predicted corrected sfGFP signal. It can search the six AHL conditions and times from 0–24 hours in 15-minute steps for J23106.

For a given sequence, the adjustment is the same at every condition and time. It changes the predicted amount, but every protein keeps sfGFP’s ranking of conditions and harvest times. We need measurements for each protein to see how its yield depends on how it folds, whether it stays dissolved, how quickly it breaks down and how it affects cell growth.

The tool needs an sfGFP model fitted to data. The public example includes a model fitted to generated data so users can try the code. To test predictions of protein amounts, we will measure known protein quantities for calibration, record culture and extract volumes, and compare predictions with the amount of each protein we actually recover.

Comparing Prediction Errors

We compared predictions of corrected RFU/OD630 with measurements left out when building the models. The direct median methods had lower median percentage errors than V1–V4. The Results page reports the same comparison. Absolute percentage error (APE) gives the size of each prediction error as a percentage of the measured signal’s size. Lower scores mean closer predictions.

The V1–V4 scores come from our earlier analysis. We still need to check which scores used all included readings and which used the extra check for unusual readings.

Swipe across the graph, or open it at full size.

Median and mean APE across six model and dataset combinations. The selected screened direct median model has 38.61 percent median and 126.85 percent mean APE.
Figure 1. Model Prediction Errors. The two panels show median and average percentage error for corrected RFU/OD630. The direct median predictor with the extra check had 38.61% median and 126.85% average error. OD600 in the image refers to our OD630 readings.
Percentage prediction errors from our earlier comparison. Mean is the average; median is the middle value.
ModelMedian APEMean APE (average)
V160.61%250.53%
V260.60%255.21%
V357.69%140.23%
V4 separate outputs57.44%141.96%
Direct median · all included readings38.61%126.96%
Direct median · extra check (default)38.61%126.85%

With the extra check, the direct median predictor had a median APE of 38.61% and an average APE of 126.85%. The median is the middle error when errors are sorted from smallest to largest. A few large errors can raise the average, and percentage errors can be large when the measured signal is small. The extra check made little difference to the overall scores.

Error by AHL Condition

Swipe across the graph, or open it at full size.

Screened default prediction errors by condition. The 10 to the minus 2 harvest candidate has 40.29 percent median APE and 207.19 percent mean APE.
Figure 2. Prediction Error by AHL Condition. Median and average percentage errors for the direct median predictor after the extra check. OD600 in the image refers to OD630.
Prediction errors after the extra check for unusual readings.
AHL labelMedian APEMean APE (average)
Uninduced42.72%112.18%
10−437.45%57.46%
10−338.09%126.46%
10−240.29%207.19%
10−123.08%131.10%
Stock48.78%126.69%

The 10−1 condition had the lowest median error, and stock had the highest. The 10−2 condition had the highest average error even though it gave the strongest measured signal relative to OD630. A stronger signal was not necessarily easier to predict.

How We Tested the Predictions

We tested the models 50 times. Each time, we used about 80% of the measurement groups to build the model and asked it to predict the other 20%. The three wells for a sample always stayed together, and time-zero readings always stayed in the data used to build the model. Each test condition and hour also had readings available for building the model.

If a medium reading was shared with a test group, we left it out of model building and estimated it using only the remaining medium readings. We also used only the model-building data to check for unusual values. Both model versions predicted the same test groups.

Across the 50 tests, we made 9,650 predictions from 966 eligible measurement groups. The tests reuse the same measurements; they are not 9,650 separate experiments. They check predictions within the conditions and times we measured. Experiments with newly started cultures will test whether the predictions hold up.

The general equation-model fitting tool uses a different test: it leaves entire promoter–AHL combinations out of model building. The Software page’s experimental figures also use a separate fit of the J23106 data. Each set of scores needs to be read with its own fitting and testing method.

How we check for unusual readings

The extra check compares RFU and OD630 with the median from at least three other runs at the same condition and hour. It flags all three wells in a group if either reading is more than five times that median or less than one-fifth of it. The check runs once and leaves time-zero readings unchanged.

A flag means a reading is unusual, but does not explain why. We keep the original readings and a record of what was left out. We also keep track of missing readings and negative values after subtracting the medium’s fluorescence.

Code and Data

The Glow Getter repository contains the model code, tools for fitting and plotting, data-storage code, browser-page builders and installation instructions. It also includes generated example data and a model fitted to those data.

Our experimental data are available upon request from the Missouri-Rolla iGEM team. We plan to publish the full dataset after wiki thaw, along with J23100 results and results from any other promoters we test.

To repeat an analysis, use the same input data, preparation notes, record of excluded readings, saved model and prediction tables.

See the code for the LuxR–AHL response, GFP maturation model, V1–V4 comparison and DNA-to-protein prototype.

Testing When to Collect Protein

The Module 2 measurements suggest two conditions to test when collecting protein. At 10−2, the median signal relative to OD630 was highest around 21–22 hours. At 10−1, the average total corrected fluorescent signal was highest at 24 hours. We will collect samples from both conditions at 20, 22 and 24 hours and measure how much sfGFP we recover.

Before starting, we will check the earlier comparison labels and save predictions from both versions of the direct median model. We will repeat the six AHL conditions using cultures started separately, similar starting densities and the same reader settings. We will record the final AHL concentrations and use calibration, matching controls and recovery measurements to compare predicted signals with recovered protein.

We also plan matching experiments with J23100 to test how changing the promoter that controls LuxR affects the results. For each target protein tagged with sfGFP, we will collect its own measurements, build and test its model, and compare fluorescence with the amount of protein recovered.

Protein Modeling: Changing the Ag43–SmtA Design

Module 3 asks whether Ag43 can hold the zinc-binding protein SmtA at the surface of E. coli. Our proposed fusion joins these proteins with OmpA for targeting and a 3× FLAG tag for detection. Short connecting sequences, called linkers, join the components.

We predicted the protein’s shape before building it. In the first prediction, parts of the structure appeared to overlap. That led us to inspect the sequence and change the design.

Tools and Design Changes

We ran RoseTTAFold All-Atom (RFAA) on our computer and viewed its predicted structures in ChimeraX. After our MilliporeSigma consultation, we also used AlphaFold to review the sequence and continued work on the linkers.

In the first Ag43 prediction, the alpha domain and barrel-shaped region, called the beta-barrel, appeared to overlap. We looked at the individual components as well as the complete fusion and compared them visually with existing BindCraft examples.

The MilliporeSigma representative recommended moving OmpA to the start of the protein (the N-terminus) and FLAG to the end (the C-terminus). We changed the proposed component order:

Proposed component order from the start (N-terminus) to the end (C-terminus) of the protein.
Design cycleComponent order
InitialAg43 → SmtA → FLAG → OmpA
RevisedOmpA → Ag43 → SmtA → FLAG

Running RFAA Locally

We ran RFAA under Ubuntu through WSL2 on an RTX 5070 Ti with 16 GB of VRAM. At first, the PyTorch/CUDA installation did not support our graphics card. Using a newer version supporting rOCM fixed that problem. A test using the small protein ubiquitin completed all steps and produced a structure that opened in ChimeraX.

A project run also produced the structure file Zn_ag43_omp_complex_test1.pdb and a supporting file. The Module 3 notebook records the settings and troubleshooting. We still need to match this output to the exact sequence used to generate it.

What the Models Showed

Initial rainbow-colored Ag43 ribbon model with overlapping domains.
Figure 3. Initial Ag43 Model. Two regions appeared to overlap, leading us to look at the component positions and change the design. View full size.
Revised rainbow-colored Ag43 ribbon model with an extended curved structure and barrel-shaped region on a black background.
Figure 4. Revised Ag43 Model. The second prediction appeared more spread out, with more space between the main regions. View full size.

So far, we have compared the two predictions by looking at them. After matching each model to its input sequence and settings, we will compare the structure files and check which regions the programs predict with higher or lower confidence.

Next, we will test whether cells make the fusion protein, whether it reaches the cell surface and whether it binds zinc.

Module 3: Next Steps

  1. Match models to their inputs. Gather the exact sequence, linker design and program settings used for each prediction.
  2. Compare the predicted shapes. Compare RFAA and AlphaFold predictions of the same sequence. Measure how closely they agree, look for overlapping regions and examine the linkers and whether the protein is likely to stay dissolved. Try individual components and smaller fusions where useful.
  3. Build and test the design. Check the sequence, test whether cells make the protein and whether it reaches the cell surface, then measure zinc binding with suitable controls. The engineering page describes the strains and detection methods we are considering.