Skip to content

Main content

Hgvs Intron Offset Closure Flag Tool

Inspect one explicitly signed nonzero intronic offset fragment; not a full HGVS expression or variant validator.

Loading tool…

Description

Inspect one explicitly signed nonzero intronic offset fragment; not a full HGVS expression or variant validator.

Pharmacogenomic records distinguish allele labels, copy counts, reference-sequence versions, coordinate systems, and evidence about chromosome phase. A balanced count or matching token can check a record without establishing the underlying genotype. Supplied activity values and interpretation rules remain separate from a current gene-specific clinical guideline.

Inspect one explicitly signed nonzero intronic offset fragment; not a full HGVS expression or variant validator.

When to use this tool

Use Hgvs Intron Offset Closure Flag when you need this specific allele-token, reference-coordinate, copy-budget, or source-support check.

How to use the tool and how it works

  1. Enter offsetToken, basePosition, lowerOffset, upperOffset, includeLower, includeUpper. 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 offset, withinBounds, basePosition. Inspect withinBounds before interpreting the associated values.

Parse offsetToken as + or - followed by a positive safe integer. Require lowerOffset<=upperOffset and compare the signed offset using the chosen inclusive/exclusive endpoint flags; return offset, withinBounds, and the supplied basePosition.1

Input fieldMeaning and unitsAccepted input
offsetTokenOffset TokenRequired. Text; maximum UTF-16 length 8192.
basePositionBase PositionRequired. Safe integer.
lowerOffsetLower OffsetRequired. Safe integer.
upperOffsetUpper OffsetRequired. Safe integer.
includeLowerInclude LowerRequired. Boolean.
includeUpperInclude UpperRequired. Boolean.
Output fieldInterpretationReturned shape
offsetSigned coordinate or time offset under the stated formula.Required. Safe integer.
withinBoundsWhether the supplied offset meets the selected endpoint comparisons.Required. Boolean.
basePositionBase PositionRequired. Safe integer.
json
{
  "input": {
    "offsetToken": "+3",
    "basePosition": 20,
    "lowerOffset": 1,
    "upperOffset": 3,
    "includeLower": true,
    "includeUpper": false
  },
  "output": {
    "offset": 3,
    "withinBounds": false,
    "basePosition": 20
  }
}

Limitations and assumptions

  • The base is preserved rather than mapped. Bounds are caller-supplied and this local check does not establish a valid transcript intron or a full HGVS coordinate.
  • 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. Signed zero is exported as zero.

Alternative or Complementary methods

Use a current gene-specific nomenclature and a validated interpretation process when allele identity, phase, function, or clinical decisions matter. Verify source versions and reference coordinates before combining records.

References

  1. Calculation and input contract: pharmacogenomics/hgvs-intron-offset-closure-flag — tool.io

Similar or alternative tools