def write_fasta_dict(fasta_dict, out_file):
    """
    Write sequence dictionary in fasta format
    Parameters
    ----------
    fasta_dict [dict]: sample_id indexed dictionary of sequences
    out_file [str]: Path of file to write sequences to

    Returns
    -------

    Success [bool] : True if write was a success

    """

    try:
        fasta = open(out_file, 'w')
    except:
        return False
    for sample_id in fasta_dict:
        seq = []
        for seq_id in fasta_dict[sample_id]:
            seq += fasta_dict[sample_id][seq_id]
        fasta.write(">{}\n{}\n".format(sample_id, "".join(seq)))
    fasta.close()
    return True