Skip to content

Main content

Phasing Block Span Tool

Count supplied genomic coordinate span under an explicit endpoint convention, without inferring phase.

Loading tool…

Description

Return a phasing-block span under an endpoint convention.

Genome annotations depend on coordinate origin, endpoint inclusion, strand and reading-phase conventions. A local offset or phase token can be handled precisely while a complete transcript, reference identity and biological reading frame remain separate validation questions.

Return a phasing-block span under an endpoint convention.

When to use this tool

Use Phasing Block Span when checking the stated genomic coordinate, annotation phase or attribute-value convention.

How to use the tool and how it works

  1. Enter firstPosition, lastPosition, coordinatesAreInclusive. 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 span. Use the output convention below.

Return a phasing-block span under an endpoint convention. Require whole 0 <= firstPosition <= lastPosition; span = last-first plus one only when coordinatesAreInclusive.1

Input fieldMeaning and unitsAccepted input
firstPositionFirst PositionRequired. Safe integer; minimum 0.
lastPositionLast PositionRequired. Safe integer.
coordinatesAreInclusiveCoordinates Are InclusiveRequired. Boolean.
Output fieldInterpretationReturned shape
spanSpanRequired. Safe integer.
json
{
  "input": {
    "firstPosition": 100,
    "lastPosition": 150,
    "coordinatesAreInclusive": true
  },
  "output": {
    "span": 51
  }
}

Limitations and assumptions

  • An equal endpoint gives one inclusive position or zero half-open span; this does not infer actual phase blocks or validate a reference.
  • 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

Use the intended complete BED/GFF/GTF format, reference assembly and transcript model to validate full annotations and biological meaning.

References

  1. Calculation and input contract: bioinformatics/phasing-block-span — tool.io

Similar or alternative tools