Skip to content

Main content

Sequence Divergence One Site Weight Tool

Calculate sequence divergence one site weight from explicit caller-supplied inputs.

Loading tool…

Description

Return site weight and normalized contribution only when different is true.

Sequence-derived quantities depend on aligned observations, callable sites and a stated substitution or codon model. A count ratio or one site's opportunity is distinct from a corrected evolutionary distance or statistical evidence of selection.

Return site weight and normalized contribution only when different is true.

When to use this tool

Use Sequence Divergence One Site Weight when you need the stated sequence-distance or codon-opportunity term.

How to use the tool and how it works

  1. Enter different, siteWeight, totalWeight. 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 weightedMismatch, divergenceContribution. Use the output convention below.

Require positive totalWeight and siteWeight between zero and total. Return site weight and normalized contribution only when different is true.1

Input fieldMeaning and unitsAccepted input
differentDifferentRequired. Boolean.
siteWeightSite WeightRequired. Finite number; minimum 0.
totalWeightTotal WeightRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
weightedMismatchWeighted MismatchRequired. Finite number.
divergenceContributionDivergence ContributionRequired. Finite number.
json
{
  "input": {
    "different": true,
    "siteWeight": 2,
    "totalWeight": 100
  },
  "output": {
    "weightedMismatch": 2,
    "divergenceContribution": 0.02
  }
}

Limitations and assumptions

  • Mismatch status and weights are supplied. This is one site's contribution, not corrected evolutionary distance or complete sequence comparison.
  • 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 a complete sequence-analysis method with an appropriate alignment, genetic code and model. Review gaps, missingness, multiple substitutions, saturation and uncertainty before biological interpretation.

References

  1. Calculation and input contract: evolutionary-biology/sequence-divergence-one-site-weight — tool.io

Similar or alternative tools