Loading the page

Software

LasReader turns measuring fluorescence and working out AHL concentration into one clear workflow, run on our CAPTURE-Screen reader or any plate reader

A fluorescent biosensor reports its target as light, but a team needs a concentration. In between sit standards, blanks, replicates, a curve, and a decision about which part of that curve can be used, usually worked out by hand in a spreadsheet.

LasReader turns that whole process, from reading fluorescence to an AHL concentration, into one clear workflow in the browser, with nothing to install. With CAPTURE-Screen, our low-cost reader (Hardware), the instrument is part of the workflow: LasReader checks the reader, shows which tube to read next, reads each one in a click, and gives each sample inside the curve's usable range a concentration with an approximate 95% confidence interval. Data from any plate reader goes through the same steps.

We built it for our AHL sensor (Description), but the analysis never uses the target's name. It can be used with other biosensors whose rising response is suitable for a 4PL calibration, provided the fit is checked against their experimental data.

Research use only. LasReader reports concentrations inferred from a calibration curve. It is not intended for diagnostic use: at this stage the project detects signals and does not diagnose infections, as Prof. Nan-Si Li put it (Meet with experts).

Part 1

One workflow, bench to concentration

Seven steps take a sample from the bench to a concentration. For each one, this part shows what you do and what LasReader and CAPTURE-Screen do for you.

1.1What it solves

Without LasReader Hard to repeat. Each person's spreadsheet makes different choices, and few of them are recorded.

With LasReader Same steps, every time. Each one is recorded in the export.

Without LasReader Slow to a result. Fitting a curve and reading every sample off it takes time, and is easy to get wrong.

With LasReader A curve in seconds. Paste the readings and press Fit: the curve and every sample's concentration, with its approximate 95% confidence interval, come back at once.

Without LasReader One tool per instrument. Each reader has its own software and format, and a home-built one often has none.

With LasReader One tool for every reader. It runs our CAPTURE-Screen directly and takes data from any commercial plate reader, through the same curve.

Prof. Nan-Si Li advised us to design the whole workflow, sample to answer: preparing the specimen, the sensing reaction, reading the fluorescence on a portable instrument, and interpreting the data in software (Meet with experts). CAPTURE-Screen, our hardware, is the third of those steps and LasReader, our software, the fourth.

1.2Three tools, one workflow

LasReader

One home page

LasReader home page. Three cards: Plate Reader Assay, CAPTURE-Screen, and Cross-Validation linked below the first two. Underneath, the Live spectrum panel for the laser-cut CAPTURE-Screen: a bar chart of raw counts in the ten AS7341 channels, with the F4 sfGFP band at 515 nm highlighted.
Figure 1. LasReader's home page: the three tools, and the live spectrum streaming from CAPTURE-Screen.

Everything starts here. Two tools take readings from different instruments through the same curve; the third compares them. While CAPTURE-Screen is on, the page also streams all ten channels of its sensor live, so you can see the reader is working before the first tube.

Any instrument

Plate Reader Assay

Accepts plate-reader data, regardless of brand. For 96-well data that can be arranged as an 8 × 12 block, paste it with or without row letters and column numbers, and mark the wells (Figure 2, from a SpectraMax M3). Readings from any other instrument can be typed or pasted from a spreadsheet.

Press Fit, and the standard curve and each sample's concentration with its approximate 95% CI come back at once. Nothing is stored or uploaded.

Steps 1–5, 7

Plate Reader Assay, step 1. Experiment details, then a fluorescence plate and an OD600 plate pasted as the reader exported them, and the 8 by 12 plate map with wells marked as standards from 0 to 100,000 nM and as medium blanks.
Figure 2. Pasting a plate and marking its wells: standards and medium blanks.

Our instrument

CAPTURE-Screen

CAPTURE-Screen step bar. Four numbered steps in a row: 1 Instrument, online, with its configuration fingerprint e4c7f2; 2 Calibrate, 3 runs; 3 Curves, 1 usable; 4 Measure, ready, highlighted as the current step. A Data button sits at the end.
Figure 3. The step bar at the top of every CAPTURE-Screen page: the reader online, three calibration runs, one usable curve, and Measure ready.

LasReader runs our low-cost reader through four pages, in the order they are used, and a step bar on every page shows where you are and what each step holds (Figure 3). Instrument checks the reader with a buffer-only cuvette. Calibrate reads the standards tube by tube and fits the curve (Figure 4). Curves keeps every saved curve with its LOD and usable range. Measure reads the samples and gives each one a concentration with its approximate 95% CI, ready to export.

Steps 1–5, 7

CAPTURE-Screen calibration page. A card names the next tube, 550 nM replicate 2, tube 11 of 18, with a progress bar and a Read button. Below, a chart of the standards read so far against concentration with the blank mean as a dashed line, and a table of each tube with its signal, the time it was read and a Re-read button.
Figure 4. Calibrate: the next tube to read, and the standards read so far.

At the bench, the laptop always says what comes next, down to which tube goes in (Figure 5). On the 3D-printed build one click reads it, dark, light, dark, in about 3 s, and the point appears on the curve straight away.

Photo at the lab bench: a laptop running LasReader shows the CAPTURE-Screen calibration page asking for the next tube, 100 nM replicate 1, tube 3 of 21, next to the CAPTURE-Screen reader, a box of pipette tips and a power bank.
Figure 5. At the bench: LasReader asks for the next tube.

Validation

Cross-Validation

The same samples measured on a plate reader and on CAPTURE-Screen, paired by name: the check that a low-cost reader agrees with a commercial one. Step 6

1.3LasReader and CAPTURE-Screen

LasReader is the software half of our measurement chain. CAPTURE-Screen, the reader we designed and built, is the hardware half: it makes the light and reads it, and LasReader decides what each reading is worth.

Software

LasReader, the software

One sketch per build connects the reader to LasReader over Wi-Fi. Four pages then check the reader, calibrate it tube by tube, keep its curves and measure samples, and every result carries its curve, its limits and its approximate 95% CI.

Pages
CAPTURE-Screen, Figures 3–5
Rules
§2.2, R4 binds a curve to one reader setup
Sketches
The README's Hardware section

The two pages report different numbers from the same reader. The Hardware page reports the laser-cut build's readings as F5/F3, the green channel divided by the blue one (How a reading is made), both from its batch firmware and, for its sensor-strain test, from the ten channels LasReader's sketch sends (The sensor-strain test). LasReader's calibration currently takes F4 alone as the signal and F3 as scatter, a placeholder until a measured sfGFP spectrum replaces it (Table 6). A value from one is therefore not a value from the other, even when both come from the same reading.

1.4The workflow

Seven steps, in the order they happen at the bench. Choose one to see what you do and what LasReader does.

The blanks have different roles; prepare the one each step requires:

Medium blank
Medium without cells. Its mean fluorescence and OD600 are subtracted before the Plate Reader Assay divides fluorescence by OD600.
Cell blank
Biosensor cells without AHL, prepared under the standards' conditions and at the same OD for CAPTURE-Screen. These zero-concentration readings establish the calibration baseline and blank scatter for LOD; on CAPTURE-Screen, clean cell blanks also establish the scatter baseline.
Buffer-only cuvette
Used for the CAPTURE-Screen Instrument self-check. It does not replace the cell blank or set the cell-scatter baseline.

With OD normalization enabled, the Plate Reader Assay uses (F_sample − mean F_medium) / (OD_sample − mean OD_medium), the usual convention. Check that it matches your own protocol before relying on normalized values; the export keeps each well's raw fluorescence and OD600 beside the normalized signal.

1Plan the standards

You do

Prepare standards of known concentration, and blanks with none.

LasReader does

  • Asks for at least 4 concentrations and 2 blanks, the minimum for a four-parameter curve and a limit of detection.
  • On CAPTURE-Screen, interleaves concentrations in replicate rounds to reduce the time bias from reading all replicates of one concentration together; drift may still affect concentrations differently.

In Plate Reader Assay and CAPTURE-Screen → Calibrate

2Read

You do

Read the plate on any plate reader, or the tubes on CAPTURE-Screen.

LasReader does

  • Takes the plate as the reader exports it (Figure 2), with fluorescence divided by OD600 if you choose.
  • On CAPTURE-Screen, reads each tube in one click and subtracts the dark for you (Figure 4).

In Plate Reader Assay and CAPTURE-Screen

3Check the data

You do

Make sure the instrument behaves and no reading is off.

LasReader does

  • Self-checks CAPTURE-Screen with a buffer-only cuvette, and flags any tube that saturated, scattered more than twice as much as the latest blank read under the same settings, or was read under other settings. The scatter check matters: a culture without the reporter can still read a few counts once it scatters enough, so the scatter channel has to be read beside the green one (Engineering, reader cycle 2).
  • Excludes a reading only with a written reason, and keeps it in the export.

In CAPTURE-Screen → Instrument, and every fit

4Fit the curve

You do

Draw a standard curve through the standards.

LasReader does

  • Fits a weighted four-parameter logistic curve[1] and works out the limits of detection and quantification[2][3] (§2.1).
  • Marks the usable range: the only part of the curve that returns a number.

In Plate Reader Assay and CAPTURE-Screen

5Convert the samples

You do

Read each sample's concentration off the curve.

LasReader does

  • Averages the replicates, converts once, and gives an approximate 95% confidence interval. The Plate Reader Assay also scales the result by the sample's dilution; for a CAPTURE-Screen batch, Cross-Validation applies it.
  • Below the usable range or above its upper limit, reports a bound instead of a concentration estimate.

In Plate Reader Assay and CAPTURE-Screen → Measure

6Compare instruments

You do

Measure the same samples on a commercial plate reader and on CAPTURE-Screen.

LasReader does

  • Pairs the results by sample name and shows how well they agree: a log-log plot, the geometric mean ratio and Bland–Altman limits of agreement[4] (§2.1).

In Cross-Validation

7Export and reproduce

You do

Record the results so that someone else can check them.

LasReader does

  • The Plate Reader Assay exports one CSV with every reading, every exclusion and its reason, and every result, plus the curve as a PNG. CAPTURE-Screen exports each calibration run and each measurement batch as CSV (a batch with its exclusions and reasons), and keeps a curve's own exclusions with the curve, in the JSON file it backs everything up to.
  • With the readings and the exclusions, anyone can enter them again and get the same curve.

In every tool

Part 2

How it decides

How a reading becomes a concentration, and how sure that number is: a weighted four-parameter fit, limits set from the blanks, and an approximate 95% confidence interval on every result. Every equation below is what the code computes; the full derivation is in the repository's model document.

2.1The method, step by step

The same five steps run in both tools, in the order the data flows through them. Each step gives its equations, defines every symbol, and names the section of the model document that derives it.

  1. Model the response
  2. Weight and fit
  3. Set the limits
  4. Invert, with an interval
  5. Compare instruments

1Model the response

A biosensor saturates, so its signal is S-shaped on a log concentration axis. LasReader uses the four-parameter logistic (4PL)[1], whose parameters each mean something at the bench.

F(c; θ) = B + T − B1 + (EC50 / c)h, θ = (T, B, ln EC50, h) (1) where B is the signal with no target, T the saturated signal, EC50 the concentration at half response and h the Hill slope. Blanks enter at c = 0, where F = B, so they fix the baseline directly. Fitting ln EC50 keeps EC50 positive; h is held between 0.05 and 20.

Model document §7

2Weight and fit

Replicates scatter more at high signal than at low, so an unweighted fit would let the top standards dominate. LasReader measures how the scatter grows from the replicates themselves and weights each reading by the inverse of its variance.

σ2(F) = a + bF2 (2) An additive part a and a proportional part b, found by least squares from each concentration's replicate variance against its squared mean, with a, b ≥ 0.
θ̂ = arg minθ Σi (yi − F(ci; θ))2σi2, σi2 = max(si2, a + byi2) (3) where yi is reading i at concentration ci, and si its own read-noise SD (CAPTURE-Screen measures it on every read; it is 0 for a plate reader). The sum is minimised by Levenberg–Marquardt. The read noise alone would understate the scatter: on the first CAPTURE-Screen prototype, seating and preparing the tube outweighed the noise of the reading itself in four of seven replicate groups (Model 3.1).
Σθ = χ2minN − 4 (J⊤WJ)−1 (4) The uncertainty of the fitted curve: J is the N × 4 matrix of derivatives ∂F/∂θ at θ̂, W = diag(1/σi2), N the number of readings and χ2min the minimised sum in (3). When only the blanks are replicated, (2) has a single group to fit, so b = 0, a is the blanks' variance and, without read noise, every reading gets the same weight. Only when the replicates show no spread at all and there is no read-noise estimate is the fit unweighted, with a taken from the residuals.

Model document §8, §9

3Set the limits

A curve can only be read where it is both above the noise of the blanks and still rising. LasReader works out that stretch from the data and never extrapolates beyond it.

LOD = F−1(F̄0 + 3s0), LOQ = F−1(F̄0 + 10s0) (5) where F̄0 is the larger of the blanks' mean and B, s0 the blanks' standard deviation (if every blank reads the same, their read-noise SD instead, or the residual SD of an unweighted fit), and F−1 the inverse curve of (7). The blank mean plus a multiple of the blank SD is the usual way to set both limits[2]; 10 is IUPAC's default multiplier for quantification[3].
cmin = max(LOD, clowest standard), cmax = min(chighest standard, EC50·191/h) (6) EC50·191/h is where the curve reaches 95% of its response span: setting F = B + 0.95(T − B) in (1) gives (EC50/c)h = 1/19. The upper-end region beyond 95% of the response span is excluded because inversion becomes sensitive to small signal changes. Outside [cmin, cmax], only a status is reported, with no concentration estimate.

The usable range starts at whichever is higher, the LOD or the lowest standard. A sample can therefore clear the LOD but still read below the lowest standard, and fall outside the range. The app gives both cases the same status, below_lod, which means “too low to quantify”, not always “not detected”.

The usable range is the software's permitted inversion range, not an experimentally validated quantification range. Its lower bound uses LOD, not LOQ, so estimates may be returned between LOD and LOQ. The blank-based LOQ estimate alone does not establish reliable quantification: bias, precision and recovery still need to be checked with low-concentration samples.

Model document §10

4Invert, with an interval

A sample's replicates are averaged in signal first, then converted once: the curve is non-linear, so averaging converted concentrations would be biased. The interval is worked out on the log scale, because concentration errors are multiplicative.

ln ĉ = ln EC50 + 1h ln F̄ − BT − F̄ (7) where F̄ is the mean of the sample's n replicate readings.
Var(ln ĉ) ≈ gF2 a + bF̄2n + gθ⊤ Σθ gθ, approximate 95% CI = exp(ln ĉ ± 1.96√Var) (8) The first term is the noise of the reading, which shrinks as n grows; the second is the uncertainty of the curve, from (4), which every sample shares and more replicates cannot reduce. This is the delta method: a first-order expansion of (7).
gF = 1h ( 1F̄ − B + 1T − F̄ ), gθ = ( −1h(T − F̄), −1h(F̄ − B), 1, −1h2 ln F̄ − BT − F̄ ) (9) The derivatives of (7) with respect to the signal and to the four parameters in θ, in the order of (1).

Model document §11, §12

5Compare instruments

Cross-Validation asks whether CAPTURE-Screen agrees with a commercial plate reader on the same samples. Both tools run the same fitting code, curve_fit.js, which reduces differences caused by separate analysis implementations. Differences can still arise from the instruments, sample handling, OD normalization, calibration and operation. Agreement is measured on the log scale, as a ratio:

di = log10 ĉiCAPTUREĉiplate, GMR = 10d, LoA95 = [10d − 1.96sd, 10d + 1.96sd] (10) where d and sd are the mean and standard deviation of di over the paired samples. The geometric mean ratio (GMR) is the typical bias; the Bland–Altman limits of agreement (LoA)[4] are the range 95% of single comparisons fall in. The tool also counts the pairs whose approximate 95% CIs overlap.

Assumptions. Replicate readings are independent, with roughly normal errors; the response rises with concentration (T > B); and the interval in (8) is a first-order approximation with 1.96. Its coverage has not been validated and may be inaccurate with few tubes or strong non-linearity. What comes next for them is in Table 6.

Steps 1–4 can be tried on your own readings in §3.2, which runs the same code.

2.2Rules it keeps

§2.1 says how a number is computed. These rules say when LasReader refuses to give one, so a result is never more certain than the data behind it. Each is enforced by the code, not left to the person at the bench.

Before the fit

R1No curve from too little data
With fewer than 4 standard concentrations or 2 blanks, the fit will not run. Plate Reader Assay, CAPTURE-Screen
R2No reading dropped without a reason
Quality flags warn and leave the decision to you; the one exception is a reading taken under other settings, which a curve never uses (R4). A reading is excluded only with a written reason, and stays on the plot with its reason kept: in the export, and for a CAPTURE-Screen curve, with the curve and in its JSON backup. Plate Reader Assay, CAPTURE-Screen

When it gives a number

R3No number outside the usable range
Outside the usable range (§2.1, step 3), LasReader gives no number, only a status: below_lod or above_range. It never extrapolates a concentration. Plate Reader Assay, CAPTURE-Screen
R4A curve converts only what it was made for
Each curve is bound to the reader's configuration fingerprint (e4c7f2 on the step bar, Figure 3). Readings taken any other way are not converted with it. CAPTURE-Screen

Over time

R5A saved curve never changes
Refitting makes a new curve, so every result can be traced to the curve that produced it. CAPTURE-Screen
R6No demo data
With CAPTURE-Screen off, the pages say it is offline. They never show made-up readings. All tools

2.3How the pieces connect

LasReader has three parts: the reader, a small backend, and the pages in your browser. All of the fluorescence analysis runs in the browser; the backend only relays the reader and analyses plate photos.

CAPTURE-Screen ESP32 + AS7341 laser-cut or 3D-printed backend · FastAPI /api/hardware relay: status · read /api/live Live switch · spectrum /api/swarming photo analysis · OpenCV browser · static pages Landing · live spectrum CAPTURE-Screen 1–4 Plate Reader Assay Cross-Validation curve_fit.js shared 4PL fit · no storage Plate Imaging WSS dials out subscribes HTTPS WSS HTTPS · photo
Figure 6. How the pieces connect. Solid arrows cross the network; dotted lines stay inside the browser. The Plate Reader Assay and CAPTURE-Screen call the same fitting module; Cross-Validation reads the results the two export. CAPTURE-Screen keeps its runs and curves in the browser, and the backend stores neither readings nor photos. The pages are served from GitHub Pages and the backend runs on Render; both also run locally with the scripts in §3.5.

Part 3

For other fluorescent biosensors

Nothing in the analysis is specific to AHL. The Plate Reader Assay works for any fluorescent biosensor whose signal rises with concentration along an S-shaped (4PL) curve, as long as standards of known concentration can be made. Other teams can then check the fit on their own data. Table 1 shows what changes for other setups.

3.1Who can use it

LasReader was built for our AHL biosensor, so its pages say "AHL" and its labels and export columns say nM. The analysis never uses either: it fits standards of known concentration to their readings and converts samples through that curve. Any unit works, as long as standards and samples share it; keep a note of yours, since the labels still say nM. The fit panel in §3.2 lets you set your own unit.

What it does need is at least 4 standard concentrations and 2 blank readings, and a rising signal suitable for a 4PL calibration. Check that the fitted curve describes the experimental response before interpreting sample estimates.

Table 1. Who can use LasReader, and what they would change
If your team hasUse itWhat to do
A fluorescent biosensor and any plate reader As is Open the Plate Reader Assay and enter standards and samples together; paste a plate if its data can be arranged as an 8 × 12 block. Check that the rising response is suitable for a 4PL calibration. Read "AHL" as your target and "nM" as your unit.
A sensor whose fluorescence falls as the target rises Not yet The fit accepts only a rising curve (T > B). A falling response would need changes to the fit, the LOD and the inversion in curve_fit.js.
A copy of one of our two readers Own backend Build it from the Hardware page, flash its sketch, and run LasReader on a lab computer (§3.5): our server holds one reader at a time. The 3D-printed build's sketch drives the LED from GPIO26, not the GPIO25 of the Hardware page's wiring, and it ships with our build's measured LED current: measure your own and enter it, since that value is part of the configuration every curve is bound to. Steps are in the README's Hardware section.
A reader of your own design, on an AS7341 sensor One sketch Adapt the closer of our two sketches and keep its messages, then run your own backend as above.
A different fluorescent protein on CAPTURE-Screen One file Set the signal channel in frontend/config/unmix_basis.json (F4 for sfGFP now). A protein the reader's 470 nm LED does not excite also needs a different LED.
A plate reader export that cannot be pasted as a plate One file Convert it to the Plate Reader Assay's table, as js/plate_layout.js does for a pasted plate.
A new analysis to add One folder A backend feature is a folder under backend/app/ with its own router.py, mounted with one line in main.py; a page is one HTML file and one script, linked from index.html.

3.2Try it with your data

This panel runs LasReader's own fitting code, unchanged, so the curve here is the curve the app would give. Paste a calibration from a spreadsheet and the curve appears as you type. Nothing leaves this page.

1Enter your standards

Copy the block from Excel and paste it into the first cell, or type. One row per concentration, 0 for blanks, up to three replicate readings across. The table grows as you fill it.

The grey numbers are placeholders that show the layout. They are not experimental data and are never fitted.

  • At least 2 blank readings
  • At least 4 standard concentrations

2Your curve

Your curve appears here as soon as both items on the list are ticked.

3.3Standards it builds on

Where a common format or an established method already exists, LasReader uses it, so its inputs come straight from a lab's instruments and its outputs open in the tools a lab already has. Table 2 lists them, and the one standard it does not use.

Table 2. Standards and established methods in LasReader
Standard or methodWhere LasReader uses it
The 96-well plate layout, wells A1–H12[5]The Plate Reader Assay accepts 96-well data arranged as an 8 × 12 block, with or without row letters and column numbers, and keeps each reading's well in the export. Other readings can be typed or pasted into its table.
CSV (RFC 4180[6]), UTF-8The exports are CSV files that Excel, R and Python open as is; the Plate Reader Assay's has one row per reading. Cross-Validation reads the exports back with an RFC 4180 parser.
Calibrated fluorescence units, such as the InterLab's MEFL[7]The signal can be in any unit, so readings a team has already converted with a fluorescein standard go in unchanged and the curve's signal axis is in those units.
The four-parameter logistic[1]The reference model for a saturating standard curve in binding assays, best fitted with weights (§2.1, steps 1–2), with biologically interpretable parameters.
LOD and LOQ from the blanks, 3 and 10 standard deviationsThe blank mean plus a multiple of the blank SD is the usual way to set both limits[2]; 10 is IUPAC's default multiplier for quantification[3]. Both are carried through the curve into concentrations (§2.1, step 3).
Bland–Altman limits of agreement[4]Cross-Validation compares two instruments the way method-comparison studies do, on the log scale (§2.1, step 5).
OpenAPI 3.1, WebSocket, JSONThe backend describes its own API at /docs, and CAPTURE-Screen speaks JSON over WebSocket.
SBOLNot used. LasReader handles measurements, not genetic designs; the biosensor strain is recorded as free text in every export.

3.4Connect it to other tools

LasReader does not have to be used whole. Its analysis and its files each have an interface another program can use without touching the rest (Table 3).

Table 3. The interfaces LasReader offers to other software
InterfaceWhat it givesWhere
The fitting module Steps 1–4 of §2.1 as pure functions with no dependencies and no access to the page: CurveFit.fit(points) returns the curve, LOD, LOQ and usable range; CurveFit.invert(signal, fit, n) returns a concentration with its approximate 95% CI, or says it is out of range. The panel in §3.2 loads this file unchanged, which is the proof that it works outside the app. frontend/js/curve_fit.js
The files In: readings typed, pasted from a spreadsheet, or a plate reader's 8 × 12 block. Out: the Plate Reader Assay's CSV, 40 named columns with the curve and each sample's result beside every reading; CAPTURE-Screen batches as CSV and a JSON backup; Plate Imaging · Agar Vision's CSV and annotated photos; charts as PNG. §3.3

3.5Run it, build on it

Most teams only need the first path below. The other two are for running your own copy and for connecting a CAPTURE-Screen. HIA-Taiwan, a high-school iGEM team, has already asked us about the code's programming structure (Collaboration).

1Use it in the browser

Nothing to install: open the live app and every tool is there. The Plate Reader Assay and Cross-Validation run entirely in your browser; CAPTURE-Screen and Plate Imaging · Agar Vision also use our server, which holds one reader at a time (path 3 runs your own).

2Run it on your own computer

For working offline or changing the code. You need Git and Python 3.14 (check with python --version); the frontend has no build step and needs no Node.js.

Run setup once to install the pinned packages into backend/.venv; dev starts the backend and frontend together.

macOS or Linux (on Windows, the same lines work in Git Bash):

git clone https://gitlab.igem.org/2026/software/ncku-tainan/lasreader.git
cd lasreader
bash scripts/setup.sh
bash scripts/dev.sh

Windows PowerShell:

git clone https://gitlab.igem.org/2026/software/ncku-tainan/lasreader.git
cd lasreader
powershell -ExecutionPolicy Bypass -File .\scripts\setup.ps1
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1

Then open http://127.0.0.1:5500 in your browser. Press Ctrl+C in the terminal to stop.

For developers: the API documents itself at http://127.0.0.1:8000/docs, and in backend/, .venv/bin/python -m pytest (.venv\Scripts\python -m pytest on Windows) runs the 46 backend tests.

3Connect your own CAPTURE-Screen

Our online server holds one reader at a time, so a team with its own reader (Table 1) runs LasReader on a lab computer on the same Wi-Fi. Do the setup in path 2, then, instead of dev:

  1. In backend/, start the backend so the reader can reach it: .venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 (.venv\Scripts\python on Windows).
  2. In frontend/, in a second terminal: python -m http.server 5500, and open http://127.0.0.1:5500.
  3. In the reader's secrets.h, set BACKEND_HOST to this computer's address on the Wi-Fi, BACKEND_PORT to 8000 and BACKEND_USE_TLS to 0, and flash it. The rest of the reader's setup is in the README's Hardware section.
Table 4. iGEM software requirements and where they are met
iGEM requirementWhere it is met
Hosted on iGEM's GitLabgitlab.igem.org/2026/software/ncku-tainan/lasreader
README: what, who, install and run, reproduceThe repository's README, with a section for each
OSI-approved licenseMIT
Reproducible build and runscripts/, setup and dev in .sh and .ps1; no compiled binaries
Pinned dependenciesbackend/requirements.txt pins every package, direct and transitive
Repository under 50 MBAbout 1.5 MB to clone, history included; 1.2 MB checked out

LasReader is released under the MIT License: future teams may use, modify and redistribute it, keeping the copyright notice. Yu-Chun Sung designed and wrote the software, apart from the colony analysis credited in A.2. Everyone's contributions are listed on the Attributions page.

Part 4

Where it stands

LasReader runs end to end on real instruments: a commercial plate reader, our own reader at the bench, and photos of real plates, where its measurements agree with a ruler to within 0.61 mm on average. What the fluorescence tools cannot show yet is a validated concentration, because that needs a biosensor response to calibrate against.

4.1What it has done

Table 5. What each part of LasReader has run on
PartRun onStatus
Plate Reader Assay A SpectraMax M3 plate of our biosensor: pasted as the reader exported it, wells marked, normalized to OD600 against a medium blank, fitted and exported (Figure 2). Every step
CAPTURE-Screen Our reader at the bench, calibrating tube by tube (Figures 3–5); one run's export and the curve it gave are Figures 8a and 8b. What the reader itself measured on GFP cultures is on the Hardware page and in Engineering (reader, cycle 2). Workflow run
Plate Imaging · Agar Vision Plates measured for the wet lab: the biosensor's fluorescent halo on agar (Results; Engineering, detection cycle 2), and swarming plates, as a cross-check on ImageJ (Engineering, inhibition cycle 1). Against a ruler on 15 colonies from 8 to 26 mm, it read within 0.61 mm on average, every colony within 2 mm, with no bias the data can separate from zero (Model 2.5). Validated
Fitting module This page: §3.2 runs the app's own curve_fit.js, unchanged Try it here
Backend Its automated tests (§3.5) 46 of 46 pass

Converting real samples into concentrations waits on the biosensor's response to AHL across a range of concentrations, which our wet lab is still establishing (Results, Engineering). That, and what else comes next, is in Table 6.

One run at the bench

The record of a run

A calibration on the laser-cut CAPTURE-Screen build on 9 October 2026: a blank and five standards from 220 to 1,100 nM, in three rounds, 18 tubes read in the order the page set.

The export keeps one row per tube, with its configuration fingerprint (e4c7f2), signal, scatter, quality flags and all ten channels, so every tube can be checked without the instrument (Figure 8a).

A spreadsheet of the exported run: 18 rows, one per tube, in replicate rounds of a blank and standards of 220, 275, 350, 550 and 1,100 nM. Columns include the slot, label, sample type, concentration, timestamp, signal F4, fluorescence, its SD, scatter, flags, configuration fingerprint e4c7f2, source and the channels F1 to F4 and beyond.
Figure 8a. The run's CSV export, one row per tube. Click to enlarge.

What the curve shows, and what it does not

Four tubes were left out of this curve, the three at 1,100 nM and one at 350 nM, because of a human error during the experiment. LasReader would not fit until each exclusion had a written reason. The tubes stay on the plot as open circles, and the curve keeps each one's reason, listed in its details on the Curves page and saved in the JSON backup (R2), so anyone can see what was left out and why. The run's CSV (Figure 8a) lists all 18 tubes; it records the readings, not the exclusions.

The run shows the workflow working at the bench, not the biosensor. With the 1,100 nM standards gone, the rise rests on the 550 nM tubes alone, so the curve is not evidence that the biosensor responds to AHL (Figure 8b). Its status reads Unverified only because the reader was offline when the screenshot was taken: the Curves page checks each curve against the configuration the reader is running, and cannot check it while the reader is off.

CAPTURE-Screen Curves page, details open for curve CURVE-20261009-3654: EC50 573.3 nM, Hill slope 4.89, LOD 333.7 nM, LOQ 431.3 nM, usable range 333.7 to 550 nM, config e4c7f2, signal F4, with the note that the unmixing basis is a placeholder and the signal is F4 alone. Below, a plot of F4 against concentration from 220 to 1,100 nM: counted tubes near the baseline from 220 to 350 nM and higher at 550 nM, a fitted S-shaped curve rising beyond them, and open circles for one 350 nM tube and the three 1,100 nM tubes, which sit at the baseline.
Figure 8b. The curve that run gave, on the Curves page. Filled dots: counted tubes. Open circles: excluded tubes.

4.2Next steps

Table 6. What comes next, and why
NextWhy it mattersHow
Validation on real samplesWaits on a biosensor response. Until then, no concentration has been checked against a sample of known concentration, and no fit compared with an established fitting tool.Spiked samples once the biosensor responds; the same readings fitted in an established tool
Automated tests for the fitcurve_fit.js runs in the browser and has been checked by hand only.Tests on curves with known parameters
A checked intervalThe delta method with 1.96 gives an approximate 95% CI. Its coverage has not been measured and may fall short with few standards.Measure its coverage by simulation; use a t quantile if it falls short
Clearer OD normalizationA change in OD600 alone also moves fluorescence ÷ OD600, and the results on screen do not show which one moved; only the export keeps both.Show raw fluorescence and OD600 beside the normalized signal on screen
A cleaner CAPTURE-Screen signalThe F4 channel alone also picks up autofluorescence and scattered light, and there is no cell-density correction, so samples at a different OD from the standards convert wrongly. The Hardware page explains why it reports the laser-cut build's readings as F5/F3 instead (How a reading is made).Unmix with a measured sfGFP spectrum; add cell density to the signal
Plate Imaging on harder photosThe scale assumes the plate was photographed square-on, and a reflection bright and even enough to have a dense centre can still be read as a colony (Model 2.7).Photograph square-on, lid off, away from overhead light; measure how much tilt a comparison within one plate tolerates

Smaller items for later: only rising responses can be fitted; there are no pass/fail thresholds for replicate spread or instrument agreement until real data shows what to expect; CAPTURE-Screen keeps its runs and curves only in the browser (back them up from the Data page); and the device link has no authentication yet.

References

Sources for the data formats and the data-analysis and curve-fitting methods named on this page. Statements about LasReader itself come from its code, in the repository.

  1. Findlay, J. W. A., & Dillard, R. F. (2007). Appropriate calibration curve fitting in ligand binding assays. The AAPS Journal, 9(2), E260–E267. https://doi.org/10.1208/aapsj0902029
  2. Armbruster, D. A., & Pry, T. (2008). Limit of blank, limit of detection and limit of quantitation. The Clinical Biochemist Reviews, 29(Suppl 1), S49–S52. PMC2556583
  3. Currie, L. A. (1995). Nomenclature in evaluation of analytical methods including detection and quantification capabilities (IUPAC Recommendations 1995). Pure and Applied Chemistry, 67(10), 1699–1723. https://doi.org/10.1351/pac199567101699
  4. Bland, J. M., & Altman, D. G. (1999). Measuring agreement in method comparison studies. Statistical Methods in Medical Research, 8(2), 135–160. https://doi.org/10.1177/096228029900800204
  5. Society for Laboratory Automation and Screening. ANSI SLAS 4-2004 (R2012): Microplates – Well Positions. slas.org
  6. Shafranovich, Y. (2005). Common format and MIME type for comma-separated values (CSV) files (RFC 4180). IETF. https://doi.org/10.17487/RFC4180
  7. Beal, J., Haddock-Angelli, T., Gershater, M., de Mora, K., Lizarazo, M., Hollenhorst, J., Rettberg, R., & iGEM Interlab Study Contributors (2016). Reproducibility of fluorescent expression from engineered biological constructs in E. coli. PLOS ONE, 11(3), e0150182. https://doi.org/10.1371/journal.pone.0150182

Also in LasReader

Plate Imaging · Agar Vision

A separate tool for plate phenotypes: take a photo of the plate, and every colony on it comes back measured in millimetres, with each figure drawn across the colony it belongs to.

The wet lab used to measure colonies by hand, one at a time and again for every plate. Plate Imaging · Agar Vision reads a whole batch of plate photos instead. It has been used on swarming plates, as a cross-check on ImageJ (Engineering, inhibition cycle 1), and on the biosensor's fluorescent halo on agar (Results). The same analysis runs on any plate; the assay type you enter only labels the batch and its files.

Annotated photo of a plate on a dark bench. A green circle traces the plate edge. Four branched colonies, one in each quarter of the plate, are outlined in yellow, each with a red line across its longest span labelled #1 24.0 mm, #2 20.3 mm, #3 17.9 mm and #4 17.0 mm. A 10 mm scale bar sits in the bottom right corner.
Figure 9a. Normal mode: four colonies on one plate, each outlined in yellow with its longest span in red.
Annotated photo of a plate under UV light on a purple background. A green circle traces the plate edge. At the centre, a bright cyan glow is outlined in yellow, with a red line across it labelled #1 10.9 mm. A 10 mm scale bar sits in the bottom right corner.
Figure 9b. UV mode: a plate photographed on a purple UV background, its glowing centre found by colour.

A.1Using it

Step 1

Photos

Enter the assay type and date once for the batch, then choose up to 24 photos taken from above (Figure 10a). Each photo gets its strain, an optional condition and a replicate; the replicate is numbered for you when photos share a strain and condition. The plate diameter, 93 mm by default, is shared by the batch: it sets the scale of every size.

Press Analyse and the photos go to the backend one after another, each row showing its own result. The diameter is locked while they run, so a whole batch shares one scale.

Plate Imaging step 1, Plate photos, marked Done. Experiment fields: assay type Swarming, date 2026/10/02, optional incubation and notes. Below, the photo picker with the note on accepted formats and limits, and the plate diameter set to 93 mm. A table lists the photos s7.png, s8.png and s9.png, each with its strain, an empty condition, replicate 1, an analysis status of Done with 3, 1 and 1 colonies, and a Remove button.
Figure 10a. Step 1: the experiment, the plate diameter, and one row per photo with its analysis.

Step 2

Detection

One row per photo: how the plate was found, the mode, the number of colonies and the largest span. View opens the photo beside what was found on it (Figure 10b). The first thing to check is that the green circle sits on the plate edge, since every millimetre comes from it. When circle detection fails and a fallback finds the plate instead, the page names the photo and warns that its scale is less sure.

Plate Imaging step 2, Plates and colonies, marked Done. The row for s7.png, rep 1: found by Circle, Normal mode, 3 colonies, largest span 27.24 mm, with a Hide button. Below it, the original photo of three colonies beside the annotated one, with the plate edge in green, colony outlines in yellow and longest spans of 15.9, 21.7 and 27.2 mm in red. Underneath, a Plate table: diameter entered 93 mm, found by circle detection, centre (443, 442) px, radius 393 px, scale 0.1183 mm/px.
Figure 10b. Step 2: View opens the photo, what was found on it, and the plate and scale behind every number.

Step 3

Export

Nothing is stored, so the files are the record: one CSV with every colony of every photo, and each annotated photo as a PNG. The page warns before you leave if the batch has not been exported.

A.2What happens to a photo

The analysis is Tzu-Chiao Chou's colony-measurement notebook, run on the backend with its steps, thresholds and values unchanged. Why each step is there, and what it rejects, is on the Model page (Part 2); in short:

  1. Shrink. A photo wider than 1200 px is shrunk to 1200 px wide. Added for LasReader: the notebook's pixel thresholds were set on photos about that size, and a full-size phone photo used more memory than the server has.
  2. Find the plate. A circle transform finds the plate edge; the diameter you entered, divided by the diameter found in pixels, gives millimetres per pixel.
  3. Choose the mode. If more than 35% of the photo is blue-purple, the plate was photographed under UV and colonies are found by their green-to-blue ratio (Figure 9b). Otherwise the background is evened out and a colony must pass two brightness thresholds, a loose one for its outline and a high one for its core (Figure 9a).
  4. Separate and filter. A region that does not look like one colony is split. Regions that are too small, touch the plate edge, or are too broken or elongated are dropped as reflections; the ten largest that remain are kept.
  5. Measure and draw. Each colony's longest span, equivalent diameter and area, drawn on the photo with a 10 mm scale bar. Added for LasReader: a small photo's annotation is drawn on an enlarged copy so its labels stay sharp; the numbers are measured before it.

A.3What you get

CSV
One row per colony across the whole batch, 31 columns: the experiment (assay type, date, strain, condition, replicate), the photo's size as uploaded and as analysed, the plate and its scale, the mode with its thresholds, and the colony's longest span, equivalent diameter and area.
Photos
Each annotated photo as a PNG, the same picture as View: plate edge, colony outlines, spans and scale bar.
Reproducible
The analysis is deterministic: the same photos with the same plate diameter give the same numbers, and the CSV records both on every row.

A.4How far to trust it

Against a ruler on 15 colonies from 8 to 26 mm, it read within 0.61 mm on average, every colony within 2 mm (Model 2.5). It depends on how the plate was photographed: square-on, lid off and away from overhead light, since the scale assumes the plate appears as a circle and a strong enough reflection can still be read as a colony (Model 2.7).

  • The thresholds were set on our swarming plates. On another phenotype, check the outlines in View before trusting the numbers.
  • A wrong plate circle or a stray colony cannot yet be corrected by hand, and the thresholds cannot be changed from the page.

Runs on LasReader's backend in Python with OpenCV, one photo at a time (POST /api/swarming/analyze); the backend keeps neither the photos nor the results. Notebook by Tzu-Chiao Chou; integrated into LasReader by Yu-Chun Sung.