Translate nucleotide sequences to amino acid sequences

This script takes a file with nucleotide sequences and translates them into amino acid sequences.

Author: Mudra Hegde
Email: mhegde@broadinstitute.org

Required packages

  1. pandas

Inputs

  1. Input File: .txt file with list of sequences to translate in the first column. The consecutive columns can have anything. The column with the translated sequences will be included as the last column.
  2. Frame: Reading frame of sequence (1,2 or 3)
  3. Codon File: .txt file with codons in the first column and the corresponding amino acid in the second column. Default: Codon_map.txt (provided in this folder).
  4. Output File

To run this script, type the following on the terminal:
python translate_seqs.py --inputfile <Path to input file> --frame <1, 2 or 3> --codon-file <Path to codon file> --outputfile <Name of output file>