build_ena_submission
Turn a record into what ENA's Webin-CLI takes for an annotated sequence (-context sequence): an ENA flat file (.embl) and its manifest. Features are checked against the tables ENA's own validator reads, so what Webin-CLI would refuse (an unknown key, a missing mandatory qualifier, a double quote in a value, a duplicate feature) is refused or rewritten here, by name. A description under 10 characters, an entry under 100 bp and a missing study are reported first. It WRITES FILES and sends nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| study | No | the Webin Portal study accession (PRJEB… or ERP…). Webin-CLI refuses a set without one; left empty, the files are written and the reason reported. | |
| _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. | |
| genbank | Yes | the record to submit, as GenBank text. Its features, topology and DEFINITION are read from it. | |
| _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. | |
| mol_type | No | the source feature's mandatory /mol_type. `other DNA` is the INSDC value for a synthetic construct. | other DNA |
| organism | No | the scientific name of the source organism; ENA checks it against its taxonomy. `synthetic construct` is a real answer for a built vector. | synthetic construct |
| topology | No | circular for a plasmid (the ID line; only then may a feature cross the origin). Left empty, the record's own topology is used. Values: (From the record), circular (Circular), linear (Linear). Advanced. | |
| description | No | the DE line, what the sequence is. Left empty, each record's own DEFINITION is used; ENA refuses one shorter than 10 characters. | |
| geo_loc_name | No | where the sample came from, from the INSDC vocabulary, or a missing-value term. | missing: lab stock |
| collection_date | No | when the sample was collected, on the source feature. Optional, but must be INSDC-legal; a construct takes a missing-value term such as `missing: lab stock`. | missing: lab stock |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | the flat file and its manifest, each with its `name` and `text`. Gzip the flat file before running Webin-CLI; the manifest already names the `.gz` | |
| changes | Yes | every feature the writer refused, rewrote or left a qualifier off, each with ENA's reason | |
| command | Yes | the exact gzip and webin-cli invocation, with -validate | |
| reading | Yes | what the set is, generated from what was written | |
| written | Yes | features written, source excluded | |
| flatFile | Yes | the `.embl` alone, for reading or diffing | |
| problems | Yes | why Webin-CLI will refuse the set as it stands: a short description, a short entry, no study, or a malformed date or locality. Empty means none of those, never that the validator will be silent |