PlasmidPop user guide All pages Open the app

Translation

PlasmidPop translates DNA in two places: under CDS features in the sequence view, and for any selection in the Translate tab.

Amino acids under CDS features

With Translations on in the toolbar, every CDS feature gets a line of one-letter amino acids between the strands and the feature bars. Each residue sits under its codon, and codons are shaded alternately so the frame is easy to follow. The translation honours:

Stops are shown as *, codons with ambiguity codes as X.

A /transl_except names its codon by position in the sequence, so it moves with its feature: insert bases upstream, reverse-complement the molecule, set a new origin or copy the gene into another tab, and it still names the same codon. An edit to that codon's own bases removes it. The same goes for /anticodon on a tRNA. Copying a region that clips a CDS drops its stored /translation, which no longer matches the bases; where the copy splits the CDS into stretches, a /transl_except stays only on the stretch that holds its codon.

Clicking an amino acid selects its codon — the three bases it is read from — and dragging along the line extends the selection codon by codon, which is a quick way to take a protein-aligned piece of a gene. Ctrl+Shift+← and Ctrl+Shift+→ do the same from the keyboard: the first press takes the codon the cursor is in, each one after that adds the next. Click the feature bar below instead to select the whole feature.

A /transl_table naming a code NCBI does not use — 7 and 8 were withdrawn, 17 to 20 were never issued — falls back to the standard code, and a warning in the status bar says which feature asked for what. So does a /transl_except that names no codon of its feature, such as one out of frame; that codon is read with the genetic code.

Numbered residues

Above the amino acids, the first residue of each CDS and every tenth one (10, 20, 30, …) carry their number, centred over the letter. Residue 1 is the first whole codon — after the bases a /codon_start of 2 or 3 skips — and the count runs on through every piece of a join(...), however the exons split the codons, and straight through the origin of a circular sequence. On the reverse strand the count runs right to left, the way the gene is read, so residue 1 is at the right-hand end.

Format ▸ Residue numbers chooses how many are numbered:

The sequence SVG export numbers the residues the same way. The Translate tab numbers its frames too, see below. A protein document has no such numbers: its ruler already counts residues.

Checking a record against itself

Most records state the protein they expect: a CDS carries a /translation qualifier its author wrote out. When a file is opened, every CDS that has one is translated from its own bases and compared with it, and a disagreement is reported in the status bar with the feature, where it is, and the first residue that differs:

CDS rpoB at complement(4,181,245..4,185,273) — the file's /translation
differs from the sequence at residue 12: the file says Q, the sequence gives E.

This is worth knowing before trusting either one. It usually means the file and its own annotation have drifted apart — a sequence edited without the translation being redone — but it can equally mean the feature needs a genetic code or a /codon_start it does not have. Only the first eight are listed; the rest are counted.

An X on either side is not counted as a disagreement: it is a residue nobody is claiming to know. A U or O in the file is counted unless a /transl_except puts it there.

The check also follows your edits. As soon as an edit makes a CDS disagree with its /translation — a base changed inside it, say — its row in the Features list gets a ⚠, and hovering it says how. Select the feature and the same explanation appears under it, with two ways out:

Either is one step in the History, so Ctrl+Z undoes it. A record that disagreed with itself when it was opened carries the ⚠ from the start.

The Translate tab

The tab translates the current selection, or the whole sequence when nothing is selected, in all six frames:

Each frame shows its length in amino acids, the number of stop codons, and the protein with every stop marked, so the open frame stands out. Copy puts one frame on the clipboard, and Open as protein opens it as a protein document of its own, stops and all. Export FASTA downloads all six as one protein FASTA file, one record per frame, named after the document and the range.

Above the frames, CDS features lists the coding features of the selection (or of the whole sequence), each with Open as protein: the protein it codes for opens in a tab of its own, named after the CDS. It is read exactly as the line under the CDS is — its own genetic code, /codon_start, /transl_except, every piece of a join, the reverse strand — and the stop that ends it is left off. See Proteins.

Code chooses the genetic code the six frames are read with — any of the 27 NCBI numbers, the standard code by default. A frame full of stops under the standard code often has none under the right mitochondrial one, which is the quickest way to tell what you are looking at. The choice is remembered and is shared with the ORFs tab, because both are reading bases that carry no /transl_table of their own; CDS features are read with theirs whatever is chosen here.

Export FASTA names the code in each description line when it is not the standard one.

Each frame's protein is set in blocks of ten, numbered as a sequence is printed: the first block by 1 and by 10 at its end, each block after by its last residue (20, 30, …). The count starts afresh in every frame, at the frame's first codon — at the left of the selection for +1 to +3 and at its right for −1 to −3, since those read the other strand. The numbers are not part of the text, so selecting and copying a frame copies residues only. Format ▸ Residue numbers ▸ Off shows the frames as plain text, and so does a frame of more than 20,000 residues.

Recode a CDS for a host

Recode… beside a CDS in the CDS features list chooses new codons for the same protein, to suit the organism the gene will be expressed in. The protein does not change: every result is translated again, with the CDS's own genetic code, and compared with the protein before it is offered, and a difference stops it with a message instead of a result.

Recode works on the analysis worker and shows a preview and nothing else: the CAI (Codon Adaptation Index, Sharp and Li 1987, relative to the host's own commonest codons) before and after, how many codons change, how many are ones the host seldom uses, and any limit that could not be met without changing the protein, with where it is. Apply makes the change as one step in the History, named Recode _name_ for _host_, and adds a /note to the CDS saying it was recoded, with the CAI and the number of codons changed; Undo takes back the bases and the note together.

The start codon and the stop codon are left as they are, and so is any codon with a base that is not A, C, G or T. A CDS made of several pieces (a join), one that runs across the origin of a circular sequence, and one with /transl_except are not recoded, and the button says which. The bases only change within the CDS; features, case and the length of the document stay as they were.

How to find the reading frame of a fragment

  1. Select the fragment in either view (or press Ctrl+F and find it).
  2. Open the Translate tab.
  3. The frame with no stops, or the fewest, is the one to look at.
  4. To annotate it, use the ORFs tab and Add as CDS feature, or select the exact range and Add feature with type CDS.