adopt_trace_calls
Replace a Sanger read's own base calls with TraceTuner's, on the trace that is open, so the rest of the editor works from the re-called read: its sequence, its consensus, its verification against a reference, and every export. The signal is untouched — this is the same electropherogram with a second opinion about where the bases are — and every coordinate already on the read is carried across the peaks it sits on, so a trim window, a hand-corrected call and an annotation all follow. Reports what moved and what could not be placed. Use call_bases_from_trace instead to ASK what the re-call says without changing the read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | which reading to adopt. `rescore` keeps the instrument's bases and only re-measures their confidence; `denovo` derives the bases from the signal and can return a different read LENGTH; `het` and `mix` derive them and write a two-base IUB code where a second allele is present, differing only in whether the two are assumed equal in amount. | rescore |
| table | No | the instrument and polymer the quality scale was calibrated on. There is no universal default: a base scores differently under a different table. | 3730pop7 |
| _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. | |
| min_ratio | No | for `het` and `mix` only: how tall a second peak must be, as a fraction of the called one, to be called as a second allele. Ignored by the other two modes. Only applies when mode is het or mix. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bases | Yes | how many bases the read carries after the adoption | |
| sequence | Yes | the read the document now carries, trimmed and with manual calls applied | |
| basesBefore | Yes | how many it carried before it, so a gate can see the read change length | |
| everythingPlaced | Yes | false when any annotation end sat on a call the new reading does not make, so it was placed at its nearest neighbor. Wire it into a gate before trusting a boundary |