Skip to content
/ fna2faa Public
forked from luispedro/fna2faa

Translate nucleotides (DNA & RNA) to aminoacid using IUPAC ambiguity codes

License

Notifications You must be signed in to change notification settings

unode/fna2faa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Translates nucleotides (DNA & RNA) in FASTA format to aminoacid sequences and can handle translation of ambiguous codons using IUPAC ambiguity codes.

Usage

Defaults to translating the first frame in forward direction, doesn't stop on STOP codons, uses * as STOP symbol and X for untranslatable codons.

Can translate sequences from a file or STDIN/PIPE (by passing - as filename) and outputs to STDOUT.

Options

  • -q or --quiet: silence warning messages
  • -a or --all_frames: output translation for all 6 possible frames
  • -f or --frame i: specify which frame to output (0 to 5). Frames 0 to 2 are forward strand, 3 to 5 are reverse strand.
  • -s or --first_stop: stop translation when first stop codon is found
  • -t or --stop_codon: character to use as stop symbol. Defaults to *
  • -n or --no_bogus: skips untranslatable codons instead of printing X

Testing

A small test case is available. Use:

make test

to run it.

Authors

License: GPLv3+

Test status: GitHub Actions

About

Translate nucleotides (DNA & RNA) to aminoacid using IUPAC ambiguity codes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 80.1%
  • Makefile 10.3%
  • Shell 9.6%