def parse_stats(tup):
    """
    Parses read stats using MP after reading
    :param tup: (key, (aln_scores, mapq_scores, sramm_scores)) tuple
    :return: read_id, mapq value(s), sramm metric scores
    """
    # data[k] = [(int(x[0]), int(x[1])) for x in
    #                  [t.replace('(', '').replace(')', '').split(', ') for t in val[0].split('),(')]]
    k, val = tup
    mapq = [int(v) for v in val[0].split(',')]
    sramm = [float(v) for v in val[1].split(',')]
    return k, mapq, sramm