align_pair
Align TWO sequences on their own, globally (Needleman-Wunsch, or Gotoh with an affine penalty) or locally (Smith-Waterman / Gotoh), through biotite's align_optimal with the MSA panel's own knobs: substitution matrix, linear or affine gaps, and for a global alignment whether end gaps are charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sequences": "<sequences>"
},
"name": "align_pair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `global` aligns the two end to end; `local` finds the best-scoring stretch shared by both. Values: global (Global (Needleman-Wunsch / Gotoh)), local (Local (Smith-Waterman / Gotoh)). | global |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| gap_open | No | affine only: the penalty for starting a gap. Negative. Only applies when affine_gap is true. | |
| sequences | Yes | exactly two sequences: wire two upstream outputs here, or name two library documents. | |
| affine_gap | No | `true` charges separate opening and extension penalties (Gotoh); `false` one flat penalty per gap column. | |
| gap_extend | No | affine only: the penalty for each column a gap is extended by. Negative. Only applies when affine_gap is true. | |
| gap_penalty | No | the flat penalty per gap column. Negative. Only applies when affine_gap is false. | |
| align_matrix | No | the substitution matrix. `auto` reads the alphabet: EDNAFULL for nucleotides, BLOSUM62 for protein. Values: auto (Auto - from the alphabet), EDNAFULL (EDNAFULL - nucleotides (EMBOSS NUC.4.4)), BLOSUM62 (BLOSUM62 - amino acids). | auto |
| terminal_penalty | No | global only: `true` charges overhanging ends like an internal gap; `false` makes them free. Only applies when mode is global. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | Yes | the alignment score under the matrix and gap penalties | |
| spans | Yes | 1-based first and last residue of each input inside the aligned stretch | |
| summary | Yes | the method, the score and where the aligned stretch lies in each input | |
| alignedSequences | Yes | the two aligned rows, {name, aligned}, over the aligned stretch |