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

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

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