def sort_mapped(fq_dict, mapped_reads):
    """
    Sort mapped reads from dictionary of fastq reads
    INPUT:
    - fq_dict(dict) dictionary with read names as keys, seq and quality as values
        in a list
    - mapped_reads(list) list of mapped reads
    OUTPUT:
    - mfqd(dict) dictionary with mapped read names as keys, seq and quality as values
        in a list
    - fqd(dict) dictionary with unmapped read names as key, unmapped/mapped (u|m), 
        seq and quality as values in a list
    """
    fqd = {}
    unmapped = [i for i in list(fq_dict.keys()) if i not in mapped_reads]
    mapped = [i for i in list(fq_dict.keys()) if i in mapped_reads]
    # print(unmap)
    for r in unmapped:
        fqd[r] = ['u']+fq_dict[r]
    for r in mapped:
        fqd[r] = ['m']+fq_dict[r]

    return(fqd)