build_addgene_deposit
Fill Addgene's own deposit spreadsheet from a record: one row per plasmid with its name and sequence, plus your answers for every plasmid (purpose, plasmid type, cloning method, resistance, growth strain and the other drop-downs). The sheet is fetched from Addgene each run, so its columns and choices are current; a value it would refuse is left out and named, and columns lists every column with its choices. It WRITES A FILE and sends nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _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. | |
| answers | No | the sheet's columns to fill for every plasmid, header → value, e.g. {"Purpose": "Expresses EGFP in E. coli", "Bacterial Resistance": "Ampicillin"}. A drop-down column takes one of its own choices; run once without answers to read them from `columns`. | |
| genbank | Yes | the plasmids to deposit, as GenBank text: one row per nucleotide record. | |
| _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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | the filled workbook: `name`, and its bytes as `base64` | |
| columns | Yes | every column of Addgene's sheet: its header, Addgene's help text, and its choices where it has a drop-down | |
| reading | Yes | what was written and what is left for the depositor, generated from the run | |
| written | Yes | plasmids written into the sheet | |
| problems | Yes | every value left out because the sheet would refuse it, with the plasmid, the column and the reason |