translate_sequence
Translate the subject DNA to protein (Biopython Bio.Seq.translate semantics). The SUBJECT is the selection when there is one, the named feature when feature is given, and the whole record otherwise — the region output says which, so never paste bases in to scope it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cds | No | strict CDS: require a length multiple of 3, a start codon and a terminal stop (errors otherwise). Advanced. | |
| table | No | NCBI genetic-code table id (1 = standard). | |
| _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. | |
| feature | No | translate this annotated coding feature by NAME instead of the selection (e.g. "ADH1"). A name the record does not annotate is refused with the names it does. | |
| reverse | No | read the region as the reverse complement. Stated explicitly this always wins; left out, the selection's or the feature's own strand decides. Advanced. | |
| to_stop | No | stop at the first stop codon instead of emitting the stop symbol. | |
| _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 |
|---|---|---|---|
| length | Yes | protein length in residues | |
| region | Yes | what was translated, and on which strand | |
| protein | Yes | the translated protein |