Construct auto-fix (domestication)
construct_autofixIteratively substitutes synonymous codons to resolve unwanted restriction sites (domestication for Golden Gate), homopolymers, tandem repeats, predicted secondary structure, cryptic RBS/polyA motifs and hidden alternate-frame ORFs that construct_qc flags — without changing the encoded protein (verified). Does NOT touch premature stops or GC extremes; re-run construct_qc afterward to confirm. A native TypeScript alternative to a constraint-solver sidecar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcLow | No | ||
| gcHigh | No | ||
| gcWindow | No | ||
| organism | No | Codon-usage table to prefer among synonymous options. | ecoli |
| sequence | Yes | Nucleotide sequence (raw or FASTA; IUPAC accepted). | |
| maxPasses | No | Repeat full passes until clean or no further progress. | |
| frameStart | No | 1-based nucleotide where the reading frame begins. | |
| avoidEnzymes | No | Enzyme names whose internal sites should be removed (e.g. ["BsaI","BsmBI"] for Golden Gate domestication). | |
| homopolymerMin | No | ||
| crypticOrfMinAa | No | Minimum peptide length (aa) for a hidden alternate-frame ORF to be flagged. |