# Measurement definition worksheet — multiplex immunofluorescence

This folder ships the worksheet that the article describes: one row per marker in the panel, recording **what each marker's number is made of** before any data exist. It is an **empty template**. The CSV contains a header row and **zero data rows**; nothing here is a worked example from a real study, and no row has been pre-filled with a plausible-looking value.

The point of the sheet is narrow. A multiplex immunofluorescence result is a chain, and each link has its own unit: a per-channel intensity, a per-cell vector of intensities, a phenotype, and a spatial statistic. Most disagreements about mIF results turn out to be disagreements about which of those was measured, or about the denominator underneath it. This sheet forces those choices to be written down while they are still reversible.

## What this worksheet is for

Fill one row per **marker** in the panel. If a marker is read in more than one way — for example a membrane marker that is scored both as a presence call and as a continuous intensity — give it a row for each, because that is two measurements, not one.

Fill the row before the first slide is stained. The fields that are cheapest to decide before data exist are exactly the ones that become expensive to defend afterwards: the denominator, the unit of analysis, the positive rule and the comparison group.

## Column guide

| Column | What to record | Notes |
|---|---|---|
| `marker_id` | Your own stable identifier for this measurement | Use the same identifier in your image analysis configuration so the two can be joined later. |
| `marker_target` | The antigen or epitope the antibody is directed at | Record the target, not the clone. |
| `antibody_clone` | Clone name of the primary antibody | Clone, not catalogue number. |
| `channel_label` | The channel or fluorophore index the marker occupies | Record the same label that will appear in the delivered image file. |
| `fluorophore` | The fluorophore assigned to that channel | Record the fluorophore, not the channel index alone. |
| `expected_compartment` | Where the signal is expected to sit | For example nuclear, membrane, cytoplasmic, or a subcellular structure. This is what the segmentation and the phenotype rule depend on. |
| `measurement_unit` | The unit of this marker's own number | For example per-pixel intensity, presence or absence per cell, or a percentage. Write the unit, not the value. |
| `unit_of_analysis` | The object the number is aggregated to | For example cell, region of interest, core, field or patient. This is the field that decides whether two results are comparable at all. |
| `denominator` | What the number is divided by | Density, count and percentage are different quantities with different denominators. Write which one this is. |
| `positive_rule` | How a cell is called positive for this marker | For example a threshold value, a comparison to a control, a machine-learning call, or not applicable if the marker is read continuously. |
| `phenotype_label` | The cell class this marker contributes to | Leave as `not_applicable` if the marker is not used in a phenotype rule. |
| `spatial_metric` | The spatial statistic that consumes this marker's phenotype | For example a nearest-neighbour distance, a density, or a neighbourhood composition. Leave as `not_applicable` if none is planned. |
| `comparison_group` | The group this marker's number will be compared against | For example treated versus control, or responder versus non-responder. |
| `threshold_rule_source` | Where the positive rule came from | For example a control slide, a published rule, or a decision made in this study. |
| `notes` | Anything a second analyst would need | Free text. Record why a rule was chosen, and what it excludes. |

## Missing-value vocabulary

Use these values rather than leaving a cell blank, so that "not recorded" and "not applicable" stay distinguishable:

| Value | Meaning |
|---|---|
| `not_recorded` | The information exists somewhere but was not written into this row. Flag it for review before the run. |
| `not_applicable` | The field does not apply to this measurement — for example `spatial_metric` on a marker that is not used in a phenotype. |
| `not_verified` | A rule was chosen but no check on it has been made. This is different from `not_recorded`: it says something about the laboratory's process. |
| `pending` | The value is not yet available at the time the row is written. |
| `unknown` | Genuinely not known. |
| `not_applicable_due_to_failure` | The field is empty because an earlier decision failed. |

Do not write `n/a` for a value you simply forgot. `not_recorded` and `not_applicable` are different facts, and the difference is the whole point of the sheet.

## Example of how to fill it

The rows below are **illustrative only** and are deliberately not in the CSV. They show the shape of a completed entry and the conventions described above. Every bracketed value is a placeholder for something only your study can supply.

```
marker_id:              M-EXAMPLE-003
marker_target:          [the antigen you are detecting]
antibody_clone:         [clone name from the datasheet]
channel_label:          [the channel index used in the delivered file]
fluorophore:            [fluorophore assigned to that channel]
expected_compartment:   membrane
measurement_unit:       presence or absence per cell
unit_of_analysis:       cell
denominator:            cells per square millimetre of tumour stroma
positive_rule:          [the rule you actually applied]
phenotype_label:        [the class this marker helps define, or not_applicable]
spatial_metric:         [the spatial statistic that uses this class, or not_applicable]
comparison_group:       [the group this number will be compared against]
threshold_rule_source:  [control slide, published rule, or study decision]
notes:                  [anything a second analyst would need]
```

## Scope limits

- This worksheet is **not a validated SOP**, not a substitute for one, and not evidence that any assay described with it has been validated or qualified.
- It is **not an import format** for QuPath, Patho Axis, TerryDR software or any other platform, and it will not be read by any of them. It is a plain CSV for a human reader.
- It contains **no cutoffs, acceptance thresholds, pass/fail limits, prices, vendor specifications or measured results**. The threshold rule you enter is one you have decided on and recorded; this file does not supply one.
- It records **no clinical or diagnostic conclusion**. It records units, denominators, rules and identifiers only.
- Whether a given field is required, optional or not applicable is decided by your laboratory's own quality system, not by this file.
