def seqToProtein(dnaSeq, minLen):
    newSeq = dnaSeq.upper().replace('N', '')
    start = time.time()
    (forwFrames, revFrames) = seqToFrames(newSeq)
    peptides = []
    for frame in forwFrames:
        peptide = tripletToAmino(frame, minLen)
        peptides += peptide
    for frame in revFrames:
        peptide = tripletToAmino(frame, minLen)
        peptides += peptide
    end = time.time()
    print((end - start))
    return peptides
def seqToProtein(dnaSeq, minLen):
    newSeq = dnaSeq.upper().replace('N', )
    start = time.time()
    (forwFrames, revFrames) = seqToFrames(newSeq)
    peptides = []
    for frame in forwFrames:
        peptide = tripletToAmino(frame, minLen)
        peptides += peptide
    for frame in revFrames:
        peptide = tripletToAmino(frame, minLen)
        peptides += peptide
    end = time.time()
    print((end - start))
    return peptides