Skip to content

Main content

Fragment Count Double Count Witness Tool

Identify exact duplicate fragment identifiers while retaining their positions.

Loading tool…

Description

Identify exact duplicate fragment identifiers while retaining their positions.

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.

Identify exact duplicate fragment identifiers while retaining their positions.

When to use this tool

Use Fragment Count Double Count Witness when you need this specimen-record, sampling, processing-time, dimensional, or uncertainty calculation.

How to use the tool and how it works

  1. Enter fragmentIds. 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 uniqueCount, duplicatePositions. Use the output convention below.

Scan fragmentIds in order. Return uniqueCount and every zero-based position whose token appeared earlier as duplicatePositions.1

Input fieldMeaning and unitsAccepted input
fragmentIdsFragment IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
uniqueCountUnique CountRequired. Safe integer.
duplicatePositionsDuplicate PositionsRequired. Array of safe integer; maximum items 256.
json
{
  "input": {
    "fragmentIds": [
      "F1",
      "F2",
      "F1"
    ]
  },
  "output": {
    "uniqueCount": 2,
    "duplicatePositions": [
      2
    ]
  }
}

Limitations and assumptions

  • Repeated labels are evidence of duplicate identifiers, not necessarily duplicate physical fragments. No image, specimen, provenance, or identity resolution is performed.
  • 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

  1. Calculation and input contract: pathology/fragment-count-double-count-witness — tool.io

Similar or alternative tools

  • Pathology Cassette Block Count Reconcile

    For nonnegative integer cassettes and createdBlocks, positive plannedBlocksPerCassette, and exhaustedBlocks<=createdBlocks return expectedBlocks=cassettes*plannedBlocksPerCassette, missingBlocks=expected-created, and remainingCreated=created-exhausted.

  • Tumor Research Cellularity Count Fraction

    Descriptive fraction from caller-classified research counts; no cell identification, pathology grade or treatment implication.