@staticmethod<EOL><INDENT>def _retranslate(seq):<DEDENT>
if len(seq['<STR_LIT>']) % <NUM_LIT:3> != <NUM_LIT:0>:<EOL><INDENT>trunc = len(seq['<STR_LIT>']) % <NUM_LIT:3><EOL>seq['<STR_LIT>'] = seq['<STR_LIT>'][:-trunc]<EOL><DEDENT>seq['<STR_LIT>'] = Seq(seq['<STR_LIT>'], generic_dna).translate()<EOL>
Retranslates a nucleotide sequence following refinement.
Input is a Pair sequence (basically a dict of MongoDB output).