Translate
seq_translateTranslate nucleotide sequences into protein using NCBI genetic code tables. Choose standard or vertebrate mitochondrial code, and stop at first in-frame stop codon if needed.
Instructions
Translate a nucleotide sequence to protein using an NCBI genetic code table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_stop | No | If True, stop translation at the first in-frame stop codon (the terminal '*' is omitted); if False, stops translate to '*' (BioPython convention). | |
| sequence | Yes | Nucleotide sequence (DNA or RNA; case-insensitive). IUPAC ambiguity codes (R, Y, S, W, K, M, B, D, H, V, N) are accepted where documented. | |
| table_id | No | NCBI genetic code table id. 1 = Standard; 2 = Vertebrate Mitochondrial (TGA codes for W). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_stop | Yes | The requested to_stop flag (True = stop translation at the first in-frame stop codon). Reports the input request, not whether a stop codon was actually encountered. | |
| sequence | Yes | The input nucleotide sequence (uppercased). | |
| table_id | Yes | Genetic code table id used. | |
| table_name | Yes | Genetic code table name used. | |
| translated | Yes | The translated protein sequence ('*' marks a stop codon). |