check_invariants
Decide whether a sequence is scientifically admissible: protein unchanged, forbidden restriction sites absent, reading frame intact, length/GC/CAI inside stated bounds. Every verdict names what broke, where, and the remedy. Run this after any design or optimisation step, and stop the chain when admissible is false — never report a designed sequence without it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | NCBI translation table. Advanced. | |
| _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. | |
| max_gc | No | maximum GC fraction (0-1). | |
| min_gc | No | minimum GC fraction (0-1). | |
| min_cai | No | minimum CAI (needs cai_organism). Advanced. | |
| _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. | |
| sequence | No | the sequence to judge — defaults to the open record. | |
| gc_window | No | judge every window of this many bases instead of the whole sequence — a synthesis is rejected on a local GC peak, not on the mean. In bp. Advanced. | |
| max_length | No | maximum length [bp]. In bp. Advanced. | |
| min_length | No | minimum length [bp]. In bp. Advanced. | |
| cai_organism | No | host for the codon-adaptation check, e.g. sce. Advanced. | |
| forbid_sites | No | enzyme names that must not cut, e.g. BsaI, BsmBI. | |
| require_stop | No | with require_frame: the last codon must be a stop. Only applies when require_frame is true. Advanced. | |
| require_frame | No | length divisible by 3 and no premature stop. | |
| require_start | No | with require_frame: the first codon must be a start codon. Only applies when require_frame is true. Advanced. | |
| preserve_protein_of | No | the ORIGINAL coding sequence (or its protein): the result must still translate to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | how many invariants did not hold | |
| checked | Yes | how many invariants were asked | |
| summary | Yes | one line per failure: value, requirement, remedy | |
| verdicts | Yes | per-invariant verdicts, with breach coordinates | |
| admissible | Yes | every invariant was decided and held |