Translation with NCBI's genetic code tables, version 1.1.0
translation-ncbi-genetic-codes@1.1.0: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Use it on the web: ORF finder: open reading frames · Use it on the web: Translate DNA to protein · Every version of this method · Every method · What the levels mean
Version 1.1.0
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page. translation-ncbi-genetic-codes@1.1.0
What this page can and cannot show
What was checked
Checked against Biopython 1.88 exactly on 108 frame translations of three sequences in genetic codes 1, 2 and 11, full length and to the first stop, and on 5 annotated coding sequences (6 October 2026).
Cases: no case set is linked to translation-ncbi-genetic-codes@1.1.0.
What was not checked
The engine's 27 tables were compared with gc.prt 4.6 fetched on 11 November 2026 (byte-identical to the 6 October fetch; every residue and initiation line agrees). The IUPAC 1985 recommendation itself was not re-read. No published case set names translation-ncbi-genetic-codes@1.1.0 by exact key. No person has worked these cases or read these sources; the reading and checks recorded here were made by AI sessions.
Equations
Read the sequence in the chosen frame three bases at a time and look each codon up in the chosen NCBI table (ncbieaa: 64 residues in NCBI's codon order, "*" a stop). A codon with IUPAC ambiguity codes is expanded to every codon it can stand for: if all give one residue (a stop included) it reads that residue, otherwise X. Reverse frames read the reverse complement. With firstCodonAsMet, a first codon that the table marks as an initiation codon (sncbieaa "M"
for an ambiguous codon, only when every expansion is one) reads M. With stopAtFirstStop, translation ends at the first in-frame stop
refused for tables with context-dependent termination.
Source: NCBI. The Genetic Codes, gc.prt, version 4.6 (last modified 10 June 2020). Public domain., table all 27 Genetic-code-table entries (ncbieaa and sncbieaa lines), version 4.6; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person.
Conventions
Convention chosen by this project: a codon with IUPAC ambiguity codes reads a residue only when every codon it can stand for gives that residue, and otherwise reads X, including when it may or may not be a stop. Some programs print B, Z or J where the choices are Asp/Asn, Glu/Gln or Leu/Ile, and others refuse ambiguous bases; they would show those letters, or no translation, where this shows X.
As ruled by this project on 11 November 2026, section "Q2".
Constants
| Constant | Value and unit | Source | Date read |
|---|---|---|---|
| NCBI's 27 genetic code tables (residues and initiation marks) (codes) | a table of values, part of the method | NCBI. The Genetic Codes, gc.prt, version 4.6 (last modified 10 June 2020). Public domain., table all 27 Genetic-code-table entries (ncbieaa and sncbieaa lines) | 2026-11-11 |
Worked example
Worked example: one case of translation-ncbi-genetic-codes@1.1.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- sequence = ATGGCNTTRTAA
- alphabet = dna
Steps
- codon1: table 1 look-up = ATG → M → M, from codon = ATG, stands for = ATG.
- codon2: table 1 look-up = GCN → A, A, A, A → A, from codon = GCN, stands for = GCA, GCC, GCG, GCT.
- codon3: table 1 look-up = TTR → L, L → L, from codon = TTR, stands for = TTA, TTG.
- codon4: table 1 look-up = TAA → * → *, from codon = TAA, stands for = TAA.
- protein: concatenate = MAL*, gives result.protein.
The working, as the case writes it:
Look up each codon in table 1
an ambiguous codon is expanded and reads the common residue, else X.
Answer
result.protein= MAL*
Where these values came from: a published dataset, Python decimal (50 significant digits) 3.13.18; NCBI. The Genetic Codes, gc.prt version 4.6, table 1 (Standard), ncbieaa and sncbieaa lines; IUPAC ambiguity codes (NC-IUB 1985): N = A, C, G or T; R = A or G.
The build has not run this example through the tool.
Worked by an AI session on 2026-11-11. No person has yet worked this case.
What it refuses, and its input ranges
MODE_REQUIRED: frame is omitted (required in 1.0.0; no default).UNKNOWN_GENETIC_CODE: geneticCode does not name an NCBI translation table.ONE_FRAME_OPTION: stopAtFirstStop or firstCodonAsMet is set when frame is 'all'.CONTEXT_DEPENDENT_TERMINATION: stopAtFirstStop is true for a genetic code with context-dependent termination (refused with nextStep).
Changes
No correction is logged for translation-ncbi-genetic-codes@1.1.0.
Tools that use it
Cite this version
Translation with NCBI's genetic code tables. Drybench; translation-ncbi-genetic-codes@1.1.0; https://www.drybench.com/methods/m/translation-ncbi-genetic-codes/1.1.0 (accessed [date]).