domesticate_part
Silently recode the internal Type-IIS sites inside a part's coding sequence so the part can be used in a Golden Gate assembly — same protein, no recognition site. Only occurrences the given CDS covers can be fixed this way; any outside it are reported untouched rather than skipped quietly, because a site in a promoter needs a different answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | the codon-usage table to guide the synonymous choice, BY NAME, as the Codon Usage panel lists it. This is the way to pass a table: it resolves against the tables loaded in this project, so the numbers come from one someone built or fetched. Leave unset and the active table is used. | |
| _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. | |
| enzyme | No | the Type-IIS enzyme whose sites must go. | BsaI |
| cds_end | Yes | 0-based end of the coding sequence (exclusive). | |
| _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 part to domesticate — wire a record, name a library document, or leave unset to use the open record. | |
| cds_start | Yes | 0-based start of the coding sequence within the part. | |
| table_tsv | No | ONLY for a table you are pasting yourself, measured elsewhere — prefer `table`, which names one this project already has. Do NOT write a table out from memory: codon frequencies are measured data, and a typed one is indistinguishable from a real one in the result. TSV: codon<TAB>count. Advanced. | |
| cds_strand | No | 1 for the top strand, -1 for the bottom. Values: 1 (Top strand), -1 (Bottom strand). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixes | Yes | one line per synonymous swap, as the engine logs it | |
| sequence | Yes | the part with every reachable internal site recoded | |
| fixedCount | Yes | how many internal occurrences were actually fixed | |
| outsideCds | Yes | internal sites the CDS does NOT cover — left untouched, and yours to solve another way |