def generateOutput(outputPath, minLen, inputFile):
    finalPeptides = {}
    seqDict = parseFastaDna(inputFile)
    for (key, value) in seqDict.items():
        dnaSeq = str(value).upper()
        peptides = seqToProteinNew(dnaSeq, minLen)
        for peptide in peptides:
            if (peptide not in finalPeptides.keys()):
                finalPeptides[peptide] = [key]
            else:
                finalPeptides[peptide].append(key)
    print(finalPeptides)
    saveHandle = (outputPath + '/DNAFastaProteins.fasta')
    with open(saveHandle, 'w') as output_handle:
        SeqIO.write(createSeqObj(finalPeptides), output_handle, 'fasta')
def generateOutput(outputPath, minLen, inputFile):
    finalPeptides = {}
    seqDict = parseFastaDna(inputFile)
    for (key, value) in seqDict.items():
        dnaSeq = str(value).upper()
        peptides = seqToProteinNew(dnaSeq, minLen)
        for peptide in peptides:
            if (peptide not in finalPeptides.keys()):
                finalPeptides[peptide] = [key]
            else:
                finalPeptides[peptide].append(key)
    print(finalPeptides)
    saveHandle = (outputPath + '/DNAFastaProteins.fasta')
    with open(saveHandle, 'w') as output_handle:
        SeqIO.write(createSeqObj(finalPeptides), output_handle, 'fasta')