Skip to main content

Sequence Translation

To translate dna alignment to amino acid:

segul sequence translate -d [path-to-alignment-files] -f [sequence-format-keyword]

By default, the app will use the standard code table (NCBI Table 1). To set the translation table, use the --table option. For example, to translate dna sequences using NCBI Table 2 (vertebrate MtDNA):

segul sequence translate -d loci/ -f fasta --table 2

You can also set the reading frame using the --rf option:

segul sequence translate -d loci/ -f fasta --table 2 --rf 2

To show all the table options, use the --show-tables flag:

segul sequence translate --show-tables

Supported Translation Tables

Sources: NCBI Genetic Code Tables:

Table NoGenetic Code
1The Standard Code
2The Vertebrate Mitochondrial Code
3The Yeast Mitochondrial Code
4The Mold, Protozoan, and Coelenterate Mitochondrial Code and the Mycoplasma/Spiroplasma Code
5The Invertebrate Mitochondrial Code
6The Ciliate, Dasycladacean and Hexamita Nuclear Code
9The Echinoderm and Flatworm Mitochondrial Code
10The Euplotid Nuclear Code
11The Bacterial, Archaeal and Plant Plastid Code
12The Alternative Yeast Nuclear Code
13The Ascidian Mitochondrial Code
14The Alternative Flatworm Mitochondrial Code
16Chlorophycean Mitochondrial Code
21Trematode Mitochondrial Code
22Scenedesmus obliquus Mitochondrial Code
23Thraustochytrium Mitochondrial Code
24Rhabdopleuridae Mitochondrial Code
25Candidate Division SR1 and Gracilibacteria Code
26Pachysolen tannophilus Nuclear Code
29Mesodinium Nuclear Code
30Peritrich Nuclear Code
33Cephalodiscidae Mitochondrial UAA-Tyr Code