def create_subunits_fasta(args, fasta_dic_unique_sorted,
    dic_repeated_sorted, unique_new_id, name_fasta):
    """
    If the user wants info about the stoichiometry, it is created a fasta
    with the unique subunits.
    """
    fasta_subunits = open(name_fasta + '_subunits.fasta', 'w')
    stoic = ''
    for id in unique_new_id:
        stoic += id + ':' + str(dic_repeated_sorted[id]) + ','
        fasta_subunits.write('>' + name_fasta + '_' + id + '\n' +
            fasta_dic_unique_sorted[id] + '\n')
    print('A file named ' + name_fasta +
        '_subunits.fasta with the unique subunits has been created' + '\n' +
        'From the given fasta, the stoichiometry of the complex is ' +
        stoic[:-1] + '\n' +
        'Please choose the subunits you want to see in the output:')
    args.sto = input()
    return args.sto
