# Open reading frames

`seq_find_orfs` · Runs: Built, not hosted · Level: Checked against a reference: an independent scan cross-checked with Biopython 1.88 and NCBI ORFfinder 0.4.3

Finds open reading frames on both strands with an NCBI genetic code.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Sequences](https://www.drybench.com/mcp/catalogue/sequences)

[Ask your assistant](https://www.drybench.com/mcp/connect) · [Open in Drybench Sequence](https://www.drybench.com/sequence/app)

```cite
Open reading frames (seq_find_orfs), Drybench MCP server 1.0.0; orf-finder-ncbi-conventions@2.1.0 (Checked against a reference); translation-ncbi-genetic-codes@1.1.0 (Checked against a reference); https://www.drybench.com/mcp/tools/seq-find-orfs
```

## What it is

Finds open reading frames on both strands with an NCBI genetic code under NCBI ORFfinder conventions (ATG or table alternative initiation codons, configurable minimum coding length, nested ORFs counted and optionally listed). Reads circular records round the origin. Coordinates are 1-based on the reported strand.

Field: [Sequences](https://www.drybench.com/mcp/catalogue/sequences). It is the same calculation as [Drybench Sequence](https://www.drybench.com/sequence/app), called by an AI assistant through the server.

## What it does

**You give**

- `sequence` (required): The DNA or RNA sequence: plain letters, FASTA (first record) or GenBank. Spaces, line breaks and position numbers are ignored. At most 1,000,000 letters.
- `alphabet`: How to read the sequence. Omit to take it from the record (FASTA or GenBank fields) or, failing that, from the letters. 'dna-circular' reads DNA as a circle.
- `geneticCode`: NCBI translation table id (defaults to the standard code).
- `minimumCoding`: Minimum coding length in bases from start codon through the codon before the stop.
- `alternativeStarts`: Accept the genetic code's alternative initiation codons as well as ATG (default false).
- `includeNested`: Include nested ORFs in result.nested (default false; result.nestedCount is always returned).

and 1 more, listed below

**A request and its answer**

Asked with

- `alphabet`: dna
- `geneticCode`: 1
- `minimumCoding`: 75
- `alternativeStarts`: no
- `includeNested`: no
- `includeNucleotides`: no

It answered (computed)

- `circular`: no
- `length`: 246
- `nestedCount`: 0

Computed by this tool when the page was built. The steps between are not recorded, so this is not a worked example. The reply carries more values than are shown here. One answer to one request, not a reference value.

**Limits**

- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
- No other limit is recorded for this tool.

Every reply also carries its app's limits line: "Nothing here is an assessment of any person's variant, sample or molecule, and a difference reported from a reference is a difference, not an interpretation."

**It will not answer when**

- frame is omitted (required in 1.0.0; no default).
- geneticCode does not name an NCBI translation table.
- stopAtFirstStop or firstCodonAsMet is set when frame is 'all'.
- stopAtFirstStop is true for a genetic code with context-dependent termination (refused with nextStep).

### Every input, with its units

7 inputs

- `sequence` (required): The DNA or RNA sequence: plain letters, FASTA (first record) or GenBank. Spaces, line breaks and position numbers are ignored. At most 1,000,000 letters.
- `alphabet`: How to read the sequence. Omit to take it from the record (FASTA or GenBank fields) or, failing that, from the letters. 'dna-circular' reads DNA as a circle.
- `geneticCode`: NCBI translation table id (defaults to the standard code).
- `minimumCoding`: Minimum coding length in bases from start codon through the codon before the stop.
- `alternativeStarts`: Accept the genetic code's alternative initiation codons as well as ATG (default false).
- `includeNested`: Include nested ORFs in result.nested (default false; result.nestedCount is always returned).
- `includeNucleotides`: Include each ORF's nucleotides from start to stop, 5-prime to 3-prime on its strand (default false).

### Every refusal, with its code

4 refusals

| Code | When |
| --- | --- |
| `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). |

## The calculation

2 methods, each with its equations, constants and worked example.

### [Open reading frames](https://www.drybench.com/methods/m/orf-finder-ncbi-conventions/2.1.0)

`orf-finder-ncbi-conventions@2.1.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for orf-finder-ncbi-conventions\@2.1.0.

### [Translation with NCBI's genetic code tables](https://www.drybench.com/methods/m/translation-ncbi-genetic-codes/1.1.0)

`translation-ncbi-genetic-codes@1.1.0`

```text
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 1.

| Constant | Value | From |
| --- | --- | --- |
| NCBI's 27 genetic code tables (residues and initiation marks) `codes` | a table of values, part of the method | Source 1 |

**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.

Kind of method: not recorded.

**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**

1. codon1: table 1 look-up = ATG → M → M, from codon = ATG, stands for = ATG.
2. codon2: table 1 look-up = GCN → A, A, A, A → A, from codon = GCN, stands for = GCA, GCC, GCG, GCT.
3. codon3: table 1 look-up = TTR → L, L → L, from codon = TTR, stands for = TTA, TTG.
4. codon4: table 1 look-up = TAA → \* → \*, from codon = TAA, stands for = TAA.
5. protein: concatenate = MAL\*, gives result.protein.

The working, as the case writes it:

```text
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.

## Sources

1. NCBI. The Genetic Codes, gc.prt, version 4.6 (last modified 10 June 2020). Public domain. Used for: Translation with NCBI's genetic code tables. At: table all 27 Genetic-code-table entries (ncbieaa and sncbieaa lines). **Read in full, 11 November 2026**

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Checked against a reference, the lowest of its 2 methods.

**Checked against:** Open reading frames: An independent scan cross-checked with Biopython 1.88 and NCBI ORFfinder 0.4.3 on 18 cases (6 October 2026), and on circular records against an independent derivation on 64 cases and their rotations (14 October 2026). Translation with NCBI's genetic code tables: 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:** Open reading frames: No case set is linked to this version. Translation with NCBI's genetic code tables: No case set is linked to this version.

**Hostile inputs:** Sent 13 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Same answer:** Called twice and with its arguments in another order, it gave the same result. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Not checked:** Open reading frames: Not recorded. Its absence does not mean everything was checked. Translation with NCBI's genetic code tables: 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 independent scientist has yet reviewed this.

### What was not checked, in full

from the method records

[Translation with NCBI's genetic code tables](https://www.drybench.com/methods/m/translation-ncbi-genetic-codes/1.1.0)

- 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.

### What this project's records still lack

6 things

- A case worked by hand from the source's equation for orf-finder-ncbi-conventions\@2.1.0.
- A run of the worked example through the tool for translation-ncbi-genetic-codes\@1.1.0.
- The equation for orf-finder-ncbi-conventions\@2.1.0.
- The constants with their sources for orf-finder-ncbi-conventions\@2.1.0.
- A case set linked to this version for both methods.
- A record of what was not checked for orf-finder-ncbi-conventions\@2.1.0.

### Cite a number from this tool

the cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

```cite
seq_find_orfs, server 1.0.0; orf-finder-ncbi-conventions@2.1.0 (Checked against a reference); translation-ncbi-genetic-codes@1.1.0 (Checked against a reference); receipt 7c79d8045fd0/da6ca5179f8d; methods https://www.drybench.com/methods/sequence; page https://www.drybench.com/methods/tools/seq-find-orfs. Quote this line with any number taken from this reply.
```

### Changes to its methods

0 changes

No change is logged for these method versions.
