Skip to content

Main content

Stain Batch Reference Slide Gap Tool

Linear reference-slide normalization after explicit blank subtraction, not a stain-interpretation or diagnostic threshold.

Loading tool…

Description

Subtract blankSignal from sampleSignal and multiply by targetReference/batchReference, returning corrected signal and normalizationFactor.

Stain analysis distinguishes measured intensity, blank correction, optical density, and linear channel coordinates. These are different representations whose interpretation depends on calibration and the supplied stain model.

Subtract blankSignal from sampleSignal and multiply by targetReference/batchReference, returning corrected signal and normalizationFactor.

When to use this tool

Use Stain Batch Reference Slide Gap when you need one explicit stain-signal component.

How to use the tool and how it works

  1. Enter sampleSignal, blankSignal, batchReference, targetReference. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read blankCorrected, normalizationFactor, normalizedSignal. Use the output convention below.

Require positive batchReference and targetReference. Subtract blankSignal from sampleSignal and multiply by targetReference/batchReference, returning corrected signal and normalizationFactor.1

Input fieldMeaning and unitsAccepted input
sampleSignalSample SignalRequired. Finite number.
blankSignalBlank SignalRequired. Finite number.
batchReferenceBatch ReferenceRequired. Finite number; strictly above 0.
targetReferenceTarget ReferenceRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
blankCorrectedBlank CorrectedRequired. Finite number.
normalizationFactorMultiplicative normalization factor under the formula above.Required. Finite number.
normalizedSignalNormalized SignalRequired. Finite number.
json
{
  "input": {
    "sampleSignal": 120,
    "blankSignal": 20,
    "batchReference": 80,
    "targetReference": 100
  },
  "output": {
    "blankCorrected": 100,
    "normalizationFactor": 1.25,
    "normalizedSignal": 125
  }
}

Limitations and assumptions

  • References share units and corrected signals can be signed; normalization does not validate staining comparability, reference slides, or clinical interpretation.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Review the complete imaging and stain calibration, deconvolution model, and appropriate professional interpretation separately.

References

  1. Calculation and input contract: histology/stain-batch-reference-slide-gap — tool.io

Similar or alternative tools

  • Stain Reference Channel Factor

    Subtract blank from signal and multiply by nonnegative suppliedReferenceLevel/positive referenceChannel.

  • Stain Reference Support Share

    Sum stained area and stained area with matching references, returning their ratio or zero with defined false for zero stained area.