Description
Count exact source mismatches, exact empty source labels, and matched rows.
Laboratory records distinguish specimen identity, sampling coverage, retained quantities, processing times, image scale, and measurement uncertainty. Areas, volumes, counts, and source-support flags measure different aspects of a record. A local calculation does not identify tissue or establish diagnostic adequacy.
Count exact source mismatches, exact empty source labels, and matched rows.
When to use this tool
Use Slide Label Source Gap when you need this specimen-record, sampling, processing-time, dimensional, or uncertainty calculation.
How to use the tool and how it works
- Enter slideIds, labelSources, expectedSources. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read mismatches, missingSourceLabels, matched. Use the output convention below.
Require unique slideIds aligned with labelSources and nonempty expectedSources. Count exact source mismatches, exact empty source labels, and matched rows.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| slideIds | Slide Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| labelSources | Label Sources | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| expectedSources | Expected Sources | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| mismatches | Mismatches | Required. Safe integer. |
| missingSourceLabels | Missing Source Labels | Required. Safe integer. |
| matched | Matched | Required. Safe integer. |
{
"input": {
"slideIds": [
"a",
"b"
],
"labelSources": [
"s1",
""
],
"expectedSources": [
"s1",
"s2"
]
},
"output": {
"mismatches": 1,
"missingSourceLabels": 1,
"matched": 1
}
} Limitations and assumptions
- A missing source label also counts as a mismatch because expected sources must be nonempty. Whitespace-only labels count as present, and the check does not verify slide identity, patient linkage, or source authenticity.
- 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.
Alternative or Complementary methods
Use validated laboratory procedures, traceable measurements, and authenticated specimen records for a complete assessment. Check the relevant sampling and processing assumptions before interpreting a local quantity.
References
Similar or alternative tools
- Digital Slide Pixel Area Factor
Convert explicit independent slide-pixel axis calibrations to target square units per pixel.
- Slide Region Area Fraction
Compute a supplied research annotation area fraction without diagnostic classification.