Pairwise DNA alignment
seq_align is a tool of the Drybench MCP server. It runs the same engine and reporting rules as Drybench Sequence.
What it answers
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.
Limits:
- 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.
- It computes from the inputs it receives. It does not check the person's data, design or sample.
- 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.
Research and education software; not for diagnosis or treatment decisions.
Not medical advice. Nothing here is advice about any medicine, treatment or condition, and nothing here is an assessment of any person's variant, sample or molecule. Decisions made with it are yours.
What this page can and cannot show
Weakest level among this tool's methods: Checked against a reference. Reference kind not recorded for 1 of 1 methods.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Open Drybench Sequence · Drybench Sequence: methods and checks · What the levels mean · Every assistant tool
Inputs
An omitted input takes the default its description states; the reply's inputsReceived shows what was given. Any input not listed here is refused.
reference(string, 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.alphabet(string, optional): 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. One ofdna,rna,protein,dna-circular.sequence(string, required): The sequence to align: plain letters or one FASTA record (header lines dropped).mode(string, required): Alignment mode: semiglobal-read, global (linear only), or local. One ofglobal,semiglobal-read,local.regionFrom(integer, optional): Optional region first base (1-based). Give both regionFrom and regionTo.regionTo(integer, optional): Optional region last base (1-based inclusive).
What it withholds or refuses
A refusal, a withheld value or another named status is an answer: the reply gives the reason and no number in its place; an absent value is not zero. Invalid input means nothing ran.
Refusal codes: not recorded for seq_align.
Values it withholds: not recorded for seq_align.
How to cite a number from it
Every reply carries a cite line. It names, in order: the tool and the server version; each method the call went through, with its version and level (and the limit beside a level where the method's record narrows it); the receipt, the first 12 characters of the hashes of the arguments and of the result; and the address where its methods are described. Quote it with any number taken from the reply.
The receipt identifies a computation; it is not a signature. It holds no time, so the same arguments on the same server and method versions give the same receipt, and anyone can call the tool again and compare; a later method version can change the output hash.
This page has no example for this tool yet. The cite line's form, with placeholders where a call's own values go:
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.
Methods
Every method and reference the tool's replies cite, with its version and level. A reply names the methods that call went through.
Pairwise DNA alignment
- Method:
dna-align-v1@dna-align 1.0.0 - Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- Reference: Pairwise DNA alignment in three states, as in Biopython 1.88's PairwiseAligner: M(i, j) ends in a pair, X(i, j) in a reference letter against a gap in the read, Y(i, j) in a read letter against a gap in the reference (i counts reference letters, j read letters). M(i, j) = s(i, j) + max{M, X, Y}(i − 1, j − 1); X(i, j) = max{M(i − 1, j) − 5, X(i − 1, j) − 2, Y(i − 1, j) − 5}; Y(i, j) = max{M(i, j − 1) − 5, X(i, j − 1) − 5, Y(i, j − 1) − 2}; s is +2 for a match, −3 for a mismatch and 0 for any pair with an ambiguity code. A gap of k bases therefore scores −(5 + 2(k − 1)), the first base paying 5, and a gap directly after a gap of the other kind opens anew. Edges: M(0, 0) = 0, X(i, 0) = −(5 + 2(i − 1)), Y(0, j) = −(5 + 2(j − 1)), every other edge state impossible. Three named modes, never chosen automatically: global ends where both sequences end; semiglobal-read sets X(i, 0) = 0 and ends at the best M or Y where the read's last letter is placed, so reference letters before and after the read are free and gaps in the reference are charged everywhere; local sets every edge M to 0, restarts M wherever it would fall to 0 or below, never enters X or Y at 0 or below, and keeps segments that start after a pair that floors at 0, end on a pair at the optimum and never pass through one (Biopython's rule, after Waterman MS, Eggert M. J Mol Biol 1987;197(4):723-728, who do not allow zero-scoring segments added on to a local alignment). Ambiguity columns are excluded from identity; both strands are searched; a circular reference is searched by one explicit one-turn mapping on a certified text; the whole table is searched up to a cell limit, and above it the result is band-limited, with no number; there is one published tie order, co-optimal alignments are counted and co-optimal placements reported. An indel in a run or repeat is placed at its leftmost reference position; positions are the alignment's own and are not converted to VCF or HGVS conventions. Untrimmed ends show as differences and as overhang; on a circle, a full-length read can hide a deletion at its own ends. Checked against Biopython 1.88: Tutorial, ‘Pairwise sequence alignment’, https://biopython.org/docs/1.88/Tutorial/chapter_pairwise.html (source at tag biopython-188), read 14 October 2026, which lists ‘Gotoh (three-state)’ among the PairwiseAligner's algorithms and scores a gap of n as open + (n − 1) × extend. Biopython has no semiglobal mode; semiglobal-read is its global mode with the four end-deletion scores set to 0. Attribution to the original publications not yet checked.
- How it was checked: 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).
- What was not checked: not recorded for dna-align-v1@dna-align 1.0.0. Its absence does not mean everything was checked.
- Method, sources and checks
- On Drybench Sequence's methods page: Align
No independent scientist has yet reviewed these checks. What the levels mean.
Changes to its methods
- No correction is logged for dna-align-v1@dna-align 1.0.0.
Where it runs
The local MCP server serves this tool; the hosted MCP connection does not.