What lumicall does
lumicall evaluates one 96-well plate of a qualitative immunoassay, such as a chemiluminescent or colorimetric ELISA. It checks whether the run can be accepted, gives every sample a p-value and a call (detected, not detected or retest) with a false-positive rate that you choose, estimates the run's own limit of detection and writes a printable report. Next to its own call it always shows the result of the usual rule, mean + 3 SD of the negatives, so you can see every sample where the two differ.
This guide works in your browser. Section 3 runs the real lumicall program on an example plate, so every number you see there is computed by the same code that evaluates your own plates. Nothing you do here is uploaded anywhere.
Plan the plate
Choose a template. Click a well to see what it holds; samples fill the plate column by column (or column pair by column pair). The table you can download describes the same layout and can be edited for a layout of your own.
Try it with the real program
Six short steps on a synthetic example plate of the Anisakis simplex CL-S-ELISA (44 samples in duplicate, 30 reference negatives). The first step downloads Python and lumicall into this page once; that takes about half a minute.
This is what the luminometer wrote: relative light units (RLU) per well. Darker wells read higher. Hover over a well for its value and content.
The cut-off comes from analyte-free samples of the same matrix. Use the slider to see how the number of negatives changes it. With fewer than 99 negatives (at alpha 1%) lumicall uses a log-normal model; with more it uses a rule that needs no model at all.
lumicall first checks the controls, then calls every sample.
Shaded rows are samples where lumicall and the mean + 3 SD rule disagree. Try alpha 5% in step 3 and evaluate again: with 30 negatives the distribution-free rule applies and its cut-off is lower.
The same report you get from your own plate: print it on A4 or save it as PDF, and sign it.
Settings for your assay
Answer three questions; the settings appear below, for the online page and for the command line.
How the decision works
A sample is called detected when its signal is unlikely for an analyte-free sample. alpha is the chance that a new analyte-free sample is called detected. The usual rule, mean + 3 SD, is meant to give 0.135%, but only when the negatives are normal and many; light readings are usually skewed. Move the sliders: the panel draws one reference set, and the numbers average the false-positive rate over 2000 such sets.
Squares: mean + 3 SD; circles: lumicall. From the marked n on, lumicall uses the distribution-free rule, whose rate is exactly (k + 1)/(n + 1) for the largest k that keeps it at or below alpha; that is why the circles step below the alpha line there.
The two rules lumicall uses
Distribution-free rule (n of at least 1/alpha - 1: 99 negatives at 1%, 19 at 5%). The p-value of a sample is (1 + the number of negatives at or above it) / (n + 1). If the sample were itself analyte-free, every rank would be equally likely, so the chance of a p-value at or below alpha is at most alpha, whatever the shape of the negatives.
Log-normal model (fewer negatives). The p-value comes from the t prediction limit for a new value on the log scale
(mean + t x SD x sqrt(1 + 1/n) of ln RLU). It holds when ln RLU of the negatives is close to normal, which the report checks with a
normal quantile plot. With --scale linear the same model works on the readings themselves.
Retest. A sample whose two wells fall on opposite sides of the cut-off, whose wells differ by more than the allowed CV, or whose signal lies within the plate's own repeatability of the cut-off is called retest rather than forced into a decision.
Read the report
The report has a first page to sign and an appendix. Open the report from step 6 next to this list.
1. Identification
Plate file and its SHA-256 checksum, the reference set and its fingerprint, the program version and every setting. With these a run can be traced and repeated exactly.
2. Run verdict and acceptance checks
Accepted or rejected, with each control check. If a check fails, all samples are reported as "run rejected" and need a new run.
3. Samples in plate order
For each sample: wells and readings, the summary signal, the p-value used for the call, the call, the call of the mean + 3 SD rule and a note (for example why a sample is retest). Rows where the two calls differ are marked.
4. Signature fields
Performed by, checked by, date.
5. Figure 1
Every sample and control against the reference negatives, with the decision cut-off, the retest zone and the mean + 3 SD line on a log axis.
6. Appendix
The decision rule in numbers, a normal quantile plot of the reference negatives on the analysis scale and the calculation of the run limit of detection from the P1 and P10 controls.
Evaluate your own plate
Open lumicall online. Drop the plate file into box 1 and the negatives file into box 2 (or paste one value per line), choose the layout and signal in box 3 as found in section 4 of this guide, and press Evaluate plate. Under "Settings and sample names" you can change alpha, the validated LOD, the allowed duplicate CV and the retest zone, and give the samples their names in layout order.
Reference negatives: use analyte-free samples of the same matrix, extracted and read like routine samples. A file with several
matrices (a column matrix) gives one reference per matrix; choose one in the settings. Replicate wells of a negative go in
columns whose names start with rlu or od.
Command line
Install once (Python 3.10 or later):
pip install lumicall
pip install "lumicall[xlsx]" # to read .xlsx exports
The example from section 3:
lumicall example --out demo
lumicall reference demo/example_negatives.txt --out demo/reference.json
lumicall run demo/example_plate.tsv --reference demo/reference.json --out demo/report
reference stores the negatives with their summary; run writes report.html, samples.csv,
controls.csv and summary.json. The exit code is 0 for an accepted run, 2 for a rejected run and 1 for an error,
so runs can be checked in a script. The main options:
| Option | Default | Meaning |
|---|---|---|
--alpha | 0.01 | false-positive rate per sample |
--layout | anisakis | anisakis, duplicates, singles or a layout table |
--scale | log | linear for readings that can be 0 or negative |
--direction | higher | lower for competitive or inhibition assays |
--unit | RLU | signal label in the report |
--lod, --lod-unit | 0.5 ng/mL | validated LOD; P1 = LOD, P10 = 10 x LOD |
--cv-max | 15 | allowed duplicate CV (%) |
--retest-z | 1.96 | half-width of the retest zone in standard errors; 0 switches it off |
--repeatability-cv | from the plate | within-pair CV (%) from a precision study |
--matrix | matrix to use when the reference holds several | |
--ids | text file with sample names, one per line, in layout order | |
--block | 0 | which plate grid in a file that holds several reads |
Python
from lumicall import Settings, analyse_run, get_layout, read_negatives, read_plate
ref = read_negatives("negatives.csv").get(None) # or .get("trout") for one matrix
res = analyse_run(read_plate("plate.xlsx"), get_layout("anisakis"), ref, Settings(alpha=0.01))
print(res.run_ok, res.cutoff)
print(res.samples[["sample_id", "summary", "p_model", "p_conformal", "call", "protocol_call"]])
res.samples and res.controls are pandas tables; res.checks lists the acceptance checks;
res.info holds the decision rule, the run LOD and the reference diagnostics. lumicall.report.write_outputs
writes the same files as the command line.
Troubleshooting
Messages as lumicall prints them, and what to do.
no plate grid (rows A to H with 12 values) and no long table ... was found
The file is neither a reader grid nor a
table of wells. Export the plate as a grid with row letters in the first column, or make a table with columns well and rlu (or od).
found 2 plate grid(s), block 2 requested
The file holds several reads. Choose the read with --block (0 is the first) or
"Which grid in the plate file" online.
a reference value is 0 or below, so the log scale cannot be used
Typical for blank-corrected absorbance. Use the linear scale
(--scale linear, or "Can be 0 or negative" online).
at least 3 negative samples are needed
Add negatives. Three is the technical minimum; for a useful cut-off use 30 or more.
reference holds several matrices [...]; choose one with --matrix
The negatives file has a matrix column with more than one value. Name the matrix of this plate.
layout ...: well X used by both ... and ...
The layout table gives one well two roles. Every well may appear once.
unknown role ... in well ...
Allowed roles are blank, neg, pos, p10, p1 and sample (also negative, nc, positive and pc).
The run is rejected
The report names the failed check. A blank or negative control above the cut-off points to contamination or too much detection reagent; a positive control below it or with a large CV points to reagents, coating or pipetting. Repeat the run.
Many samples are retest
Duplicates that disagree, or many signals close to the cut-off. Check pipetting and plate sealing; the retest zone can be
narrowed with a precision-study CV (--repeatability-cv) or switched off (--retest-z 0) if your procedure requires it.
"run LOD not estimated"
The layout has no negative, P1 and P10 controls, or their readings do not rise in that order. The calls are not affected.
Glossary
- alpha
- The chance that an analyte-free sample is called detected; the per-sample false-positive rate you set (default 1%).
- Reference negatives
- Analyte-free samples of the same matrix that define what a negative reading looks like.
- Distribution-free (conformal) p-value
- (1 + number of negatives at or above the sample) / (n + 1). Exact for any shape of the negatives; needs at least 1/alpha - 1 of them.
- Log-normal model
- The t prediction limit on ln RLU, used when there are fewer negatives.
- Mean + 3 SD rule
- The conventional cut-off, always shown for comparison.
- Retest zone
- Signals within the plate's own repeatability of the cut-off, by default 1.96 standard errors.
- P1 and P10
- Positive controls at the validated LOD and at 10 x LOD; they give the run limit of detection.
- Run limit of detection
- The concentration whose expected signal equals this run's cut-off, interpolated on log scales between P1 and P10.
- Matrix
- The kind of sample (for example raw trout, canned fish); each matrix needs its own negatives.
Cite and licence
Software: Kochanowski M. lumicall: calibrated calls for qualitative plate immunoassays. Zenodo. doi:10.5281/zenodo.24666552. The Anisakis simplex CL-S-ELISA protocol, with its calculators: doi:10.5281/zenodo.24669285. This guide as a PDF manual: Kochanowski M. lumicall user manual: evaluating a qualitative plate immunoassay run. Zenodo. doi:10.5281/zenodo.24670823 (PDF). lumicall is MIT-licensed; this guide is CC BY 4.0. The example data are synthetic. Results are a decision aid; the laboratory's validated protocol decides.