# Pairwise DNA alignment

`seq_align` · Runs: Built, not hosted · Level: Checked against a reference: 60 published, hashed cases

Aligns one DNA sequence to a DNA reference, on both strands.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Sequences](https://www.drybench.com/mcp/catalogue/sequences)

[Ask your assistant](https://www.drybench.com/mcp/connect) · [Open in Drybench Sequence](https://www.drybench.com/sequence/app)

```cite
Pairwise DNA alignment (seq_align), Drybench MCP server 1.0.0; dna-align-v1@dna-align 1.0.0 (Checked against a reference); https://www.drybench.com/mcp/tools/seq-align
```

## What it is

Required: mode (global, semiglobal-read, local). Aligns one DNA sequence to a DNA reference with three-state affine-gap scoring on both strands (circular references searched round the origin; global alignment linear only). Returns the determined alignment, co-optimal placements, or a stated withheld state.

Field: [Sequences](https://www.drybench.com/mcp/catalogue/sequences). It is the same calculation as [Drybench Sequence](https://www.drybench.com/sequence/app), called by an AI assistant through the server.

## What it does

**You give**

- `reference` (required): The DNA reference: plain letters, FASTA (first record) or GenBank. Spaces, line breaks and position numbers are ignored. At most 1,000,000 letters.
- `sequence` (required): The sequence to align: plain letters or one FASTA record (header lines dropped).
- `mode` (required): Alignment mode: semiglobal-read, global (linear only), or local.
- `alphabet`: How to read the sequence. Omit to take it from the record (FASTA or GenBank fields) or, failing that, from the letters. 'dna-circular' reads DNA as a circle.
- `regionFrom`: Optional region first base (1-based). Give both regionFrom and regionTo.
- `regionTo`: Optional region last base (1-based inclusive).

No request is recorded for this tool.

**Limits**

- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
- No other limit is recorded for this tool.

Every reply also carries its app's limits line: "Nothing here is an assessment of any person's variant, sample or molecule, and a difference reported from a reference is a difference, not an interpretation."

### Every input, with its units

6 inputs

- `reference` (required): The DNA reference: plain letters, FASTA (first record) or GenBank. Spaces, line breaks and position numbers are ignored. At most 1,000,000 letters.
- `sequence` (required): The sequence to align: plain letters or one FASTA record (header lines dropped).
- `mode` (required): Alignment mode: semiglobal-read, global (linear only), or local.
- `alphabet`: How to read the sequence. Omit to take it from the record (FASTA or GenBank fields) or, failing that, from the letters. 'dna-circular' reads DNA as a circle.
- `regionFrom`: Optional region first base (1-based). Give both regionFrom and regionTo.
- `regionTo`: Optional region last base (1-based inclusive).

## The calculation

The method's equations, constants and worked example.

### [Pairwise DNA alignment](https://www.drybench.com/methods/m/dna-align-v1/dna-align%201.0.0)

`dna-align-v1@dna-align 1.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for dna-align-v1\@dna-align 1.0.0.

## Sources

No source is recorded for this tool's methods.

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Checked against a reference.

**Checked against:** 60 published, hashed cases (12 of them refusals) from an independent derivation on Biopython 1.88's PairwiseAligner under the same scoring: the optimum on both strands, exact; the co-optimal count, exact up to 1,000 and "more than 1,000" above it; the shown alignment first in the published tie order wherever the co-optimal set is at most 20,000, and above that checked optimal, not checked for order; the shared pairs and the placement groups at any count; the variation among co-optimal alignments where every alignment is listed. The whole table is searched up to the cell limit; above it the result is band-limited, with no number. Shared 12-base words count one per read position and reference position whose 12 letters agree, A C G T only (14 October 2026).

**Cases:** No case set is linked to this version.

**Worked example:** Not a published example. Inputs chosen by us; expected values computed by Biopython 1.88 Bio.Align.PairwiseAligner.

**Hostile inputs:** Sent 37 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Same answer:** Called twice and with its arguments in another order, it gave the same result. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Not checked:** Not recorded. Its absence does not mean everything was checked.

No independent scientist has yet reviewed this.

### What this project's records still lack

5 things

- A case worked by hand from the source's equation for dna-align-v1\@dna-align 1.0.0.
- The equation for dna-align-v1\@dna-align 1.0.0.
- The constants with their sources for dna-align-v1\@dna-align 1.0.0.
- A case set linked to this version for dna-align-v1\@dna-align 1.0.0.
- A record of what was not checked for dna-align-v1\@dna-align 1.0.0.

### Cite a number from this tool

the cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

```cite
seq_align, server 1.0.0; status invalid-input, nothing ran; no method record; receipt <input hash, 12 characters>/<output hash, 12 characters>; methods https://www.drybench.com/methods/sequence; page https://www.drybench.com/methods/tools/seq-align. There is no result to quote; this line identifies the call and its receipt.
```

### Changes to its methods

0 changes

No change is logged for these method versions.
