Quick guide
How to use this calculator
- Choose direct position comparison only when the records are already corresponding and equal in length.
- For global alignment, enter the complete scoring convention rather than relying on an unstated matrix.
- Inspect the alignment columns, gap runs and score components before interpreting the result.
Calculation method
Calculation and interpretation
Keep Hamming distance, exact identity, alignment columns and a visitor-entered scoring model distinct from biological homology or statistical significance.
Position mode: Hamming distance = unequal positions; identity = equal positions ÷ length. Global mode maximizes substitution scores minus gap-open + (length−1)×gap-extension penalties.
Worked example
Compare two equal-length DNA records
The result describes these entered positions; it does not test whether the records are homologous.
Position mode: Hamming distance = unequal positions; identity = equal positions ÷ length. Global mode maximizes substitution scores minus gap-open + (length−1)×gap-extension penalties.
Supported inputs
Precision and limits
Explicit comparison basis
Position mode requires equal lengths; global mode aligns both complete records under the entered score.
Exact alphabets
Canonical DNA/RNA or the 20 standard amino-acid symbols are accepted; ambiguity and pre-existing gap symbols are excluded.
Scalar substitution model
Global mode distinguishes exact matches from mismatches; BLOSUM, PAM and nucleotide ambiguity matrices are not supplied.
One deterministic optimum
Tied optimal alignments may exist; the workbench reports one reproducible traceback and does not enumerate all ties.
No biological inference
Identity and score do not establish homology, function, significance or an evolutionary model.
Computational support
Position mode supports 10,000 symbols per record; global dynamic programming supports 500 per record and at most 1,000 alignment columns.
Continue calculating
