jinfo/sequence.py
def translate(self) -> str:
        """
        Returns: the translated protein sequence of the DNA sequence
        """

        if len(self.seq) % 3 != 0:
            raise SeqLengthError("Seq cannot be split into codons, not a multiple of 3")
        codon_list = [self.seq[i : i + 3] for i in range(0, len(self.seq), 3)]
        return "".join([CODON_TABLE[codon] for codon in codon_list])

        Returns: the translated protein sequence of the DNA sequence
        
the translated protein sequence of the DNA sequence
the translated protein sequence of the DNA sequence
def translate(self) -> str:
        if len(self.seq) % 3 != 0:
            raise SeqLengthError("Seq cannot be split into codons, not a multiple of 3")
        codon_list = [self.seq[i : i + 3] for i in range(0, len(self.seq), 3)]
        return "".join([CODON_TABLE[codon] for codon in codon_list])
def translate ( self ) -> str : if len ( self . seq ) % 3 != 0 : raise SeqLengthError ( "Seq cannot be split into codons, not a multiple of 3" ) codon_list = [ self . seq [ i : i + 3 ] for i in range ( 0 , len ( self . seq ) , 3 ) ] return "" . join ( [ CODON_TABLE [ codon ] for codon in codon_list ] )
Returns: the translated protein sequence of the DNA sequence
Returns : the translated protein sequence of the DNA sequence
"""
        Returns: the translated protein sequence of the DNA sequence
        """
self