def get_translation_db(seqDB):
    """Use cached seqDB.translationDB if already present, or create it """
    try:
        return seqDB.translationDB
    except __HOLE__: # create a new TranslationAnnot DB
        tdb = TranslationDB(seqDB)
        try:
            seqDB.translationDB = tdb
        except AttributeError:
            pass # won't let us cache? Just hand back the TranslationDB
        return tdb
dataset/ETHPy150Open cjlee112/pygr/pygr/translationDB.py/get_translation_db