def __call__(self, s):
        'translate nucleotide string s to amino acid string'
        s = s.upper()
        s = s.replace('U', 'T')
        l = []
        for i in range(0, len(s), 3):
            try:
                l.append(self.geneticCode[s[i:i+3]])
            except __HOLE__:
                l.append('X') # uninterpretable
        return ''.join(l)
dataset/ETHPy150Open cjlee112/pygr/pygr/sequtil.py/AATranslation.__call__