def tripletToAmino(frame, minLen):
    aminoList = []
    peptideList = []
    for triplet in frame:
        amino = DNA_TABLE[triplet]
        if (amino == (- 1)):
            if (len(aminoList) > minLen):
                peptideList.append(''.join(aminoList))
                aminoList.clear()
        else:
            aminoList.append(amino)
    if (len(aminoList) > minLen):
        peptideList.append(''.join(aminoList))
        aminoList.clear()
    return peptideList
def tripletToAmino(frame, minLen):
    aminoList = []
    peptideList = []
    for triplet in frame:
        amino = DNA_TABLE[triplet]
        if (amino == (- 1)):
            if (len(aminoList) > minLen):
                peptideList.append(.join(aminoList))
                aminoList.clear()
        else:
            aminoList.append(amino)
    if (len(aminoList) > minLen):
        peptideList.append(.join(aminoList))
        aminoList.clear()
    return peptideList