build_assembly_report
Build DnaCauldron's assembly report from an assembly result: the per-construct summary table, the constructs and errors spreadsheets as pandas-compatible CSV, and the Outcome / Number of assemblies stats. Wire golden_gate_assemble or gibson_assemble's products, errors and warnings outputs into it.
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. | |
| enzyme | No | the Type-IIS enzyme, for a method that has one — it becomes the report's `enzymes` column, mirroring DnaCauldron's `Type2sRestrictionAssembly.get_extra_construct_data()`. Leave it empty for Gibson, which has no enzyme: an empty column would imply one exists. | |
| errors | No | structured assembly errors — wire the assembly node's `errors` output. These become the errors spreadsheet, which is the most useful thing in a report about a run that did not work. | |
| _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. | |
| products | No | the enumerated constructs — wire an assembly node's `products` output. Each needs `id`, `sequence` and `fragmentNames`, which is what both assembly nodes emit. | |
| warnings | No | structured assembly warnings — wire the assembly node's `warnings` output. | |
| assembly_name | No | the name for this assembly: the `assembly_name` column of the summary table and the first field of every errors row. | assembly |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stats | Yes | the Outcome / Number of assemblies table, as `compute_stats` produces it | |
| report | Yes | the whole report object, including the summary dataframe and the plots decision | |
| errorsCsv | Yes | the errors spreadsheet — upstream's `errors.csv`, or an empty string when the run had none. Faithful to upstream's own 4-header / 3-field mismatch | |
| partsUsed | Yes | every part name that appears in at least one construct | |
| summaryCsv | Yes | the constructs spreadsheet, pandas-compatible CRLF CSV — upstream's `constructs.csv` | |
| summaryText | Yes | the report as plain text, for a run record or a note | |
| warningsCsv | Yes | the warnings spreadsheet, or an empty string when the run had none | |
| constructCount | Yes | how many constructs the summary table describes |